Skip to content

Add React Apps to plugin #52255

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

pierrejeambrun
Copy link
Member

related: #42702

Add 'react_apps` registration to plugin. This will be used by the front-end to fetch bundles and dynamically import related components.

@pierrejeambrun pierrejeambrun force-pushed the add-react-apps-to-plugins branch 2 times, most recently from 6c8dd23 to ece7548 Compare June 26, 2025 10:18
@pierrejeambrun pierrejeambrun mentioned this pull request Jun 26, 2025
6 tasks
@pierrejeambrun pierrejeambrun force-pushed the add-react-apps-to-plugins branch from ece7548 to 9e7dd24 Compare June 26, 2025 15:49
@pierrejeambrun pierrejeambrun merged commit 121a31f into apache:main Jun 26, 2025
98 of 99 checks passed
@pierrejeambrun pierrejeambrun deleted the add-react-apps-to-plugins branch June 26, 2025 16:49
class ExternalViewResponse(BaseUIResponse):
"""Serializer for External View Plugin responses."""

model_config = ConfigDict(extra="allow")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why actually do we allow extras here?

Copy link
Member Author

@pierrejeambrun pierrejeambrun Jun 27, 2025

Choose a reason for hiding this comment

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

This is how plugin attributes are built, every members of the Plugin allow extra attributes and are serialized and returned. This was the behavior in 2.x, so we kept the same parttern in 3.x. Newly added attributes (react_apps, fastapi_apps, eternal_views) also follow the same pattern.

Meaning that you can attach some extra metadata to your plugin members, and it will be returned by the API.

@jscheffl
Copy link
Contributor

Late to the party to review - COOL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:airflow-ctl area:API Airflow's REST/HTTP API area:CLI area:plugins area:UI Related to UI/UX. For Frontend Developers. kind:documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants