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: Keep chosen columns sort option when changing a column #15918

Merged
merged 2 commits into from Jul 28, 2021
Merged

fix: Keep chosen columns sort option when changing a column #15918

merged 2 commits into from Jul 28, 2021

Conversation

geido
Copy link
Member

@geido geido commented Jul 27, 2021

SUMMARY

This PR keeps the existing columns sort option while the user makes changes to the columns. Previously the sort order was not kept.

Fixes: #15842

BEFORE

126688420-181454e1-ab8d-4682-bb6e-763005888c1d.mov

AFTER

DEV.Age.distri.mp4

TESTING INSTRUCTIONS

  1. Open a Chart in Explore
  2. Edit the Dataset
  3. Go to Columns
  4. Check a column as Temporal,
  5. The order of columns should remain the same after the box is checked

ADDITIONAL INFORMATION

  • Has associated issue: [Explore]checking temporal box reorder the columns in the modal #15842
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@geido
Copy link
Member Author

geido commented Jul 27, 2021

@codecov
Copy link

codecov bot commented Jul 27, 2021

Codecov Report

Merging #15918 (ecb5a5b) into master (94e759d) will decrease coverage by 0.01%.
The diff coverage is 61.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15918      +/-   ##
==========================================
- Coverage   77.01%   76.99%   -0.02%     
==========================================
  Files         986      986              
  Lines       51978    51983       +5     
  Branches     7091     7091              
==========================================
- Hits        40030    40025       -5     
- Misses      11722    11732      +10     
  Partials      226      226              
Flag Coverage Δ
javascript 71.68% <61.90%> (-0.04%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/CRUD/CollectionTable.tsx 77.63% <61.90%> (-1.28%) ⬇️
...perset-frontend/src/addSlice/AddSliceContainer.tsx 78.12% <0.00%> (-3.93%) ⬇️
...ntend/src/explore/components/ExploreChartPanel.jsx 15.00% <0.00%> (-1.67%) ⬇️
...ponents/controls/VizTypeControl/VizTypeGallery.tsx 93.65% <0.00%> (ø)
...ontrols/DndColumnSelectControl/DndFilterSelect.tsx 45.52% <0.00%> (+0.13%) ⬆️
...erset-frontend/src/SqlLab/components/SqlEditor.jsx 53.98% <0.00%> (+0.23%) ⬆️
...d/src/explore/components/PropertiesModal/index.tsx 81.94% <0.00%> (+1.68%) ⬆️

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 94e759d...ecb5a5b. Read the comment docs.

Copy link
Member

@suddjian suddjian left a comment

Choose a reason for hiding this comment

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

nice!

@junlincc
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

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

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.

LGTM! Thanks for the quick fix! 🙇‍♀️

@junlincc junlincc added the need:merge The PR is ready to be merged label Jul 28, 2021
@geido geido merged commit bdfc2dc into apache:master Jul 28, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
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 13, 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 need:merge The PR is ready to be merged size/M 🚢 1.3.0
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

[Explore]checking temporal box reorder the columns in the modal
4 participants