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

feat(sankey-viz): allow sort by metric and bump superset-ui packages #11626

Merged
merged 2 commits into from
Nov 10, 2020

Conversation

ktmud
Copy link
Member

@ktmud ktmud commented Nov 9, 2020

SUMMARY

Allow sankey chart to sort by metric and bump superset-ui packages to bring in multiple changes by @etr2460 and @villebro :

Diff: apache-superset/superset-ui@v0.15.10...v0.15.13

  1. fix(plugin-chart-echarts): disable pie chart animation (fix(plugin-chart-echarts): disable pie chart animation apache-superset/superset-ui#816)
  2. feat: update time_compare description and choices (Fixing serializing the lazy string #818)
  3. fix(plugin-chart-echarts): improve yAxisBounds parsing (fix(plugin-chart-echarts): improve yAxisBounds parsing apache-superset/superset-ui#815)
  4. feat(plugin-chart-echarts): add support for formula annotations (feat(plugin-chart-echarts): add support for formula annotations apache-superset/superset-ui#817)
  5. feat(legacy-plugin-chart-sankey): allow sort by metric (feat(legacy-plugin-chart-sankey): allow sort by metric apache-superset/superset-ui#831)

TEST PLAN

Manual and CI

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-io
Copy link

codecov-io commented Nov 9, 2020

Codecov Report

Merging #11626 (bfbef1d) into master (cf86889) will decrease coverage by 10.65%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #11626       +/-   ##
===========================================
- Coverage   65.29%   54.64%   -10.66%     
===========================================
  Files         873      406      -467     
  Lines       42289    14320    -27969     
  Branches     3964     3683      -281     
===========================================
- Hits        27613     7825    -19788     
+ Misses      14550     6327     -8223     
- Partials      126      168       +42     
Flag Coverage Δ
cypress 54.64% <ø> (+6.87%) ⬆️
javascript ?
python ?

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

Impacted Files Coverage Δ
...uperset-frontend/src/dashboard/util/dnd-reorder.js 0.00% <0.00%> (-100.00%) ⬇️
...rset-frontend/src/dashboard/util/getEmptyLayout.js 0.00% <0.00%> (-100.00%) ⬇️
...dashboard/components/resizable/ResizableHandle.jsx 0.00% <0.00%> (-100.00%) ⬇️
.../src/dashboard/util/getFilterScopeFromNodesTree.js 0.00% <0.00%> (-93.48%) ⬇️
...src/dashboard/components/gridComponents/Header.jsx 10.52% <0.00%> (-86.85%) ⬇️
...rc/dashboard/components/gridComponents/Divider.jsx 13.33% <0.00%> (-86.67%) ⬇️
...ontend/src/dashboard/util/getDashboardFilterKey.ts 14.28% <0.00%> (-85.72%) ⬇️
...src/components/FilterableTable/FilterableTable.tsx 2.64% <0.00%> (-83.43%) ⬇️
...set-frontend/src/views/CRUD/welcome/EmptyState.tsx 5.71% <0.00%> (-82.10%) ⬇️
...et-frontend/src/components/ListView/ActionsBar.tsx 11.11% <0.00%> (-81.20%) ⬇️
... and 731 more

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 cf86889...bfbef1d. Read the comment docs.

@ktmud ktmud changed the title feat(sankey-viz): allow sort by metric chore: bump superset-ui Nov 10, 2020
@ktmud ktmud force-pushed the sankey-sort-limit branch from 4685da7 to bfbef1d Compare November 10, 2020 19:12
@ktmud ktmud changed the title chore: bump superset-ui feat(sankey-viz): allow sort by metric and bump superset-ui packages Nov 10, 2020
@ktmud ktmud marked this pull request as ready for review November 10, 2020 19:47
@ktmud
Copy link
Member Author

ktmud commented Nov 10, 2020

@etr2460 @villebro weird enough, I'm not seeing the mathjs test failing after upgrading all packages.

@villebro
Copy link
Member

@ktmud very strange. Well, let's get this merged and see what happens when I rebase the boxplot PR.

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

one comment, otherwise lgtm

@@ -1854,6 +1854,8 @@ def query_obj(self) -> QueryObjectDict:
_("Pick exactly 2 columns as [Source / Target]")
)
qry["metrics"] = [self.form_data["metric"]]
if self.form_data.get("sort_by_metric", False):
Copy link
Member

Choose a reason for hiding this comment

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

you don't need the False here, it'll default to None which is falsey

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought supplying a default helps indicating this parameter is a boolean.

Since CI is green, I think I'll leave it.

@ktmud ktmud merged commit 339d0d7 into apache:master Nov 10, 2020
@ktmud ktmud deleted the sankey-sort-limit branch November 10, 2020 23:58
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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 size/M 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants