Skip to content

fix(explore): missing select when groupby without metrics#12890

Merged
villebro merged 1 commit intoapache:masterfrom
preset-io:villebro/fix-filterbox
Feb 2, 2021
Merged

fix(explore): missing select when groupby without metrics#12890
villebro merged 1 commit intoapache:masterfrom
preset-io:villebro/fix-filterbox

Conversation

@villebro
Copy link
Copy Markdown
Member

@villebro villebro commented Feb 2, 2021

SUMMARY

When a query has a groupby without a metric, the groupby columns don't show up in the query. Regression caused by #10270 (verified that it worked on the previous commit and broke after).

AFTER

image

BEFORE

image

TEST PLAN

Local testing of all examples dashboards + CI

ADDITIONAL INFORMATION

@codecov-io
Copy link
Copy Markdown

codecov-io commented Feb 2, 2021

Codecov Report

Merging #12890 (022d4b5) into master (2adfb85) will decrease coverage by 1.84%.
The diff coverage is 38.86%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12890      +/-   ##
==========================================
- Coverage   64.89%   63.05%   -1.85%     
==========================================
  Files        1024     1024              
  Lines       50168    50245      +77     
  Branches     5148     5241      +93     
==========================================
- Hits        32557    31680     -877     
- Misses      17433    18353     +920     
- Partials      178      212      +34     
Flag Coverage Δ
cypress ?
javascript 61.84% <38.54%> (-0.07%) ⬇️
python 63.85% <100.00%> (-0.24%) ⬇️

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

Impacted Files Coverage Δ
...et-frontend/src/dashboard/actions/nativeFilters.ts 34.78% <0.00%> (-4.35%) ⬇️
...ard/components/nativeFilters/FilterConfigModal.tsx 69.74% <ø> (-0.16%) ⬇️
...t-frontend/src/dashboard/reducers/nativeFilters.ts 34.78% <ø> (-26.09%) ⬇️
...src/filters/components/Select/AntdSelectFilter.tsx 0.00% <0.00%> (ø)
...et-frontend/src/filters/components/Select/types.ts 0.00% <ø> (-100.00%) ⬇️
superset-frontend/src/filters/utils.ts 88.88% <ø> (ø)
superset-frontend/src/preamble.ts 0.00% <0.00%> (-67.65%) ⬇️
superset-frontend/src/setup/setupColors.ts 0.00% <0.00%> (ø)
...hboard/components/nativeFilters/CascadePopover.tsx 19.11% <7.69%> (+0.93%) ⬆️
...c/dashboard/components/nativeFilters/FilterBar.tsx 51.36% <30.00%> (+2.32%) ⬆️
... and 122 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 38a21bf...022d4b5. Read the comment docs.

@junlincc junlincc added #bug:blocking! Blocking issues with high priority rush! Requires immediate attention labels Feb 2, 2021
@villebro villebro merged commit 36c4311 into apache:master Feb 2, 2021
@villebro villebro deleted the villebro/fix-filterbox branch February 2, 2021 15:14
@ktmud
Copy link
Copy Markdown
Member

ktmud commented Feb 2, 2021

Thanks for the fix and sorry for the inconvenience!

villebro added a commit to preset-io/superset that referenced this pull request Feb 2, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Feb 3, 2021
* master: (23 commits)
  feat(explore): clear search on dataset change (apache#12909)
  chore: remove SIP-38 feature flag (apache#12894)
  fix: Config for dataset health check (apache#12906)
  fix(chart): allow null for most query object props (apache#12905)
  feat: add separate endpoint to fetch function names for autocomplete (apache#12840)
  chore: add required review on master (apache#12694)
  fix: comment typo (apache#12898)
  Migrates Radio component from Bootstrap to AntD. (apache#12738)
  fix: allow users to reset their passwords (apache#12886)
  fix(explore): missing select when groupby without metrics (apache#12890)
  refactor: dbapi exception mapping for dbapi's (apache#12869)
  feat(style-theme): add support for custom superset themes (apache#12858)
  chore(lint): fix pre-commit error (apache#12884)
  refactor(color-schemes): refactor setting of color schemes (apache#12857)
  feat(native-filters): Add defaultValue for Native filters modal (apache#12199)
  feat(release): add github token to changelog script (apache#12872)
  fix(menu): always show settings dropdown (apache#12877)
  Migrates Label component from Bootstrap to AntD. (apache#12774)
  [Helm] Automate datasource import (apache#10771)
  build: Skip loading example data from configs in CI (apache#12610)
  ...
@junlincc junlincc removed #bug:blocking! Blocking issues with high priority rush! Requires immediate attention labels Mar 15, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 First shipped in 1.2.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 preset-io size/XS 🚢 1.2.0 First shipped in 1.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not time_range filters create empty select query

6 participants