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

chore(viz): Rename legacy non-time-series Bar Chart #22430

Merged
merged 2 commits into from
Dec 20, 2022

Conversation

codyml
Copy link
Member

@codyml codyml commented Dec 15, 2022

SUMMARY

As a follow-up to #22369, this PR renames the legacy non-time-series Bar Chart to Bar Chart (legacy). There is both a legacy Bar Chart and a legacy Time-series Bar Chart along with the non-legacy Time-series Bar Chart. When GENERIC_CHART_AXES is on, the non-legacy Time-series Bar Chart is displayed as just Bar Chart, so both the new and the old Bar Chart currently end up with the same name.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
localhost_9000_explore__form_data_key=S0jPOlJ9DaKJe4hgtUS5zL_ZCpruQkGvN0YWVoVQH59eZWoUElFVk3X_TH-QH5Vb slice_id=75 (1)

After:
localhost_9000_explore__form_data_key=S0jPOlJ9DaKJe4hgtUS5zL_ZCpruQkGvN0YWVoVQH59eZWoUElFVk3X_TH-QH5Vb slice_id=75

TESTING INSTRUCTIONS

  • Check that legacy time-series bar chart, legacy bar chart, and non-legacy time-series bar chart have different names when GENERIC_CHART_AXES is on and when it's off.

ADDITIONAL INFORMATION

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

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Love it. Pinging @villebro here just in case this indicates anything needing a revisit in his effort.

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.

Thanks for catching! LGTM with a non-blocking suggestion.

@@ -35,7 +35,7 @@ const metadata = new ChartMetadata({
{ url: example2, caption: 'Grouped style' },
{ url: example3 },
],
name: t('Bar Chart'),
name: t('Bar Chart (legacy)'),
Copy link
Member

Choose a reason for hiding this comment

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

I think it might make sense to make this conditional on the feature flag being flipped (<feature flag check> ? 'Bar Chart (legacy)' : 'Bar Chart';), as an env that's not using generic x-axis will not have an alternative to the legacy bar chart.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, done!

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #22430 (f1871a9) into master (71982ee) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head f1871a9 differs from pull request most recent head 3c41e19. Consider uploading reports for the commit 3c41e19 to get more accurate results

@@            Coverage Diff             @@
##           master   #22430      +/-   ##
==========================================
- Coverage   66.91%   66.90%   -0.02%     
==========================================
  Files        1850     1850              
  Lines       70695    70693       -2     
  Branches     7750     7752       +2     
==========================================
- Hits        47309    47295      -14     
- Misses      21370    21382      +12     
  Partials     2016     2016              
Flag Coverage Δ
javascript 53.85% <ø> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...gins/legacy-preset-chart-nvd3/src/DistBar/index.js 66.66% <ø> (ø)
superset/db_engine_specs/trino.py 70.31% <0.00%> (-6.86%) ⬇️
superset/db_engine_specs/snowflake.py 62.91% <0.00%> (-1.87%) ⬇️
...ugin-chart-table/src/DataTable/hooks/useSticky.tsx 51.57% <0.00%> (-1.69%) ⬇️
superset/db_engine_specs/databricks.py 64.96% <0.00%> (-0.76%) ⬇️
superset/charts/api.py 86.19% <0.00%> (ø)
superset/db_engine_specs/presto.py 88.22% <0.00%> (+0.12%) ⬆️

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

@codyml codyml force-pushed the chore/rename-bar-chart branch from 4df9e18 to ace1212 Compare December 15, 2022 21:05
@codyml codyml force-pushed the chore/rename-bar-chart branch 2 times, most recently from b7c5401 to 50cba02 Compare December 15, 2022 21:48
@codyml codyml force-pushed the chore/rename-bar-chart branch from 50cba02 to 3c41e19 Compare December 20, 2022 12:38
@michael-s-molina michael-s-molina merged commit 7f4e522 into apache:master Dec 20, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 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 size/XS 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants