-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(guest_override-cache): move guest override from cache to db and c…
…ollect some sql related calls inside models.py's classes guest override flag is now managed with models.get_flag and models.set_flag instead of using the state cache state cache is not reliable when multiple containers serve the app simultaneously (every container has a different panel.state.cache object add the optional parameter value_if_missing to models.get_flag to set a default value instead of returning None add a clean method and a read_as_df method to every table object (see models.py) to improve code readability add a clear_guest_override method to the class models.Flags to clean app every guest_override flag (those are saved on a per-user basis) add InvalidToken error handling in auth (this only happen if DATA_LUNCH_OAUTH_ENC_KEY changes but the guest user password is not updated for basic auth rename 'cache' to 'flags' in variables and properties for gui.py
- Loading branch information
1 parent
6631856
commit a4ea532
Showing
5 changed files
with
313 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.