Skip to content

AIP-84 Migrate views /object/historical_metrics_data to Fast API - #42629

Merged
pierrejeambrun merged 15 commits into
apache:mainfrom
bugraoz93:42623/aip-84/historical-metrics-data
Oct 9, 2024
Merged

AIP-84 Migrate views /object/historical_metrics_data to Fast API#42629
pierrejeambrun merged 15 commits into
apache:mainfrom
bugraoz93:42623/aip-84/historical-metrics-data

Conversation

@bugraoz93

Copy link
Copy Markdown
Contributor

Closes: #42623


^ 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.

@boring-cyborgboring-cyborgBot added the area:UI Related to UI/UX. For Frontend Developers. label Oct 1, 2024
Comment threadairflow/api_fastapi/views/ui/objects.py Outdated
Comment threadairflow/api_fastapi/views/ui/objects.py Outdated
@bugraoz93
bugraoz93 requested a review from ashb as a code ownerOctober 2, 2024 20:24
@bbovenzi

Copy link
Copy Markdown
Contributor

One nit after looking at the autogenerated code. Let's drop the word data. Just historical_metrics

Comment threadairflow/ui/openapi-gen/requests/types.gen.ts Outdated

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

Looking good, just the comment above for the response schema and then we can merge I think

Comment threadairflow/api_fastapi/parameters.py Outdated
@pierrejeambrun

Copy link
Copy Markdown
Member

@bugraoz93 can you rebase the branch before I merge please, it is quite behind main. Thanks :)

@bugraoz93
bugraoz93force-pushed the 42623/aip-84/historical-metrics-data branch from 3d4fe0e to 2b6a3edCompareOctober 7, 2024 17:16
@bugraoz93

Copy link
Copy Markdown
ContributorAuthor

For sure, @pierrejeambrun, I rebased it. Thanks! :)

@bugraoz93

Copy link
Copy Markdown
ContributorAuthor

Okay, merges after my rebase caused conflicts. Solving them and rebasing again :)

@bugraoz93
bugraoz93force-pushed the 42623/aip-84/historical-metrics-data branch from 8d7cd63 to bbcefb6CompareOctober 7, 2024 17:52
@bbovenzi

Copy link
Copy Markdown
Contributor

Looks like we need another rebase and then running pre-commit for the auto-generated files.

@bugraoz93
bugraoz93force-pushed the 42623/aip-84/historical-metrics-data branch from bbcefb6 to 4120809CompareOctober 9, 2024 00:24
@bugraoz93
bugraoz93force-pushed the 42623/aip-84/historical-metrics-data branch from 4120809 to 3de5f75CompareOctober 9, 2024 00:29
@bugraoz93

Copy link
Copy Markdown
ContributorAuthor

Rebased and run the hooks.

@bugraoz93

Copy link
Copy Markdown
ContributorAuthor

While running the hooks, a new PR merged. I rebased again just in case. The speed of the development 🚀 :)

@pierrejeambrun
pierrejeambrun merged commit 66a89f1 into apache:mainOct 9, 2024
kunaljubce pushed a commit to kunaljubce/airflow that referenced this pull request Oct 13, 2024
…che#42629)
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Use pyfixture session
* Include provide_session for SQLite session thread issue
* Make method async and remove unused session from tests
* Include return type to generate proper openapi spec
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Include pydantic model for Dashboard Historical Metric Data and convert response to HistoricalMetricDataResponse
* Fix conflict and rerun pre-commit hooks
* Rename data variable to historical metrics for consistency
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Drop data from method name to prevent double Data in the name of objects
* Variable name change to prevent shadow naming with method name
* Resolve conflicts and rebase again
* Resolve conflicts and rebase
pavansharma36 pushed a commit to pavansharma36/airflow that referenced this pull request Oct 14, 2024
…che#42629)
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Use pyfixture session
* Include provide_session for SQLite session thread issue
* Make method async and remove unused session from tests
* Include return type to generate proper openapi spec
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Include pydantic model for Dashboard Historical Metric Data and convert response to HistoricalMetricDataResponse
* Fix conflict and rerun pre-commit hooks
* Rename data variable to historical metrics for consistency
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Drop data from method name to prevent double Data in the name of objects
* Variable name change to prevent shadow naming with method name
* Resolve conflicts and rebase again
* Resolve conflicts and rebase
R7L208 pushed a commit to R7L208/airflow that referenced this pull request Oct 17, 2024
…che#42629)
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Use pyfixture session
* Include provide_session for SQLite session thread issue
* Make method async and remove unused session from tests
* Include return type to generate proper openapi spec
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Include pydantic model for Dashboard Historical Metric Data and convert response to HistoricalMetricDataResponse
* Fix conflict and rerun pre-commit hooks
* Rename data variable to historical metrics for consistency
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Drop data from method name to prevent double Data in the name of objects
* Variable name change to prevent shadow naming with method name
* Resolve conflicts and rebase again
* Resolve conflicts and rebase
harjeevanmaan pushed a commit to harjeevanmaan/airflow that referenced this pull request Oct 23, 2024
…che#42629)
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Use pyfixture session
* Include provide_session for SQLite session thread issue
* Make method async and remove unused session from tests
* Include return type to generate proper openapi spec
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Include pydantic model for Dashboard Historical Metric Data and convert response to HistoricalMetricDataResponse
* Fix conflict and rerun pre-commit hooks
* Rename data variable to historical metrics for consistency
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Drop data from method name to prevent double Data in the name of objects
* Variable name change to prevent shadow naming with method name
* Resolve conflicts and rebase again
* Resolve conflicts and rebase
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
…che#42629)
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Use pyfixture session
* Include provide_session for SQLite session thread issue
* Make method async and remove unused session from tests
* Include return type to generate proper openapi spec
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Include pydantic model for Dashboard Historical Metric Data and convert response to HistoricalMetricDataResponse
* Fix conflict and rerun pre-commit hooks
* Rename data variable to historical metrics for consistency
* Include object router and migrate objects/historical_metrics_data to FastAPI
* Object definition to Dashboard definition, make safe date Annotated parameter in parameters.py
* Drop data from method name to prevent double Data in the name of objects
* Variable name change to prevent shadow naming with method name
* Resolve conflicts and rebase again
* Resolve conflicts and rebase
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UIRelated to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AIP-84 Migrate /object/historical_metrics_data from views to FastAPI

3 participants

@bugraoz93@bbovenzi@pierrejeambrun