Opened 4 years ago
Last modified 2 years ago
#3087 new enhancement
User settings system
Reported by: | tardyp | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 0.9.+ |
Version: | master | Keywords: | www, easy |
Cc: |
Description
Some feature are not something that everybody would want. We need to allow people to enable, disable stuff directly in the UI.
Storing the settings could be done in the buildbot DB, but it is much more simple to store it in browser LocalStorage?: http://www.w3schools.com/html/html5_webstorage.asp
The setting system can be added to the User menu (which will need to be activated even if no authentication is enabled in master.cfg)
It will display a small bootstrap dialog, with all parameter configurable here.
Change History (4)
comment:1 Changed 4 years ago by Ben
comment:2 Changed 4 years ago by tardyp
Settings like:
[x] Enable notifications
[x] Only Failed builds [x] Use Desktop notifications
[ 20 ] Number of recent builds in home page [ 5 ] Number of recent builders in home page
There should be a service for letting plugins define user settings:
- in a config:
settingsServiceProvider.defineSettings "metrics", [
name: "build_history" label: "Build history" description: "how much builds should metrics plugin analyse" type: "integer"
]
- in a controller
settingsServiceProvider.bindSettings($scope, "metrics", "build_history")
Which settings do you have in mind there ?