-
Notifications
You must be signed in to change notification settings - Fork 14.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
fix: Capitalization / Sentence case under Settings #18753
fix: Capitalization / Sentence case under Settings #18753
Conversation
This is correct that according to the guidelines,
@mihir174 @kasiazjc please feel free to check my math on the above. |
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'm a little nervous about this approach here. I don't think we need new utils to parse and change the case of items, especially if that will be implemented to handle each string differently. It seems this PR goes the route of "if it's this string, make it sentence case. If it's that string, make it title case". Rather than making string transformations based on cases, can we just find and change the actual string at the source?
See also this PR where the last couple of these were made uppercase to match. We should just edit those |
e06e2f3
to
7fbffca
Compare
@dpgaspar do you recall offhand where the |
Codecov Report
@@ Coverage Diff @@
## master #18753 +/- ##
==========================================
- Coverage 66.32% 66.29% -0.03%
==========================================
Files 1620 1620
Lines 63091 63081 -10
Branches 6372 6370 -2
==========================================
- Hits 41842 41822 -20
- Misses 19592 19602 +10
Partials 1657 1657
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
The most straightforward way, would be overriding the role model view class from FAB, but unfortunately for the user's we have multiple classes to override (basically one per auth method). So we would need to override all these: https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/security/views.py#L255. We have an ongoing PR on FAB dpgaspar/Flask-AppBuilder#1801 for adding a CRUD view around the security APIs, a better long term path would be to leverage that and build the UI around those. IMO |
@codemaster08240328 let me know if you think the advice from Daniel above is actionable. If not, we'll hand this PR to Design and Product and see if we want to merge it (moves toward capitalization standards, but adds an inconsistency) or hold off (not to capitalization standards, but is at least consistent) |
/testenv up |
@yousoph Ephemeral environment spinning up at http://34.209.95.204:8080. Credentials are |
To do: Should we be concerned about localization? |
Closing this PR for now... we can reopen later if we (perhaps with @dpgaspar's help) figure out how to make the FAB changes so that things are actually consistent stem-to-stern. |
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
Based on capitalization guide from superset, we need to convert
Row Level Security
intoRow level security
under settings menu.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
After Updates:
TESTING INSTRUCTIONS