You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/06/21 11:57:02 UTC

[GitHub] [airflow] ephraimbuddy commented on a change in pull request #9431: Move API page limit and offset parameters to views as kwargs Arguments

ephraimbuddy commented on a change in pull request #9431:
URL: https://github.com/apache/airflow/pull/9431#discussion_r443212229



##########
File path: airflow/api_connexion/parameters.py
##########
@@ -48,6 +45,27 @@ def format_datetime(value: str):
         )
 
 
+def check_limit(value: int):
+    """
+    This checks the limit passed to view and raises BadRequest if
+    limit exceed user configured value
+    """
+    max_val = int(conf.get("api", "maximum_page_limit"))

Review comment:
       I added it to config.yml but can't find where to add it in docs.




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

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