bugraoz93 commented on code in PR #51704:
URL: https://github.com/apache/airflow/pull/51704#discussion_r2146784923
##########
airflow-ctl/src/airflowctl/api/operations.py:
##########
@@ -351,6 +351,16 @@ def list(self) -> Config | ServerResponseError:
except ServerResponseError as e:
raise e
+ def put(self, section: str, option: str, value: str) -> Config |
ServerResponseError:
+ """Update a config value on the API server."""
+ try:
+ self.response = self.client.put(
+ f"/config/section/{section}/option/{option}", json={"value":
value}
Review Comment:
Yes, there is no update endpoint in the API. The only way is to use a direct
database connection, which we won't do in `airflowctl`. Thanks Jed!
We can close the PR. After `lint`, which can run with the current API
support, is merged, we can assume `config` transition is done
--
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]