-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 default app setting on a user basis #39600
Conversation
Kudos, SonarCloud Quality Gate passed! |
This one is too late for 10.9.0 now. We are in feature freeze. Sorry. |
Tested by:
Works |
Taking into account that it won't be in 10.9, I think the users should be able to set the app from the web ui, in the personal settings. |
@jvillafanez |
Reading this I think it is not the right approach (while implementation is relatively easy). Having a setting on a per user basis makes management quite complicated. Imho it would be better to do this at a group level. |
@mmattel Anyways this is not a admin setting, it is a user setting, done by the user (UI changes incoming). It might be docs relevant, but for this setting, we usually don't want anyone to use the occ command. |
Sorry if my words sounded harsh, not intended to be so... 😢
This is a very dangerous path if you create/extend an occ command and then have in mind not using it. |
@mmattel Got you, but this is not a setting the admin want to take care of! Me as a individual want to decide if I want to use the new design aka owncloud/web or not.
See it from the correct perspective, it would be possible for the admin, but why should they do that. The command was never extended! You can put every parameter you want there! |
@mmattel the |
It's pretty much said already, to sum it up: This PR just lays the groundwork for having this feature. It doesn't include UI (yet) as we currently plan to use this for the web app only. The UI for this will then be in the web app directly. It's not intended for the admin to set default apps for other users. But because the setting sits in the user preferences, existing APIs such as |
we need to add the option in the UI, it will be impossible for the admins to set and remove the option for 300K users btw, which are all other opinions?
only web or remove the setting to go back? |
Please read the description of the related issue! Trying to explain this over and over again now... |
I read and that's why I asked the second part about the options The first part means that I can't use this feature so far ;) |
There will be a UI implementation, for the USER to switch between the new and classic design (UI), therefore we need this code.
It's not planned that you set options on your own.
No, you shouldn't I removed the command that @JammingBen provided in the description. It seems to be misleading, we store user preferences in the table which can be manipulated via this command, but there are a lot of settings that will be set by the business logic itself and shouldn't by the user/admin. |
@janackermann we have all green - merging? (or are there more changes necessary?) |
a004f59
to
f0d73ce
Compare
I rebased to get up-to-date CI. "someone" can decide what is to happen with this. |
Kudos, SonarCloud Quality Gate passed! |
The API for a user to set their email address (for example) is:
But if I try:
After merging this PR, how can a client app call an API endpoint to set Without an API end-point that works, there won't be a way for clients (web, whatever other client) to actual implement this option. |
merge? |
To me, it seems pointless to add this in a release, if there is no way to apply the setting other than with a "back end" occ command. I am hoping that someone can say how to use some API endpoint to set the default app for a user. But I don't know who "someone" is ;) But it does no harm, so could be merged and then follow-up if an API endpoint needs to be adjusted. |
I don't think it's planned for now. The idea was to use it with the new web interface so the admin can change the interface for specific users manually. We should follow up this ticket at some point, but I'm ok with merging this. |
I think this is the key message which is relevant for the new webUI, |
We are mixing up different things here.
I don't know where this info is gathered, but it is basically wrong. Please also check: @mmattel Please don't write up any documentation until we have the user setting somehow (SET BY THE USER, NOT BY THE ADMIN!) |
Post a discussion with @janackermann with good reasons, no doc entry will be made. |
AFAIR, the idea was to save the state the user had the last time. So each time the user switches from Classic to Web, that would be persisted and vice versa. Basically not an intentional switch but the preference is decided based on the user choice. |
Description
This change allows users to to have their own default app defined. The setting is stored in the user preference table and uses its existing API. It will overwrite the system-wide
defaultapp
setting if set.Related Issue
Types of changes
Checklist: