Skip to content

AIP-84 Migrate Config related public endpoint to FastAPI  #42745

Closed

Description

@rawwar

Description

Migrate the following endpoint:

  • Get Current configuration
  • Get a option from configuration

Use case/motivation

AIP-84

Related issues

Relates to: #42370

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. rawwar commented on Oct 4, 2024

    @rawwar
    ContributorAuthor

    For Get config,

    return Response(status=HTTPStatus.NOT_ACCEPTABLE)

    Docs does not mention about 406(HTTPStatus.NOT_ACCEPTABLE) status code. Should we include 406 as well?



    Another question about the response. Do we only return JSON or also consider text response?

  2. pierrejeambrun commented on Oct 9, 2024

    @pierrejeambrun
    Member

    I think we should support all the content-type that the legacy endpoint was supporting, so yes I would say multiple of them (JSON, text etc.) we need to actually check what should be supported.

    We can add 406 that's not a problem. Though I would tend to return a general 422 ValidationError, like the client response is wrong because the mimetype suggested is not supported. I'm not really for having a multitute of response code from the API, the 406 one is really singular I would say.

    We can even add breaking to the PR and document that the response code error changed. So it will be documented in airflow 3 breaking changes.

  3. added
    AIP-84Modern Rest API
    and removed
    needs-triagelabel for new issues that we didn't triage yet
    on Oct 9, 2024
  4. removed their assignment
    on Nov 2, 2024
  5. jason810496 commented on Nov 4, 2024

    @jason810496
    Member

    Hi @rawwar, I can take this on. Could you please assign the issue to me? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AIP-84Modern Rest APIarea:APIAirflow's REST/HTTP APIkind:featureFeature Requests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions