Skip to content

Conversation

@ephraimbuddy
Copy link
Contributor

@ephraimbuddy ephraimbuddy commented Oct 29, 2024

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-cyborg boring-cyborg bot 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 ephraimbuddy force-pushed the version-api branch 2 times, most recently from bb2a352 to 3ec23a2 Compare October 30, 2024 06:21
@ephraimbuddy ephraimbuddy changed the title AIP-65: Make DAG source endpoint version aware AIP-65: Update dag source endpoint to support versioning Nov 7, 2024
@ephraimbuddy ephraimbuddy marked this pull request as ready for review November 7, 2024 22:42
@ephraimbuddy ephraimbuddy added the legacy api Whether legacy API changes should be allowed in PR label Nov 7, 2024
@ephraimbuddy ephraimbuddy added the legacy ui Whether legacy UI change should be allowed in PR label Nov 8, 2024
@ephraimbuddy ephraimbuddy force-pushed the version-api branch 2 times, most recently from a541914 to ef8cce6 Compare November 13, 2024 05:50
@ephraimbuddy ephraimbuddy force-pushed the version-api branch 2 times, most recently from 611f8df to 9a2705b Compare November 14, 2024 08:02
@ephraimbuddy ephraimbuddy force-pushed the version-api branch 2 times, most recently from de6d1c0 to 32d6edc Compare November 18, 2024 12:13
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

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.

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
@ephraimbuddy ephraimbuddy merged commit cc8aa7b into apache:main Nov 19, 2024
1 check passed
@ephraimbuddy ephraimbuddy deleted the version-api branch November 19, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-65: DAG history in UI 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 legacy api Whether legacy API changes should be allowed in PR legacy ui Whether legacy UI change should be allowed in PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants