-
Notifications
You must be signed in to change notification settings - Fork 15.4k
feat(dashboard): Display username in user dropdowns #34356
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?
feat(dashboard): Display username in user dropdowns #34356
Conversation
* Format the dashboard's owner filter to include username in returned results * Include username in access options dropdown and in access owners * Update owner models .text property to include username * Update expected results of tests with usernames
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
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.
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-frontend/src/types/Owner.ts | ✅ |
superset-frontend/src/utils/getOwnerName.ts | ✅ |
superset-frontend/src/pages/CssTemplateList/index.tsx | ✅ |
superset-frontend/src/pages/AnnotationLayerList/index.tsx | ✅ |
superset-frontend/src/pages/RowLevelSecurityList/index.tsx | ✅ |
superset-frontend/src/pages/Tags/index.tsx | ✅ |
superset-frontend/src/views/CRUD/utils.tsx | ✅ |
superset-frontend/src/pages/AlertReportList/index.tsx | ✅ |
superset/reports/api.py | ✅ |
superset-frontend/src/pages/SavedQueryList/index.tsx | ✅ |
superset/dashboards/schemas.py | ✅ |
superset-frontend/src/pages/DashboardList/index.tsx | ✅ |
superset-frontend/src/pages/DatabaseList/index.tsx | ✅ |
superset-frontend/src/pages/ChartList/index.tsx | ✅ |
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx | ✅ |
superset/views/base_api.py | ✅ |
superset-frontend/src/pages/DatasetList/index.tsx | ✅ |
superset-frontend/src/features/alerts/AlertReportModal.tsx | ✅ |
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.
I think in some instances (ie Preset), the oauth-generated usernames are long and cryptic, wouldn't want to show them. Wondering if email would work better here, or at least feature-flagging it? |
Looking at the code, would be nice to have more DRY types here, doing type composition both on the backend and frontend in a way that's aligned. Lots of repetition for something that should be the same everywhere... |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #34356 +/- ##
===========================================
+ Coverage 0 72.89% +72.89%
===========================================
Files 0 573 +573
Lines 0 41216 +41216
Branches 0 4323 +4323
===========================================
+ Hits 0 30044 +30044
- Misses 0 10031 +10031
- Partials 0 1141 +1141
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:
|
Agreed, my userids created by OAuth look like
|
Also, thanks for creating this feature and welcome to contributing to Superset! 😄 |
SUMMARY
Displays the user's username in parentheses in owner/user dropdowns. This helps differentiate between users with the same first and last names.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION