-
Notifications
You must be signed in to change notification settings - Fork 154
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
Support to register scaffolderPlugin.provide(createScaffolderFieldExtension( for dynamic plugin #1146
Comments
cc @tumido |
@tumido Have you been able to have a look ? Can I help you ? |
Yes, this is currently not possible. I'm not sure if we want to evolve and enhance the current dynamic frontend system while there's parallel work ongoing in the upstream.
|
I don't think it makes sense to add more features in the current dynamic frontend system which will risk making it more difficult to converge with the parallel upstream work. |
@christophe-f what do you think ? |
@cmoulliard ^^ |
Until now we have developed 3 fields and soon we will have 4. They are needed when a user scaffold a project using a template including them |
This is doable but as the list of the quarkus versions change when new quarkus are out (like also the extensions liust), then it will be needed to find a way to populate the list using values passed as app-config.yaml field/parameter (aka similar to what users do with their git servers, etc) |
There is something that I dont understand. Even if this is not well documented, backstage-next offers a way to configure some additional fields as you can see here: https://github.com/backstage/backstage/blob/master/packages/app-next/app-config.yaml#L149-L156
Question: Does it work or not ? Is it something that we could use with |
Surely, that's the plan, but this The plan is now to:
That's precisely why we want to avoid, as much as possible, investing more in the Janus-specific implementation. |
Is there a great example well documented explaining how to create a new front plugin, build it and configure it ? |
It's currently in progress. |
This is definitely something that we need to provide. Platform engineers will need to add custom FieldExtension. |
I started to experiment/play with new frontend using
and declared (based on existing example) such a field declaration within the
Error reported "Invalid extension configuration at app.extensions[19][scaffolder.page/fields], value must be a boolean or object" Raised by this code:
|
I digged into the code and found how backstage is able to discover the custom template fields ;-) Such a mechanism is taking place here within the scaffolderpage
which creates a routableExtension using the Router.tsx component. The router.tsx contains a const instantiated from a function useCustomFieldExtensions() using either the
and
Do you think that we could pass the
|
Support to register scaffolderPlugin.provide
It is not possible today to register using the dynamic configuration, a plugin packaging
ScaffolderFieldExtension
.Such fields which are React field components are used part of a backstage template and are registered as such
The text was updated successfully, but these errors were encountered: