Skip to content

AIP-65: Update dag source endpoint to support versioning - #43492

Merged
ephraimbuddy merged 8 commits into
apache:mainfrom
astronomer:version-api
Nov 19, 2024
Merged

AIP-65: Update dag source endpoint to support versioning#43492
ephraimbuddy merged 8 commits into
apache:mainfrom
astronomer:version-api

Conversation

@ephraimbuddy

@ephraimbuddyephraimbuddy commented Oct 29, 2024

Copy link
Copy Markdown
Contributor

Enhanced the DAG source endpoint to support version-based retrieval

Refactored the get_dag_source function to allow fetching specific versions of DAG source code using dag_id, version_name, and version_number parameters.

Replaced file_token with dag_id in endpoint paths and removed unnecessary token-based access.

Updated OpenAPI specifications and requested serializers to include new versioning parameters.

Modified API response schema to include dag_id, and version_number for improved version tracking.

Added/updated tests

@boring-cyborgboring-cyborgBot added area:API Airflow's REST/HTTP API area:db-migrations PRs with DB migration area:dev-tools area:Scheduler including HA (high availability) scheduler area:serialization area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues kind:documentation labels Oct 29, 2024
@ephraimbuddy
ephraimbuddyforce-pushed the version-api branch 2 times, most recently from bb2a352 to 3ec23a2CompareOctober 30, 2024 06:21
@ephraimbuddyephraimbuddy changed the title AIP-65: Make DAG source endpoint version aware AIP-65: Update dag source endpoint to support versioningNov 7, 2024
@ephraimbuddy
ephraimbuddy marked this pull request as ready for review November 7, 2024 22:42
@ephraimbuddyephraimbuddy added the legacy api Whether legacy API changes should be allowed in PR label Nov 7, 2024
Comment threadairflow/models/dag_version.py Outdated
@ephraimbuddyephraimbuddy added the legacy ui Whether legacy UI change should be allowed in PR label Nov 8, 2024
@ephraimbuddy
ephraimbuddyforce-pushed the version-api branch 2 times, most recently from a541914 to ef8cce6CompareNovember 13, 2024 05:50
@ephraimbuddy
ephraimbuddyforce-pushed the version-api branch 2 times, most recently from 611f8df to 9a2705bCompareNovember 14, 2024 08:02
Comment threadairflow/api_connexion/endpoints/dag_source_endpoint.py
Comment threadairflow/ui/src/pages/DagsList/Dag/Code/Code.tsx
@ephraimbuddy
ephraimbuddyforce-pushed the version-api branch 2 times, most recently from de6d1c0 to 32d6edcCompareNovember 18, 2024 12:13

@pierrejeambrunpierrejeambrun 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.

Just one comment, otherwise looking good.

Comment threadairflow/api_fastapi/core_api/routes/public/dag_sources.py Outdated
Enhanced the DAG source endpoint to support version-based retrieval
Refactored the get_dag_source function to allow fetching specific versions of DAG source code using dag_id, version_name, and version_number parameters.
Replaced file_token with dag_id in endpoint paths and removed unnecessary token-based access.
Updated OpenAPI specifications and requested serializers to include new versioning parameters.
Modified API response schema to include dag_id, version_name, and version_number for improved version tracking.
Added/updated tests
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-65: DAG history in UIarea:APIAirflow's REST/HTTP APIarea:db-migrationsPRs with DB migrationarea:dev-toolsarea:Schedulerincluding HA (high availability) schedulerarea:serializationarea:UIRelated to UI/UX. For Frontend Developers.area:webserverWebserver related Issueskind:documentationlegacy apiWhether legacy API changes should be allowed in PRlegacy uiWhether legacy UI change should be allowed in PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@ephraimbuddy@bbovenzi@Lee-W@pierrejeambrun@dstandish@jedcunningham