Skip to content
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

Improving UX in Environment resource #375

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Improving UX in Environment resource #375

merged 1 commit into from
Aug 14, 2024

Conversation

IaroslavTitov
Copy link
Contributor

Summary:

  • Add validation on Environment resource's values, blocking values using /
  • Improve error messages of Environment resource
  • Moved diags check above error, as it should precede (even though diags don't work currently, see bug)

Testing

  • Manually
  • Integ tests

@IaroslavTitov IaroslavTitov marked this pull request as ready for review August 13, 2024 19:14
@@ -211,6 +211,13 @@ func (st *PulumiServiceEnvironmentResource) Check(req *pulumirpc.CheckRequest) (
Reason: fmt.Sprintf("missing required property '%s'", p),
Property: string(p),
})
} else {
if p != "yaml" && strings.Contains(inputMap[(p)].StringValue(), "/") {
Copy link
Contributor

Choose a reason for hiding this comment

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

NP else if?

@IaroslavTitov IaroslavTitov enabled auto-merge (squash) August 14, 2024 20:38
@IaroslavTitov IaroslavTitov merged commit 3041f99 into main Aug 14, 2024
13 checks passed
@IaroslavTitov IaroslavTitov deleted the iaro/env_fix branch August 14, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants