kgabryje opened a new pull request #14374: URL: https://github.com/apache/superset/pull/14374
### SUMMARY When user creates a native filter, display only datasets used in current dashboard as options in dataset picker. When user starts typing, send a query to backend for other available datasets. E.g. there are datasets "a_dataset", "b_dataset" and "c_dataset". If the current dashboard uses datasets "a_dataset" and "b_dataset", only those 2 will be displayed in dataset picker in native filters modal. When user starts typing "c..." in dataset picker, "c_dataset" will be fetched from backend and displayed as an option. If a dashboard uses only 1 dataset, that dataset will be used as a default initial value in the dataset picker. If the dashboard uses more datasets, no default value will be used. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF https://user-images.githubusercontent.com/15073128/116240702-6a7bd280-a764-11eb-9241-bd37112ecb1d.mov ### TEST PLAN <!--- What steps should be taken to verify the changes --> ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [x] Has associated issue: https://github.com/apache/superset/issues/13536 - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API CC @villebro @junlincc @ktmud -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
