-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: sorting on "Modified By" in chart table #16208
Conversation
@@ -285,7 +285,7 @@ function ChartList(props: ChartListProps) { | |||
</a> | |||
), | |||
Header: t('Modified by'), | |||
accessor: 'last_saved_by', | |||
accessor: 'last_saved_by.id', |
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.
does this result in an alphabetical sort?
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.
hmm should probably change this to .lastname then? I only tested with superset admin user
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'll do first name since the original logic was to use first name.
Codecov Report
@@ Coverage Diff @@
## master #16208 +/- ##
=======================================
Coverage 76.73% 76.73%
=======================================
Files 996 996
Lines 52999 52999
Branches 6738 6738
=======================================
Hits 40668 40668
Misses 12102 12102
Partials 229 229
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
change sort to first name
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.
/testenv up |
@rusackas Ephemeral environment spinning up at http://34.220.60.74:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
* initial fix * Update ChartList.tsx change sort to first name (cherry picked from commit b4555df)
🏷 2021.31 |
* initial fix * Update ChartList.tsx change sort to first name (cherry picked from commit b4555df)
* initial fix * Update ChartList.tsx change sort to first name
* initial fix * Update ChartList.tsx change sort to first name (cherry picked from commit b4555df)
* initial fix * Update ChartList.tsx change sort to first name
* initial fix * Update ChartList.tsx change sort to first name (cherry picked from commit b4555df)
* initial fix * Update ChartList.tsx change sort to first name (cherry picked from commit 9ad119b)
SUMMARY
This pr fixes sorting problem for last_saved_by in the chartlist view. The accessor was set to the wrong key.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before
https://user-images.githubusercontent.com/17326228/129097514-0cdb53d5-27ca-4a86-914e-45cd147d19d3.mov
after
Screen.Recording.2021-08-11.at.1.47.25.PM.mov
TESTING INSTRUCTIONS
Go to the chart listview page and clicked the modified by sorting button to test out proper sorting.
ADDITIONAL INFORMATION