Crowiant commented on code in PR #45931:
URL: https://github.com/apache/airflow/pull/45931#discussion_r2251761667


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/config.py:
##########
@@ -155,3 +155,36 @@ def get_config_value(
 
     config = Config(sections=[ConfigSection(name=section, 
options=[ConfigOption(key=option, value=value)])])
     return _response_based_on_accept(accept, config)
+
+
+@config_router.get(
+    "/backends_order",
+    responses={
+        **create_openapi_http_exception_doc(
+            [
+                status.HTTP_404_NOT_FOUND,
+                status.HTTP_406_NOT_ACCEPTABLE,
+            ]
+        ),
+        status.HTTP_200_OK: {
+            "description": "Successful Response",
+            "content": text_example_response_for_get_config_value,
+        },
+    },
+    response_model=Config,
+    dependencies=[Depends(requires_access_configuration("GET"))],
+)
+def get_backends_order_value(

Review Comment:
   Hello @jason810496 ! Thank you for your review. Regarding the new endpoint. 
I decided to do so because get_config_value can be restricted to all users 
including admin by deployment managers and not allow to see any option. 
_check_expose_config() prevents from doing so.  In order not to change the 
logic of this endpoint I added get_backends_order_value.



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