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

Sync up plugin API schema and definition #25524

Merged

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Aug 4, 2022

Fix #25492. Many of the entries should have been objects (dicts), not strings. These have been defined like this ever since the API endpoint’s introduction in #14280.

I also removed number since, as far as I can tell, it is not set or used anywhere in the code.

We should probably add a bit more structure in those dicts, but this is the minimal change needed to make the schema make sense.

Many of the entries should have been objects (dicts), not strings. Also
removed "number" since it is not present anyway and I don't even know
where it came from.
@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Aug 4, 2022
@ashb
Copy link
Member

ashb commented Aug 4, 2022

Is it worth adding a newsfragment about this? I guess although this is technically a breaking change, since this endpoint never worked (right?) it's okay to change the API structure?

@uranusjr
Copy link
Member Author

uranusjr commented Aug 4, 2022

The endpoint works as long as those values are not used (e.g. the setup has no custom views), but yes this is OK because whatever this “breaks” does not work right now.

@potiuk potiuk added this to the Airflow 2.3.4 milestone Aug 4, 2022
@potiuk potiuk merged commit 5de11e1 into apache:main Aug 4, 2022
@uranusjr uranusjr deleted the fixup-plugin-api-endpoint-definition branch August 5, 2022 02:19
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API server /plugin crashes
4 participants