-
Notifications
You must be signed in to change notification settings - Fork 33
chore: 🤖 use statically referenced components for host form #3072
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| import { | ||
| TYPE_HOST_CATALOG_PLUGIN_AWS, | ||
| TYPE_HOST_CATALOG_PLUGIN_AZURE, | ||
| TYPE_HOST_CATALOG_PLUGIN_GCP, | ||
| TYPE_HOST_CATALOG_STATIC, | ||
| } from 'api/models/host-catalog'; |
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.
These are being imported from host-catalog but since the host's composite type is derived from these it seems alright to use these constants
| have a model and this else part is required to prevent | ||
| erroring out here. This has been noted in the tech debt doc to further investigate }} | ||
| {{component | ||
| (concat 'form/host/' 'static') |
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 didn't have to use the dynamic component helper before since the concat is only using known strings
6c7ab2e to
151791d
Compare
bcef057 to
1022c8a
Compare
1022c8a to
46554ec
Compare
Description
This pr continues the migration away from the dynamic
{{component}}helper. More information in #2880. This pull request focuses on migrating the host form component.How to Test
Checklist
a11y-testslabel to run a11y audit tests if neededPCI review checklist
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.