Skip to content
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(datasets): consistent dataset list #15014

Merged
merged 8 commits into from Jun 10, 2021

Conversation

zhaoyongjie
Copy link
Member

@zhaoyongjie zhaoyongjie commented Jun 7, 2021

SUMMARY

closes: #14262

Currently, between the Dataset list view and change dataset modal datasets order is inconsistent. The change dataset modal can not display all datasets.

This PR make

  1. Dataset list view and change dataset modal datasets order is consistent
  2. make server pagination in change dataset modal
  3. All datasets can be displayed in change dataset modal
  4. backend sort by in change dataset modal
  5. use owners replace creator

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before

image

After

Consistent dataset list between dataset list and Change dataset modal
image

Jun-08-2021.20-30-14.mp4

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

@zhaoyongjie zhaoyongjie changed the title fix: consistent dataset list fix(datasets): consistent dataset list Jun 7, 2021
@junlincc
Copy link
Member

junlincc commented Jun 7, 2021

/testenv up

@junlincc junlincc added the explore:dataset Related to the dataset of Explore label Jun 7, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2021

@junlincc Ephemeral environment spinning up at http://54.245.30.41:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@junlincc
Copy link
Member

junlincc commented Jun 7, 2021

😞thanks for the PR.

  1. after the PR, sorting no longer work~ :( please make sure when we add new feature, the old related behavior is preserved.
  2. not related to this PR, please have pagination fixed at the bottom on scroll.
Screen.Recording.2021-06-07.at.11.56.02.AM.mov

@junlincc junlincc added bash! hold! On hold labels Jun 7, 2021
@zhaoyongjie
Copy link
Member Author

zhaoyongjie commented Jun 8, 2021

@junlincc

  1. The frontend sorting seems that not work previous. the after screenshot is on the master branch. let me try to fix it.

image

2. the pagination flowing, I will fix it in separate PR.

@zhaoyongjie
Copy link
Member Author

/testenv up

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2021

@zhaoyongjie Ephemeral environment creation is currently limited to committers.

@junlincc junlincc removed the hold! On hold label Jun 8, 2021
@codecov
Copy link

codecov bot commented Jun 8, 2021

Codecov Report

Merging #15014 (544731c) into master (0e07a5c) will increase coverage by 0.00%.
The diff coverage is 82.85%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #15014   +/-   ##
=======================================
  Coverage   77.64%   77.64%           
=======================================
  Files         966      967    +1     
  Lines       49615    49643   +28     
  Branches     6311     6324   +13     
=======================================
+ Hits        38524    38547   +23     
- Misses      10890    10895    +5     
  Partials      201      201           
Flag Coverage Δ
javascript 72.79% <82.85%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...-frontend/src/datasource/ChangeDatasourceModal.tsx 87.35% <76.47%> (-3.56%) ⬇️
...et-frontend/src/components/TableView/TableView.tsx 96.96% <81.81%> (-1.25%) ⬇️
...ontend/src/views/CRUD/data/dataset/DatasetList.tsx 70.18% <100.00%> (-0.37%) ⬇️
...-frontend/src/views/CRUD/data/dataset/constants.ts 100.00% <100.00%> (ø)
...-frontend/src/explore/components/ControlHeader.jsx 85.71% <0.00%> (ø)
...ConfigModal/FiltersConfigForm/FilterScope/utils.ts 98.50% <0.00%> (+0.06%) ⬆️
...d/components/DashboardBuilder/DashboardBuilder.tsx 91.02% <0.00%> (+0.11%) ⬆️
...d/src/dashboard/components/gridComponents/Tabs.jsx 87.50% <0.00%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e07a5c...544731c. Read the comment docs.

@junlincc
Copy link
Member

junlincc commented Jun 8, 2021

/testenv up

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2021

@junlincc Ephemeral environment spinning up at http://52.34.217.130:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@junlincc
Copy link
Member

junlincc commented Jun 8, 2021

@zhaoyongjie thanks for addressing the issues! Pagination is 'fixed' and Sort works mostly as expected! 🙏
only thing I'm not sure is the cap F goes to the top of the list.
I spot checked pagination in other areas, list view, data south table, they all look good!

Screen.Recording.2021-06-08.at.11.38.44.AM.mov

@junlincc junlincc added the hold! On hold label Jun 8, 2021
@zhaoyongjie
Copy link
Member Author

zhaoyongjie commented Jun 9, 2021

@zhaoyongjie thanks for addressing the issues! Pagination is 'fixed' and Sort works mostly as expected! 🙏
only thing I'm not sure is the cap F goes to the top of the list.
I spot checked pagination in other areas, list view, data south table, they all look good!
Screen.Recording.2021-06-08.at.11.38.44.AM.mov

Due to server sorting, it's order is ASCII order. refer to:

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really great work! Code LGTM; I tested all affected areas as best as I could and couldn't find any regressions. The sort problem @junlincc identified is indeed confusing, but I assume that's down to the backend database collation, so needs to be fixed elsewhere.

Copy link
Member

@junlincc junlincc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

product sign-off. remaining sorting known issue will be addressed in follow-up PRs.

@junlincc junlincc added need:merge The PR is ready to be merged and removed hold! On hold labels Jun 9, 2021
@zhaoyongjie zhaoyongjie merged commit 834bb94 into apache:master Jun 10, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels explore:dataset Related to the dataset of Explore need:merge The PR is ready to be merged size/L 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Chart edition][Dataset][Search] The list of available datasets is incomplete
4 participants