-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Add React Apps to plugin #52255
Conversation
5f66ebd
to
b7fd1b6
Compare
6c8dd23
to
ece7548
Compare
ece7548
to
9e7dd24
Compare
class ExternalViewResponse(BaseUIResponse): | ||
"""Serializer for External View Plugin responses.""" | ||
|
||
model_config = ConfigDict(extra="allow") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Late to the party to review - COOL! |
related: #42702
Add 'react_apps` registration to plugin. This will be used by the front-end to fetch bundles and dynamically import related components.