You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "pierrejeambrun (via GitHub)" <gi...@apache.org> on 2023/02/24 20:06:35 UTC

[GitHub] [airflow] pierrejeambrun commented on issue #29322: DAG list, sorting lost when switching page

pierrejeambrun commented on issue #29322:
URL: https://github.com/apache/airflow/issues/29322#issuecomment-1444385248

   Hello @amoghrajesh,
   
   Sorting is done in the [db query](https://github.com/apache/airflow/blob/main/airflow/www/views.py#L780). The template renders that into a table in the same order.
   
   What we need to do is keep the query parameters that are responsible for the sorting when redirecting to a new page. As mentioned by Brent, `generate_pages` is taking care of that. You need to update it so it can handle the `sorting_key` and `sorting_direction` query param. (The view will take care of querying the proper data and rendering it in the correct order as long as the requested URL has those 2 extra query params)


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org