Skip to content

Add rest endpoint to get option of configuration#31056

Merged
potiuk merged 1 commit into
apache:mainfrom
astronomer:get_config_value
May 4, 2023
Merged

Add rest endpoint to get option of configuration#31056
potiuk merged 1 commit into
apache:mainfrom
astronomer:get_config_value

Conversation

@pankajastro

Copy link
Copy Markdown
Member

Currently, getting a single configuration option is missing in the rest API.
This PR add an endpoint /config/section/{section}/option/{option} to Return a single option.
If the option is not found, the API returns 404.
Also, if expose_config is not set in the configuration then it would return 403.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Currently, getting a single configuration option is missing in the rest API.
This PR add an endpoint `/config/section/{section}/option/{option}` to
Return a single option. If the option is not found, the API returns 404.
Also, if `expose_config` is not set in configuration then it would return 403.
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels May 4, 2023

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I like the attention to details when it comes to different kinds of errors in tests.

@potiuk
potiuk merged commit ab74d1b into apache:main May 4, 2023
@pankajastro
pankajastro deleted the get_config_value branch May 4, 2023 19:43
@ephraimbuddy ephraimbuddy added the type:new-feature Changelog: New Features label May 8, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.0 milestone May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:new-feature Changelog: New Features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants