You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Try to add new rule:
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.
The text was updated successfully, but these errors were encountered:
@calvad0s Hello! I'm here to help you with your Superset issues. I can assist with bug-solving, answer questions, and guide you on becoming a contributor.
To resolve the issue where the dataset drop-down in the RLS rule creation pop-up in Superset does not show all available datasets when a search value is entered, ensure that the AsyncSelect component's loadOptions function is correctly fetching and filtering the datasets based on the search input.
Here is the relevant part of the code that handles the dataset fetching and filtering:
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.
![image](https://private-user-images.githubusercontent.com/80380094/352419466-3da9a818-73cd-4700-837b-2f9f16f3679c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzQzMjYsIm5iZiI6MTczODk3NDAyNiwicGF0aCI6Ii84MDM4MDA5NC8zNTI0MTk0NjYtM2RhOWE4MTgtNzNjZC00NzAwLTgzN2ItMmY5ZjE2ZjM2NzljLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAwMjAyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwOWQ3YzgyZjlkY2ZiN2VmOGQ0MWVhYmFjOGZjMmQ0MTQ3MWNmOTZiMTE4ZjdmMDA5Yjk3ZGIxZjRkNTQ1ODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.fpYAQqWaMUPDpKCvW52KHEDQF8hVtHWeNFQVSx3q44Y)
Try to find this datasets in the Datasets section:
Try to add new rule:
![image](https://private-user-images.githubusercontent.com/80380094/352419877-e5a82916-146e-43f8-8d8d-1f25a8bbc19a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzQzMjYsIm5iZiI6MTczODk3NDAyNiwicGF0aCI6Ii84MDM4MDA5NC8zNTI0MTk4NzctZTVhODI5MTYtMTQ2ZS00M2Y4LThkOGQtMWYyNWE4YmJjMTlhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAwMjAyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQzNTBkYTA0NzU1YmY2MDg3NDY0ZmVlNDE2YmYyYTM2OGU5OWU4NzY2ZDFlYmJkNjA2NzczMmFlZDEyZTU3ZjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.as40IzkmyIfNmVi4IRvddMYEDB31ef1Zhd4oMoxhWyA)
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:
![image](https://private-user-images.githubusercontent.com/80380094/352420237-c820a7db-814e-443a-a986-ae5e951b2453.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzQzMjYsIm5iZiI6MTczODk3NDAyNiwicGF0aCI6Ii84MDM4MDA5NC8zNTI0MjAyMzctYzgyMGE3ZGItODE0ZS00NDNhLWE5ODYtYWU1ZTk1MWIyNDUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAwMjAyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjZmQwYWJiNDg1OTZhOTUzMTM0ZWFiMDU1ODE5YzJhMzE3OTYwODcxZjcxZjgwNTgwZDNjODE2OTI2YmNhMGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.nemjaDzKi0GUl8oxIkx-KQLsZtk_UPdxXwv4sFnc3yk)
How to reproduce the bug
Preconditions: have RBAC enabled in your Superset config.
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
![image](https://private-user-images.githubusercontent.com/80380094/352418353-31ba2e16-a0db-48e8-a0d0-f352dc2c0064.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzQzMjYsIm5iZiI6MTczODk3NDAyNiwicGF0aCI6Ii84MDM4MDA5NC8zNTI0MTgzNTMtMzFiYTJlMTYtYTBkYi00OGU4LWEwZDAtZjM1MmRjMmMwMDY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAwMjAyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFhMmViODVhMDE3MzE2NjJiY2FiMTk2NzMzYWExMjQwZjUwOTc1OWVjNmU2YTE0NGQ1ZmNmMTI5Njg5ZjFlYTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9Z_QWVnjY-rzzjoxwZP3F4yh2ccqHi-LwiBeCFmLdOM)
This does not work when searching in the Dashboards section.
Checklist
The text was updated successfully, but these errors were encountered: