-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add admin setting page with users defaults #1266
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, but didn't test yet. Just wanted to quickly give the feedback after my vacation
Hello, @nickvergessen. I don't see any of those changes in recent releases. Is there something wrong with it? |
You don't see it because we didn't merge it.
Didn't have time to check it yet, but a review is queued for this week. |
Signed-off-by: Топонен Никита <[email protected]>
Signed-off-by: Топонен Никита <[email protected]>
Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: natoponen <[email protected]> Signed-off-by: Топонен Никита <[email protected]>
Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: natoponen <[email protected]> Signed-off-by: Топонен Никита <[email protected]>
Signed-off-by: Топонен Никита <[email protected]>
Signed-off-by: Топонен Никита <[email protected]>
Signed-off-by: Топонен Никита <[email protected]>
425bd9d
to
6809886
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coding styles seem off, but should be auto-fixable:
composer run cs:fix
npm run lint:fix
afterwards confirm with:
composer run cs:check
npm run lint
Other then that there are some minor comments but it works fine. If you can't or don't want to take care of the remaining points we can also do that.
form.append('batchSetting', this.config.setting_batchtime) | ||
form.append('soundNotification', this.config.sound_notification ? 'yes' : 'no') | ||
form.append('soundTalk', this.config.sound_talk ? 'yes' : 'no') | ||
await axios.post(generateOcsUrl('apps/notifications/api/v2/settings/admin'), form) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding our own API call + endpoint here we could use
OCP.AppConfig.setValue()
But then it's not possible to have a sub admin permission for this, although I'm not convinced that would be necessary at all
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the open comments
Thanks for all the hard work @natoponen and sorry for the delay on the review |
/backport to stable25 |
Closing #1173 #1260 by adding admin's setting page for configuring user defaults, which will be applied on UserCreatedEvent or PostLoginEvent, if existing user doesn't have settings yet.
Not sure whether I should add author,copyright and license terms in the beggining of new files. Hope you can help me here :)