-
Notifications
You must be signed in to change notification settings - Fork 16.2k
fix: #33862 – Security menu missing on MySQL due to case mismatch #33864
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.
I've completed my review and didn't find any issues.
Files scanned
| File Path | Reviewed |
|---|---|
| superset/views/roles.py | ✅ |
| superset/views/users_list.py | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #33864 +/- ##
===========================================
+ Coverage 60.48% 72.88% +12.39%
===========================================
Files 1931 559 -1372
Lines 76236 40402 -35834
Branches 8568 4245 -4323
===========================================
- Hits 46114 29448 -16666
+ Misses 28017 9857 -18160
+ Partials 2105 1097 -1008
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Not sure, but I'm wondering if this can break things for people that have attached roles to it (?) Quick grep shows more low-cap 'security': Putting an |
|
I think permissions are stored in a database, so if we update the name without a migration, it could break for others. I think @michael-s-molina ran into something like this but could be wrong. |
Yes, these types of changes without proper migrations will break existing deployments. We ran into one of these when upgrading to 4.1. |
|
Do we have reusable constructs / methods to easily generate permission renames as part of db migrations? |
Summary
Align view permission names with their menu label so Superset creates the correct “Security” row on MySQL.
Fix
class_permission_name = "Security"class_permission_name = "Security"Impact
Restores the Security menu on fresh MySQL installs without affecting
PostgreSQL or existing deployments.
Resolves #33862