superset/tests
David Aaron Suddjian 865beae3d8
feat(dashboard): Dashboard-Native Filters (#11814)
* wip: filter create modal

* add a feature flag

* automatic changes to package lock

* wip

* filter sidebar and basic state management

* move create button to the sidebar

* first step for edit filterconfig

* partially fix tests...

* edits to types and comments

* respect feature flag on the filter sidebar

* add filterconfig form

* get input state working

* feat: tree filter scopes UI

* fix: turn on flag

* sticky filter bar

* stop preferring default export

* feat: finish filter scoping

* fix: under toggle

* fix: title

* fix: add licence

* refactor: update TS

* fix: fix on reopen modal + validation

* new filter bar menu

* adding, but commenting out, bulk scoping action

* adding some placeholder buttons and styles therefor

* feat: add filter chart

* add relative path to package.json

* update modal

* a little input styling... just getting warmed up

* Revert "feat: add filter chart"

This reverts commit b1302d35b6.

* Revert "add relative path to package.json"

This reverts commit 26a7b40e18.

* https package lock idk

* feat: add filter chart

* add relative path to package.json

* flexboxes all the way down

* dynamically generate groupby and datasource in select control

* big wip

* fix target column name

* no importing nonexistent things

* styles and name editing

* Add hook for retrieval of all filter states

* start with a new filter when clicking add filter

* handle removed filters gracefully

* fix incorrect default filter configuration

* add fields to useAllFilterState

* add redux for filterconfigs

* add support for native_filters

* remove consoles

* improve filter removal

* unbreak infinite loop

* basic sidebar toggling working!

* collapsing and menu working more smoothly

* linting

* make dataset and column inputs work

* save filter values properly

* add dashboard event for filter updates

* guarded

* apply filters properly

* fix schema

* making New Filter button a link

* gridunits ftw

* centering modal

* tis not a button anymore! nixing type.

* plus and collapse buttons instead of "more" menu

* updating full size filter icons

* adding icons to filter collapsing/expanding

* turning off animation, but leaving class-based animation css

* fix linting error

* fix native filters for legacy charts

* updates test

* no individual apply buttons

* fix bugs with filter config modal

* remove redundant code

* switch to the filter with validation errors on submit

* separate form validation

* switch config button from add to edit

* update tests

* oops forgot to add the fancy new useChangeEffect hook

* comments and code reorganization

* rename native_filters to extr_form_data and move hook

* disable native filters in viz selector

* add cascading

* implement new extra form data api

* cleanup

* updates tests

* bump npm packages

* fix bad merge on package.json + lock

* lint

* replace in and not in with uppercase

* lint

* lint

* lint

* lint

* bulk test fix

* Sort select input alphabetically

* Change type for sorting elements

* fix rest of unit tests

* make filter operators all uppercase

* Hide Filter bar when there are no filters

* Show edit button for dashboard owners only

* Add visible argument to filters toggle function to avoid future regression

* Improve Toggle filters bar function

* lint

* fix js lint + set createNewOnOpen

* Handle setting extra form data in Filter Bar instead of Filter Control

* Add Handle apply filter function to Apply button

* Allow applying changes instantly

* Fix types

* remove console logs

* Add Error Boundary component to Filter bar and Filter Config Modal

* fix jest tests

* update native filters tests to pass

* reset cypress baseUrl

* remove unnecessary field

* cleanup: remove unused state fields

* move unrelated types to an appropriate location

* remove misplaced resource fetch error logic

* fix cascadeParentIds error

* fix cypress password

* initial attempt at fixing scope issue

* fix bad merge

* fix lint

* trying out makeApi for saving filters

* remove unused import

* fix test

* silence bad test

* add native-filter feat flag config

* oops fix here

* remove space

* Update superset-frontend/src/common/components/index.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/cypress-base/cypress/integration/dashboard/nativeFilters.test.ts

Co-authored-by: Evan Rusackas <evan@preset.io>

* use styledMount in tests

* comment

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigForm.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigModal.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigurationLink.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* address PR feedback

* fix package lock

* null guards

* Fix charts resizing

* fix cypress tests

* add in nativefilters to form data

* fix lint and test

Co-authored-by: Phillip Kelley-Dotson <pkelleydotson@yahoo.com>
Co-authored-by: Simcha Shats <simcha.shats@nielsen.com>
Co-authored-by: amitNielsen <amit.miran@nielsen.com>
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
Co-authored-by: Evan Rusackas <evan@preset.io>
Co-authored-by: Agata Stawarz-Pastewska <agata.stawarz-pastewska@polidea.com>
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2020-12-18 17:06:37 -08:00
..
annotation_layers feat(annotations): security permissions simplification (#12014) 2020-12-16 09:08:06 +00:00
async_events feat(SIP-39): Async query support for charts (#11499) 2020-12-10 20:21:56 -08:00
cachekeys feat: implement cache invalidation api (#10761) 2020-09-15 11:17:21 -07:00
charts feat(explore): time picker enhancement (#11418) 2020-12-17 18:27:21 -08:00
css_templates feat(css templates): security perm simplification (#11856) 2020-12-03 08:45:32 +00:00
dashboards feat(dashboards): security permissions simplification (#12012) 2020-12-17 09:53:13 +00:00
databases feat(databases): security perm simplification (#12036) 2020-12-17 12:37:05 +00:00
datasets feat(datasets): security perm simplification (#12000) 2020-12-16 11:49:03 +00:00
db_engine_specs tests: added fixture with energy usage instead of example (#11308) 2020-12-09 12:02:29 -08:00
fixtures feat: update IDs when importing dashboards (#11991) 2020-12-11 18:19:36 -08:00
importexport feat: create base class for export commands (#11463) 2020-10-30 11:52:11 -07:00
queries feat(saved queries): security perm simplification (#11764) 2020-11-30 13:07:39 +00:00
reports fix(reports): increase crontab size and alert fixes (#12056) 2020-12-17 18:03:05 +00:00
security feat(saved queries): security perm simplification (#11764) 2020-11-30 13:07:39 +00:00
tasks feat(SIP-39): Async query support for charts (#11499) 2020-12-10 20:21:56 -08:00
utils perf: cache dashboard bootstrap data (#11234) 2020-10-13 18:43:06 -07:00
__init__.py Add licenses to translations (#6732) 2019-01-22 08:21:13 -08:00
access_tests.py tests: added fixture with energy usage instead of example (#11308) 2020-12-09 12:02:29 -08:00
alerts_tests.py tests: Parameterize some tests in alerts_tests.py (#11313) 2020-10-19 23:05:04 -07:00
base_api_tests.py feat(dashboards): security permissions simplification (#12012) 2020-12-17 09:53:13 +00:00
base_tests.py feat: show missing parameters in query (#12049) 2020-12-15 18:47:40 -08:00
cache_tests.py feat(SIP-39): Async query support for charts (#11499) 2020-12-10 20:21:56 -08:00
celery_tests.py feat: initial custom error messages for SQL Lab (#12080) 2020-12-17 22:58:21 -08:00
commands_test.py fix: CommandInvalidError had invalid init (#11635) 2020-11-10 07:41:03 -08:00
config_tests.py s/assertEqual/assertEquals (#10195) 2020-06-29 16:38:06 -07:00
conftest.py tests: added fixture with energy usage instead of example (#11308) 2020-12-09 12:02:29 -08:00
core_tests.py feat(SIP-39): Async query support for charts (#11499) 2020-12-10 20:21:56 -08:00
csv_upload_tests.py chore: ci Initial hive support (#10593) 2020-08-27 09:49:18 -07:00
dashboard_tests.py tests: added fixture with energy usage instead of example (#11308) 2020-12-09 12:02:29 -08:00
dashboard_utils.py tests: added fixture with energy usage instead of example (#11308) 2020-12-09 12:02:29 -08:00
dataframe_test.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
datasource_tests.py feat: add hook for dataset health check (#11970) 2020-12-15 18:12:06 -08:00
dict_import_export_tests.py feat: add UUID column to ImportMixin (#11098) 2020-10-07 09:00:55 -07:00
druid_func_tests_sip38.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
druid_func_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
druid_tests.py Revert "chore: Cleanup database sessions (#10427)" (#10537) 2020-08-06 15:33:48 -07:00
email_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
event_logger_tests.py refactor: optimize backend log payload (#11927) 2020-12-15 17:22:23 -08:00
feature_flag_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
form_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
import_export_tests.py tests: added fixture with energy usage instead of example (#11308) 2020-12-09 12:02:29 -08:00
jinja_context_tests.py feat(templating): Safer Jinja template processing (#11704) 2020-11-17 11:55:47 -08:00
log_api_tests.py Add more fields to the log API (#10271) 2020-07-13 18:06:33 -07:00
logging_configurator_tests.py Add LogConfigurator, and add logging for CSV export (#8085) 2019-08-27 13:22:18 -07:00
migration_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
model_tests.py tests: added fixture with energy usage instead of example (#11308) 2020-12-09 12:02:29 -08:00
pandas_postprocessing_tests.py feat: add ECharts BoxPlot chart (#11199) 2020-11-12 10:01:04 +02:00
query_context_tests.py feat(chart-data-api): ignore unknown fields on QueryObject (#12118) 2020-12-18 14:32:55 +02:00
result_set_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
schedules_test.py fix: use nullpool even for user lookup in the celery (#10938) 2020-09-21 10:34:03 -07:00
security_tests.py feat(queries): security perm simplification (#12072) 2020-12-17 14:27:14 +00:00
sql_parse_tests.py chore: Support SET & SHOW commands as read only SQL commands (#11868) 2020-12-03 10:44:11 -08:00
sql_validator_tests.py feat: add Postgres SQL validator (#11538) 2020-12-04 19:17:23 -08:00
sqla_models_tests.py fix: do not drop calculated column on metadata sync (#11731) 2020-11-18 08:33:14 -08:00
sqllab_tests.py feat: initial custom error messages for SQL Lab (#12080) 2020-12-17 22:58:21 -08:00
stats_logger_tests.py chore: statds metrics for cache invalidation (#11701) 2020-11-16 06:48:26 -08:00
strategy_tests.py test: removed unicode_test example from unit tests (#11131) 2020-10-07 18:29:37 +03:00
superset_test_config_sqllab_backend_persist.py [Build] Add Github workflows (#9517) 2020-04-14 13:38:09 -07:00
superset_test_config_thumbnails.py chore: Using cache factory method (#10887) 2020-09-15 12:48:19 -07:00
superset_test_config.py feat(dashboard): Dashboard-Native Filters (#11814) 2020-12-18 17:06:37 -08:00
superset_test_custom_template_processors.py fix(jinja): make context attrs private on SQL templates (#10934) 2020-09-18 12:56:07 +01:00
tagging_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
test_app.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
thumbnails_tests.py chore: Migrating reports to AuthWebdriverProxy (#10567) 2020-08-12 13:28:41 -07:00
utils_tests.py feat(dashboard): Dashboard-Native Filters (#11814) 2020-12-18 17:06:37 -08:00
viz_tests.py feat(SIP-39): Async query support for charts (#11499) 2020-12-10 20:21:56 -08:00