robinedwards opened a new issue #18083:
URL: https://github.com/apache/airflow/issues/18083


   ### Apache Airflow version
   
   2.1.3 (latest released)
   
   ### Operating System
   
   Debian GNU/Linux 10 (buster)
   
   ### Versions of Apache Airflow Providers
   
   `apache-airflow-providers-amazon @ 
file:///root/.cache/pypoetry/artifacts/7f/f7/23/fc7fd3543aa486275ef0385c29063ff0dc391b0fc95dc5aa6cab2cf4e5/apache_airflow_providers_amazon-2.2.0-py3-none-any.whl
   apache-airflow-providers-celery @ 
file:///root/.cache/pypoetry/artifacts/14/80/39/0d9d57205da1d24189ac9c18eb3477664ed2c2618c1467c9809b9a2fbf/apache_airflow_providers_celery-2.0.0-py3-none-any.whl
   apache-airflow-providers-ftp @ 
file:///root/.cache/pypoetry/artifacts/a5/13/da/bf14abc40193a1ee1b82bbd800e3ac230427d7684b9d40998ac3684bef/apache_airflow_providers_ftp-2.0.1-py3-none-any.whl
   apache-airflow-providers-http @ 
file:///root/.cache/pypoetry/artifacts/fc/d7/d2/73c89ef847bbae1704fa403d7e92dba1feead757aae141613980db40ff/apache_airflow_providers_http-2.0.0-py3-none-any.whl
   apache-airflow-providers-imap @ 
file:///root/.cache/pypoetry/artifacts/af/5d/de/21c10bfc7ac076a415dcc3fc909317547e77e38c005487552cf40ddd97/apache_airflow_providers_imap-2.0.1-py3-none-any.whl
   apache-airflow-providers-postgres @ 
file:///root/.cache/pypoetry/artifacts/77/15/08/a8b670fb068b3135f97d1d343e96d48a43cbf7f6ecd0d3006ba37d90bb/apache_airflow_providers_postgres-2.2.0rc1-py3-none-any.whl
   apache-airflow-providers-redis @ 
file:///root/.cache/pypoetry/artifacts/7d/95/03/5d2a65ace88ae9a9ce9134b927b1e9639c8680c13a31e58425deae55d1/apache_airflow_providers_redis-2.0.1-py3-none-any.whl
   apache-airflow-providers-sqlite @ 
file:///root/.cache/pypoetry/artifacts/ec/e6/a3/e0d81fef662ccf79609e7d2c4e4440839a464771fd2a002d252c9a401d/apache_airflow_providers_sqlite-2.0.1-py3-none-any.whl
   `
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   Issue is agnostic to the deployment as long as you have more dags in your 
system than will fit on the first page in airflow home
   
   ### What happened
   
   The blocked, last_dagrun, dag_stats, task_stats endpoints are being sent the 
incorrect form field. 
   
   The field used to be `dag_ids`  and now it seems to be `dagIds` (on the JS 
side) 
https://github.com/apache/airflow/blame/2.1.3/airflow/www/static/js/dags.js#L89 
 and https://github.com/apache/airflow/blob/2.1.3/airflow/www/views.py#L1659. 
   
   This causes the end point to attempt to return all dags which in our case is 
13000+. 
   
   The fall back behaviour of returning all dags the user has permission for is 
a bad idea if i am honest. Perhaps it can be removed?
   
   ### What you expected to happen
   
   The correct form field be posted and only the dags relevant to the page be 
returned
   
   ### How to reproduce
   
   1. Create more dags with task runs than's available on one page (suggest 
lowering page size)
   2. Enable js debugging
   3. Refresh /home
   4. Inspect response from /blocked /task_stats /last_dagruns and observe it 
returns dags which aren't on the page
   
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to