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(chart-data): ignore orderby on sample result type #11656

Merged
merged 1 commit into from Nov 11, 2020

Conversation

villebro
Copy link
Member

@villebro villebro commented Nov 11, 2020

SUMMARY

If a query object has defined an orderby based on a metric, requesting sample data for the dataset causes an error.

BEFORE

image

AFTER

image

TEST PLAN

Local testing + updated test fixture

@codecov-io
Copy link

codecov-io commented Nov 11, 2020

Codecov Report

Merging #11656 (a94a2b7) into master (329e728) will decrease coverage by 6.82%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11656      +/-   ##
==========================================
- Coverage   62.26%   55.43%   -6.83%     
==========================================
  Files         873      406     -467     
  Lines       42306    14343   -27963     
  Branches     3971     3690     -281     
==========================================
- Hits        26341     7951   -18390     
+ Misses      15785     6229    -9556     
+ Partials      180      163      -17     
Flag Coverage Δ
cypress 55.43% <ø> (?)
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%) ⬇️
...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%) ⬇️
...et-frontend/src/components/Menu/LanguagePicker.tsx 0.00% <0.00%> (-80.00%) ⬇️
superset-frontend/src/components/Link.tsx 7.69% <0.00%> (-79.81%) ⬇️
... and 773 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 329e728...a94a2b7. Read the comment docs.

@dpgaspar
Copy link
Member

Would be nice to add a simple test to assert this

@villebro
Copy link
Member Author

villebro commented Nov 11, 2020

@dpgaspar there's actually a test that would have failed before with the updated fixture (there's a specific test case for the sample result type): https://github.com/apache/incubator-superset/blob/master/tests/query_context_tests.py#L235-L251

@villebro villebro merged commit 77dff0e into apache:master Nov 11, 2020
@villebro villebro deleted the villebro/samples-orderby branch November 11, 2020 14:28
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/XS 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants