Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade API files to typescript #25098

Merged
merged 10 commits into from
Aug 29, 2022

Conversation

pierrejeambrun
Copy link
Member

@pierrejeambrun pierrejeambrun commented Jul 15, 2022

Move files under js/api to typescript.

related: #24350

@bbovenzi As discussed, here is a draft with only a few files (Migrations) updated.

I tried to use as many types as possible from the API generated ones. Some of the hooks use endpoints from views.py that are not exposed in the public API, we still need to make our own type for them.

As Brent suggested, there is also a very minimal URLSearchParamsWrapper to avoid manually casting to String everything.

@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Jul 15, 2022
@pierrejeambrun pierrejeambrun marked this pull request as draft July 15, 2022 16:24
@bbovenzi
Copy link
Contributor

Now that the API type generation is merged do you want to rebase the branch?

@pierrejeambrun
Copy link
Member Author

@bbovenzi Of course the branch is rebased :)

@potiuk
Copy link
Member

potiuk commented Jul 25, 2022

Rebased to account for "Werkzeug" fix

@pierrejeambrun pierrejeambrun force-pushed the upgrade-api-hooks-to-ts branch 4 times, most recently from fbe26ae to 067c203 Compare August 26, 2022 17:51
@pierrejeambrun pierrejeambrun marked this pull request as ready for review August 26, 2022 21:03
@pierrejeambrun pierrejeambrun requested review from bbovenzi and mik-laj and removed request for ryanahamilton, ashb, bbovenzi and mik-laj August 26, 2022 21:07
@pierrejeambrun pierrejeambrun changed the title Upgrade API file to typescript Upgrade API fileS to typescript Aug 26, 2022
@pierrejeambrun pierrejeambrun changed the title Upgrade API fileS to typescript Upgrade API files to typescript Aug 28, 2022
Copy link
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking great! excited to have better typescript coverage.

@bbovenzi bbovenzi merged commit 9c592cb into apache:main Aug 29, 2022
@pierrejeambrun pierrejeambrun deleted the upgrade-api-hooks-to-ts branch August 29, 2022 17:38
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Sep 13, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.0 milestone Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants