-
Notifications
You must be signed in to change notification settings - Fork 0
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
Show error and disable deployment when environment and secrets have duplicates #2338
Conversation
<template v-if="home.duplicatedEnvironmentVariables.length === 1"> | ||
A duplicate name was | ||
</template> | ||
<template v-if="home.duplicatedEnvironmentVariables.length > 1"> | ||
Duplicate names were | ||
</template> | ||
found in Secrets and Environment. | ||
<a | ||
class="webview-link" | ||
role="button" | ||
@click=" | ||
onEditConfiguration(home.selectedConfiguration!.configurationPath) | ||
" | ||
>Edit the Configuration</a | ||
>. |
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.
What about saying something like "(A variable was|Variables were) set as both a secret and environment variable. (It|They) must only be in one or the other. Edit the Configuration." It's true that the names are the problem that's an issue, but at this point in the UX I think most people think of them more holistically and the names are below so it's clear that the names are the issue.
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.
Great suggestion. I really struggled coming up with text here and I think yours is a huge improvement. I'll make that change.
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.
extensions/vscode/webviews/homeView/src/components/DeployButton.vue
Outdated
Show resolved
Hide resolved
abb4aec
to
4ddbbf3
Compare
fb5f0f5
to
f72e8a5
Compare
We could merge this prior since it is a relatively simpler change, and componentize it with the other work. |
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.
Let me know what you think about my question. Thanks!
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.
Concerns resolved.
This PR adds a new error that disables deployment - similar to a missing credential error in style - when there are names shared in Environment and Secrets in the selected Configuration.
Preview
The duplicated names are present in the error to make it easier to resolve, along with a link to edit the configuration similar to other errors.
Intent
Resolves #2326
Type of Change