19943 Grid view status filters (#23392)
authorpierrejeambrun <pierrejbrun@gmail.com>
Mon, 9 May 2022 20:32:02 +0000 (22:32 +0200)
committerGitHub <noreply@github.com>
Mon, 9 May 2022 20:32:02 +0000 (16:32 -0400)
commit46c1c006f747798f7c80f615d791553f25dd1770
treeb07b32969c8eb4579fac0ed78582574d773d0905
parent7354d2eac990208d5a631c05649c482560bd827b
19943 Grid view status filters (#23392)

* Move tree filtering inside react and add some filters

* Move filters from context to utils

* Fix tests for useTreeData

* Fix last tests.

* Add tests for useFilters

* Refact to use existing SimpleStatus component

* Additional fix after rebase.

* Update following bbovenzi code review

* Update following code review

* Fix tests.

* Fix page flickering issues from react-query

* Fix side panel and small changes.

* Use default_dag_run_display_number in the filter options

* Handle timezone

* Fix flaky test

Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>
22 files changed:
airflow/settings.py
airflow/utils/state.py
airflow/www/jest-setup.js
airflow/www/static/js/datetime_utils.js
airflow/www/static/js/grid/FilterBar.jsx [new file with mode: 0644]
airflow/www/static/js/grid/Grid.jsx
airflow/www/static/js/grid/LegendRow.jsx [new file with mode: 0644]
airflow/www/static/js/grid/StatusBox.jsx
airflow/www/static/js/grid/api/useGridData.js
airflow/www/static/js/grid/api/useGridData.test.jsx
airflow/www/static/js/grid/dagRuns/index.test.jsx
airflow/www/static/js/grid/details/Header.jsx
airflow/www/static/js/grid/details/content/taskInstance/index.jsx
airflow/www/static/js/grid/index.jsx
airflow/www/static/js/grid/renderTaskRows.jsx
airflow/www/static/js/grid/utils/testUtils.jsx
airflow/www/static/js/grid/utils/useFilters.js [new file with mode: 0644]
airflow/www/static/js/grid/utils/useFilters.test.jsx [new file with mode: 0644]
airflow/www/static/js/grid/utils/useSelection.js [moved from airflow/www/static/js/grid/utils/useSelection.jsx with 100% similarity]
airflow/www/templates/airflow/grid.html
airflow/www/views.py
tests/www/views/test_views_home.py