Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1149 closed New feature (fixed)

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

Reported by: vipsoft Owned by: matt
Priority: critical Milestone: Piwik 0.6
Component: UI - UX (AngularJS, twig, less) Keywords:
Cc: Sensitive: no

Description (last modified by matt)

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?

Change History (13)

comment:1 Changed 4 years ago by vipsoft (robocoder)

  • Description modified (diff)

comment:2 Changed 4 years ago by matt (mattab)

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.

comment:3 Changed 4 years ago by matt (mattab)

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?


comment:4 Changed 4 years ago by vipsoft (robocoder)

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.

comment:5 Changed 4 years ago by vipsoft (robocoder)

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.

comment:6 Changed 4 years ago by matt (mattab)

Re timezone: see #56; 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.

comment:7 Changed 4 years ago by matt (mattab)

  • Summary changed from Admin - Config Settings UI to Move some useful settings from file to DB and editable via UI

comment:8 Changed 4 years ago by matt (mattab)

  • Description modified (diff)
  • Milestone changed from Features requests - after Piwik 1.0 to 5 - Piwik 1.0 - Stable release

comment:9 Changed 4 years ago by matt (mattab)

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

comment:10 Changed 4 years ago by matt (mattab)

  • Milestone changed from 5 - Piwik 1.0 - Stable release to 1 - Piwik 0.6
  • Owner set to matt
  • Priority changed from major to critical

comment:11 Changed 4 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

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

  • added User settings page, that all logged in users can access to edit: Alias, email, default report to load, default date. Implemented settings in the _option table (rather than adding new fields to the table). Fixes #401 refs #526
  • the super user can edit settings for the anonymous user and force the anonymous to the login screen or a specific website
  • added order feature in admin menu + colored current menu + hiding menu entries that are not visible to the logged in user anyway
  • improved styles of admin forms

comment:12 Changed 4 years ago by matt (mattab)

(In [2041]) Refs #1149

enable browser archiving setting wasn't working

comment:13 Changed 4 years ago by uggplaza

Note: See TracTickets for help on using tickets.