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

Stacked Bar Chart Drill In Incorrect #9361

Closed
MarkRx opened this issue Jan 31, 2019 · 5 comments

Comments

@MarkRx
Copy link
Contributor

commented Jan 31, 2019

When a bar chart is stacked (either normal or percentage wise) the drill in sometimes does not produce the right query filter when creating a new question.

In the below bar chart highlighting the red "FAILURE" on January 31 and attempting to view the records generates a question with the filter being "SUCCESS" instead of "FAILURE":
image

Steps to reproduce:

  1. Create the following query
    image

  2. Change the visualization to be a stacked bar chart with date on the bottom
    image

  3. Drill in to the top right bar (Aerodynamic Leather Toucan) by clicking "view this order"
    image

The generated question uses a filter of Product > Title = "Aerodynamic Bronze Hat". It should be "Aerodynamic Leather Toucan".
image

Your browser and the version: 71.0.3578.98 (Official Build) (64-bit)
Your operating system: Windows 7
Your databases: Oracle 12.2
Metabase version: 0.31.2
Metabase hosting environment: RHEL 7
Metabase internal database: MySQL

@evangreally

This comment has been minimized.

Copy link

commented Feb 7, 2019

We are also getting this issue it seems to always take the first value in the series.

@evangreally

This comment has been minimized.

Copy link

commented Apr 3, 2019

@camsaul will this issue be fixed in the next release?

@saurabh7248

This comment has been minimized.

Copy link

commented Apr 25, 2019

I can try to fix this if someone is able to point me in a right direction

@evangreally

This comment has been minimized.

Copy link

commented May 9, 2019

Hi @saurabh7248

I was investigating this issue recently but not had time to look at the cause.
I traced the issue back as far as :
UnderlyingRecordsDrill.jsx
located here:
/metabase/frontend/src/metabase/modes/components/drill/UnderlyingRecordsDrill.jsx

@mazameli mazameli moved this from P1 Bugs to Assigned in Bug Bashing Bonanza 2019 Aug 26, 2019

@paulrosenzweig paulrosenzweig moved this from Assigned to Worked On in Bug Bashing Bonanza 2019 Aug 26, 2019

@paulrosenzweig paulrosenzweig moved this from Worked On to Needs review in Bug Bashing Bonanza 2019 Aug 26, 2019

@mazameli mazameli added this to the 0.33.1 milestone Aug 27, 2019

@paulrosenzweig

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2019

Resolved by #10555

Bug Bashing Bonanza 2019 automation moved this from Needs review to Done Sep 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.