Description
Bug description
When trying to create a new RLS rule, in the rule pop-up there is the drop-down field for datasets.
If you start filling this field with a search value, the results will display in the drop-down menu with incomplete list of all available values.
An example of this behavior can be seen with the public dashboard "USA Births Names". Two datasets are used: birth_names and birth_france_by_region.
Try to find this datasets in the Datasets section:
If, when creating a new RLS rule, at first place the cursor in the datasets field and scroll all available values from the drop-down list all the way down (without filling out the search field). And then fill out the dataset search form again, all available datasets will be displayed:
How to reproduce the bug
Preconditions: have RBAC enabled in your Superset config.
- Install example dashboards (in this example "USA Births Names")
- Go to Datasets section and make sure that the datasets exists: birth_names, birth_france_by_region.
- Go to RLS and press the + button to create a new rule.
- In the new pop-up, there will be the dataset drop-down. Click it, and enter "birth". Make sure the pop-up list is empty
- Now place the cursor in the datasets field and scroll pop-up list all the way down. Make sure birth_names and birth_france_by_region datasets available.
- Now enter again "birth" in the dataset search box. Birth_names and birth_france_by_region datasets will be available to the dataset drop-down.
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
Superset version 4.0.1
Note: The dashboard will be successfully found if you enter its ID in the search field
This does not work when searching in the Dashboards section.
Checklist
- I have searched Superset docs and Slack and didn't find a solution to my problem.
- I have searched the GitHub issue tracker and didn't find a similar bug report.
- I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.