Skip to content

fix(site): Do not show template params if there is no param to be shown #7263

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
Apr 25, 2023

Conversation

BrunoQuaresma
Copy link
Collaborator

Fix #7254

@BrunoQuaresma BrunoQuaresma requested a review from a team April 24, 2023 14:23
@BrunoQuaresma BrunoQuaresma self-assigned this Apr 24, 2023
@BrunoQuaresma BrunoQuaresma requested review from Kira-Pilot and removed request for a team April 24, 2023 14:23
// We only want to show schema that have redisplay_value equals true
const schemaToBeDisplayed = props.templateSchema?.filter(
(schema) => schema.redisplay_value,
)
Copy link
Member

Choose a reason for hiding this comment

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

The linked bug ticket mentions that terraform values set to sensitive shouldn't appear in the UI. Does the sensitive key map to redisplay_value or is this something we have to check for separately?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeap, it should do!

@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) April 24, 2023 14:55
@BrunoQuaresma BrunoQuaresma merged commit 1134e78 into main Apr 25, 2023
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-empty-template-params branch April 25, 2023 19:54
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI shows blank "Template params" section
2 participants