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

[GitHub] [airflow] uranusjr commented on a diff in pull request #29756: DAG list sorting lost when switching page

uranusjr commented on code in PR #29756:
URL: https://github.com/apache/airflow/pull/29756#discussion_r1122640728


##########
airflow/www/utils.py:
##########
@@ -238,6 +247,8 @@ def generate_pages(current_page, num_of_pages, search=None, status=None, tags=No
     :param status: 'all', 'active', or 'paused'
     :param tags: array of strings of the current filtered tags
     :param window: the number of pages to be shown in the paging component (7 default)
+    :param sorting_key: the sorting key selected for the dags
+    :param sorting_direction: direction of sorting, 'asc' or 'desc'

Review Comment:
   What does providing `None` to either param mean? Can this be described in the docstring? Can only one of those be None and the other not?



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