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: Viz migration adjustments - 2 #24429

Merged

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Makes adjustments to the viz migrations to fix problems found during tests.

  • Adjusts the TreeMap migration to preserve the Sort Descending checkbox value
  • Adjusts the Dual Line migration to add the filters to both Query A and Query B

@jinghua-qa

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • 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

@michael-s-molina michael-s-molina marked this pull request as ready for review June 20, 2023 11:59
@michael-s-molina michael-s-molina requested a review from a team as a code owner June 20, 2023 11:59
@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #24429 (a6a471a) into master (c69634d) will increase coverage by 0.11%.
The diff coverage is 90.98%.

❗ Current head a6a471a differs from pull request most recent head 6aaa108. Consider uploading reports for the commit 6aaa108 to get more accurate results

@@            Coverage Diff             @@
##           master   #24429      +/-   ##
==========================================
+ Coverage   68.90%   69.02%   +0.11%     
==========================================
  Files        1903     1901       -2     
  Lines       74070    73974      -96     
  Branches     8110     8119       +9     
==========================================
+ Hits        51041    51058      +17     
+ Misses      20917    20805     -112     
+ Partials     2112     2111       -1     
Flag Coverage Δ
hive 53.90% <67.62%> (+0.03%) ⬆️
mysql 79.40% <92.07%> (?)
postgres 79.49% <92.07%> (+0.16%) ⬆️
presto 53.82% <67.62%> (+0.02%) ⬆️
python 83.47% <92.73%> (+0.26%) ⬆️
sqlite 77.99% <91.40%> (?)
unit 54.60% <66.51%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
...ackages/superset-ui-core/src/utils/featureFlags.ts 100.00% <ø> (ø)
...acy-preset-chart-deckgl/src/components/Tooltip.tsx 0.00% <0.00%> (ø)
...preset-chart-deckgl/src/layers/Geojson/Geojson.jsx 0.00% <0.00%> (ø)
...et-chart-deckgl/src/layers/Geojson/controlPanel.ts 50.00% <ø> (ø)
...lugins/plugin-chart-table/src/utils/formatValue.ts 66.66% <0.00%> (-3.93%) ⬇️
superset-frontend/src/SqlLab/fixtures.ts 100.00% <ø> (ø)
superset-frontend/src/SqlLab/reducers/sqlLab.js 40.93% <0.00%> (-0.25%) ⬇️
...c/components/Chart/DrillDetail/DrillDetailPane.tsx 75.32% <ø> (ø)
...-frontend/src/components/TableCollection/index.tsx 100.00% <ø> (ø)
...end/src/dashboard/components/SliceHeader/index.tsx 90.56% <ø> (ø)
... and 154 more

... and 10 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@john-bodley john-bodley merged commit fdef9cb into apache:master Jun 20, 2023
jinghua-qa pushed a commit to preset-io/superset that referenced this pull request Jun 21, 2023
@sadpandajoe
Copy link
Member

I see we have a function called _migrate_temporal_filter as we migrate more viz in the future, is a test needed to make sure we return the right data when calling this function?

@michael-s-molina
Copy link
Member Author

I see we have a function called _migrate_temporal_filter as we migrate more viz in the future, is a test needed to make sure we return the right data when calling this function?

Hi @sadpandajoe. I added tests for this function at the migrations level but we can definitely move the tests to the base class in the next batch of migrations in 4.0.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.0.0 labels Mar 8, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 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 size/XS 🚢 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants