-
-
Notifications
You must be signed in to change notification settings - Fork 902
Explicit DemoMode, implemented through an extra state in auth object #21514
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
base: master
Are you sure you want to change the base?
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.
Hey @guido4096 - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@guido4096 magst du mal Am Besten aktivierst du in deinem Editor auch "format on save" für "prettier" und "go", dann gibts diese Art von Fehlern erst gar nicht 😀 |
Maybe a highlight about the changes:
|
One special thing; the auth state is done through an enum, making use of constants. These constants have to be referenced using something like "auth.Disabled" . In most of the functions, the auth object is passed through the variable name "auth" and this hides the constants. So I had find a new name for this variable and used "authObject" . |
Documentation needs to be still adapted, but I think better to first get the code and behavior reviewed and correct before doing doc changes. |
5a72df3
to
fe115e3
Compare
fe115e3
to
3239b62
Compare
fixes #18946