Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move some useful settings from file to DB and editable via UI #1149

Closed
robocoder opened this issue Feb 10, 2010 · 8 comments
Closed

Move some useful settings from file to DB and editable via UI #1149

robocoder opened this issue Feb 10, 2010 · 8 comments
Assignees
Labels
Critical Indicates the severity of an issue is very critical and the issue has a very high priority. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@robocoder
Copy link
Contributor

Piwik should have a UI for superusers to override global.ini.php and/or change config.ini.php settings. Manually editing these files is out of character given Piwik's installation UI and Flash-y dashboard.

A list of such useful settings that could be made available via UI is:

  • default day when loading Piwik (today VS yesterday)
  • default period (day vs week vs ...)
  • always redirect to login screen, even if some websites are available to the anonymous user?
  • enable browser archiving trigger?
@mattab
Copy link
Member

mattab commented Feb 11, 2010

That makes sense. Before implementing this, though, we would need to think very carefully of the wording and which settings make sense to be available through the UI.

@mattab
Copy link
Member

mattab commented Mar 21, 2010

Actually, I would prefer to see specific tickets to add the UI for each setting that make sense to be "modified" in a UI. In particular, a lot of the settings currently in the config file would make sense to have a setting, but many wouldn't (too technical/rarely used).

Also, for settings that are currently in the config file but would be editable via the UI, it would be better to have them saved in the Option table.

Here are the settings I think should be editable in the UI, and stored in the Piwik_SetOption mechanism


; When loading piwik interface, we redirect the user to 'yesterday' statistics by default
; Possible values: yesterday, today, or any YYYY-MM-DD
default_day = yesterday
; Possible values: day, week, month, year
default_period = day

; When loading piwik interface, Piwik will load by default the CoreHome module
; You can override the setting to force the user to login. 
; This is useful when you have some websites view "anonymous" access but you want to 
; force users to login instead of viewing the first anonymous website available 
default_module_login = 0

; When loading the piwik interface in the browser (as opposed to from the PHP-CLI client)
; should we launch the archiving process if the archives have not yet been processed?
; You want to set it to 0 when triggering the archiving is done through a crontab, 
; so that your users do not trigger archiving in their browser when this is not expected
enable_browser_archiving_triggering = 1

I vote for closing this ticket and adding these settings in the UI, before 1.0. Am I missing some?

Thoughts?

@robocoder
Copy link
Contributor Author

Yes, only a subset of the config settings would be available through the UI. Why would we close this ticket just to open another one that says the same thing? Just change the milestone.

@robocoder
Copy link
Contributor Author

We will eventually add timezone (and possibly campaign parameter) to the config UI but these shouldn't be in the option table for tracker performance reasons.

@mattab
Copy link
Member

mattab commented Mar 22, 2010

Re timezone: see #5476; timezone can be stored in option as Tracker will always record dates in UTC. The archive queries will know about the timezone offset and select the right date ranges accordingly.

@mattab
Copy link
Member

mattab commented Mar 22, 2010

Anthon, followed your advice, changed description and moved to 1.0 milestone

@mattab
Copy link
Member

mattab commented Apr 1, 2010

(In [2036]) * Added General settings page to: enable browser archiving, define today's archive time to live (fixes #1149)

@mattab
Copy link
Member

mattab commented Apr 2, 2010

(In [2041]) Refs #1149
enable browser archiving setting wasn't working

@robocoder robocoder added this to the Piwik 0.6 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical Indicates the severity of an issue is very critical and the issue has a very high priority. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants