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

Adhoc filter popover simple tab on explore view does not render subject multi select if no suggestions are present #19592

Closed
2 of 3 tasks
cccs-RyanS opened this issue Apr 7, 2022 · 1 comment · Fixed by #19612
Labels
#bug Bug report v1.5

Comments

@cccs-RyanS
Copy link
Contributor

cccs-RyanS commented Apr 7, 2022

In the explore view for a dataset there are a set of conditions which causes the the subject select to not render in the adhoc filter pop over control (AdhocFilterEditPopoverSimpleTabContent) . These condition are met when a column is selected and an operator belonging to the MULTI_OPERATORS list has also been selected and no suggestions have been populated.

I believe this to be caused by this line here this seems to cause the behaviour that if you have a MULTI_OPERATOR and no suggestions the select will not render. The intention seems to be to delay rendering until suggestions are loaded, however there are cases where the suggestions will never load in some of our datasets.

If this is not intended behaviour I would also be more than happy to take a look and attempt a fix.

How to reproduce the bug

The bug is data source dependent but here are some steps to create a simple fake dataset that this bug will appear in

  1. SQL Lab and input a query such as select 1 as col1, 2 as col2, 3 as col3
  2. Save this query as a virtual dataset by clicking the explore button
  3. Open the dataset in the explore view
  4. click on filters to open the popover
  5. select any col (col1, col2, col3) and select the IN operator
  6. The multislect for the subject will not render

OR

  1. Disable suggestions on a dataset
  2. repeat steps 3-6

Expected results

The multi select would render even if there are no suggestions loaded.

Actual results

The subject multi select does not render.

Screenshots

Capture2

Environment

  • browser: Firefox
  • superset version: superset master branch and 1.5.0rc1
  • python version: python 3.8.10
  • node.js version: v16.13.0

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have not reproduced the issue with at least the latest released version of superset. however I have reproduced it for 1.5.0rc1
  • I have checked the issue tracker for the same issue and I haven't found one similar.
@cccs-RyanS cccs-RyanS added the #bug Bug report label Apr 7, 2022
@villebro villebro added the v1.5 label Apr 7, 2022
@villebro
Copy link
Member

villebro commented Apr 8, 2022

Thanks for reporting - I was able to reproduce, working on a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report v1.5
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants