-
Notifications
You must be signed in to change notification settings - Fork 187
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 option to generate the demo users #2495
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
@jvillafanez I'm not sure if we should stick with the default to create demo users as long as we are in the tech preview stage. |
I agree. We can merge this (it seems there are tests to adjust) once we get close to the actual product release |
No, I would love to have this right now. I just wanted to have the demo users as a default as of now ;-) So basically an opt-out instead of an opt-in to demo users... |
From a product perspective, I think this option is better. Usually, you don't want to create demo users that you need to delete afterwards. This is why we don't want to create the demo users by default. I'd vote for keeping this behavior. |
That is true but currently we are still heavily in dev mode and are using the demo users during development. I think it would make developing a little bit more annoying if we have to explicitly generate the accounts every time we delete the ocis storage. So I'm agreeing with @wkloucek here. I'd like to have an opt-out option for now and later on when we have more "production" deployments we can always (and should) switch to opt-in. We could then also move this code to a command in the accounts service like |
Turns out it's easier than initially thought... The default value is set to true, and we only need to change it to false (or remove it) when we no longer want to create the demo users by default. In any case, the environment variable will be respected if present. |
30ff032
to
502e77b
Compare
Kudos, SonarCloud Quality Gate passed! |
I think this is ready to review and merge. |
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.
LGTM.
Description
Include an option to generate the demo users and groups. Only a minimal set of users and groups will be generated automatically unless the new option is enabled.
So far the minimal set includes:
Related Issue
#2484
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: