Skip to content

AIP-84 Migrate public endpoints from api_connexion to the new Rest API #42370

Closed

Description

@pierrejeambrun

Body

#42366 is taking care of migrating private endpoints.

This issue focuses on migrating all the public ones. Ideally they shouldn't change too much and be feature rich compare to airflow 2.x.

An exemple PR can be found here #42196

Tasks (total ~ 81 endpoints)

Backfill (6 endpoints) @dstandish

Config (2 endpoints) @rawwar

Connection @bugraoz93 (6 endpoints)

DAG (5 endpoints)

Dag Parsing (1 endpoint)

Dag Runs @rawwar (9 endpoints)

Dag Source (1 endpoint)

Dag Stats (1 endpoint)

Dag Warnings (1 endpoint) @rawwar

Dataset / Assets (10 endpoints) @amoghrajesh

Event Logs (2 endpoints)

Extra Link (1 endpoint)

Monitor (2 endpoints)

Import Error (2 endpoints) @jason810496

Log (1 endpoint)

Plugin (1 endpoint)

Pool (5 endpoints) @pierrejeambrun

Provider (1 endpoint)

Task (2 endpoints) @omkar-foss

Task Instance (15 endpoints) @pierrejeambrun

Variables (5 endpoints)

XCom (2 endpoints)

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

  1. omkar-foss commented on Sep 23, 2024

    @omkar-foss
    Collaborator

    Trimming down views.py is very tempting 😄

    May I pick this up? If yes, please assign this issue to me. Thanks!

  2. pierrejeambrun commented on Sep 23, 2024

    @pierrejeambrun
    MemberAuthor

    Hello @omkar-foss,

    views.py are mostly 'rendered' front end that will get replaced by the new UI react, in views.py you also find private/UI REST route, most of them are with the /object/ prefix, such as def grid_data. If you want to work on those UI dedicated endpoints you can that would be part of #42366.

    This issue focuses on the public endpoints, those are located under the api_connexion folder.

    In anycase, just mention the endpoint you are working on, so people do not do the same ones, and I will update the description to track that :). I think we should do one at the time.

  3. omkar-foss commented on Sep 23, 2024

    @omkar-foss
    Collaborator

    Hi @pierrejeambrun, thank you for explaining it to me, much appreciate it.

    I'll start migrating the public endpoints, beginning with migration of the DAG Details API (get_dag_details) in api_connexion/endpoints/dag_endpoint.py.

    Since this is a meta issue (missed that previously!), I'll create the issue/PR corresponding to the endpoint(s) that I'll be working on and link to this issue (like usual).

    P.S: views.py will have to wait :)

  4. bugraoz93 commented on Sep 28, 2024

    @bugraoz93
    Contributor

    Thanks for creating the ticket @pierrejeambrun! Let me take connection endpoints

  5. pierrejeambrun commented on Sep 30, 2024

    @pierrejeambrun
    MemberAuthor

    Great, thanks @bugraoz93

  6. bugraoz93 commented on Sep 30, 2024

    @bugraoz93
    Contributor

    Thanks for assigning! Let me save you from regular updates :) I created issues for all the endpoints in connections.

  7. pierrejeambrun commented on Oct 1, 2024

    @pierrejeambrun
    MemberAuthor

    Great, thanks @bugraoz93. I just updated the meta issue with those new additions. Let me know if you plan to work on all of them so I can assign you, or just some of them so I can label the others with good first issue and let other contributors grab them :)

  8. bugraoz93 commented on Oct 1, 2024

    @bugraoz93
    Contributor

    I am planning to work on all of them @pierrejeambrun. if you can assign them to me, that would be great! Thanks :)

  9. omkar-foss commented on Oct 2, 2024

    @omkar-foss
    Collaborator

    Hey folks! After #42631 (open for review), I can pick up these two next in order:

    1. get_dag - AIP-84 Migrate the public endpoint Get DAG to FastAPI #42652
    2. delete_dag - AIP-84 Migrate the public endpoint Delete DAG to FastAPI #42650

    With these 2 done, I suppose we should have the dags.py migration complete. When you find some time, please update this meta and assign these to me, thank you! 😃

  10. 13 remaining items

  11. jason810496 commented on Nov 1, 2024

    @jason810496
    Member

    Hi @pierrejeambrun, I can handle the migrations for Import Error

    1. get_import_error
    2. get_import_errors

    I’m still encountering the issue where I can’t create the correct issue type.
    Could you please create it and assign it to me? Thanks!

  12. rawwar commented on Nov 2, 2024

    @rawwar
    Contributor

    I've unassigned myself for the config endpoint issue. If no one takes it, I'll pick it up once I finish DagRun and DagWarning endpoints.
    Issue: #42745 <- If anyone wants to take this, please let me know and I can assign it to you.

  13. pierrejeambrun commented on Nov 6, 2024

    @pierrejeambrun
    MemberAuthor

    Hey omkar, as you can see in I'm already assigned to the TaskInstances endpoint.

    Thanks for creating the issue, we can split the work on that matter, i'll assign some of them to you maybe all the PUT/POST as I am already working on GET.

  14. pierrejeambrun commented on Nov 6, 2024

    @pierrejeambrun
    MemberAuthor

    You're assigned, issue updated, let me know if that shounds good for you :).

  15. omkar-foss commented on Nov 8, 2024

    @omkar-foss
    Collaborator

    You're assigned, issue updated, let me know if that shounds good for you :).

    Yes sure, that works. Thank you :)

  16. bbovenzi commented on Nov 20, 2024

    @bbovenzi
    Contributor

    @prabhusneha I see you're assigned to Logs. What is the status of getting the logs for a task instance? That would be a useful one to get in the UI soon!

  17. utkarsharma2 commented on Nov 21, 2024

    @utkarsharma2
    Contributor

    @prabhusneha I see you're assigned to Logs. What is the status of getting the logs for a task instance? That would be a useful one to get in the UI soon!

    Hey, @bbovenzi I'm taking care of task instance logs endpoint, I'm mostly done with it, but there are a couple of test cases that require setting users in fastapi which requires a little more work. I'll keep you posted.

  18. phanikumv commented on Nov 21, 2024

    @phanikumv
    Contributor

    Thanks @utkarsharma2 (updated the description accordingly).

  19. pierrejeambrun commented on Nov 28, 2024

    @pierrejeambrun
    MemberAuthor

    Thanks a lot to everyone that contributed, closing a big one 🎉

  20. changed the title [-]AIP-84 Migrate public endpoints from api_connexion to the new rest api[/-] [+]AIP-84 Migrate public endpoints from api_connexion to the new Rest API[/+] on Nov 28, 2024
  21. added this to the Airflow 3.0.0 milestone on Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

AIP-84Modern Rest APIarea:APIAirflow's REST/HTTP APIkind:metaHigh-level information important to the community

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions