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

Feat: environment resource does not support new templateless creation #420

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

TomerHeber
Copy link
Collaborator

Solution

This is a large/complex change. The feature will be divided into small PRs.
In this PR I've moved the template schema to a common function that receives template type (shared vs single).

part of #374

"name": {
Type: schema.TypeString,
Description: "name to give the template",
Required: templateType == TemplateTypeShared,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

varying behavior...

Type: schema.TypeString,
Description: "description for the template",
Optional: true,
Computed: templateType == TemplateTypeSingle,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

varying behavior...

}

if templateType == TemplateTypeSingle {
s["id"] = &schema.Schema{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

varying behavior...
need to store the template id.

@TomerHeber TomerHeber changed the title environment resource does not support new templateless creation Feat: environment resource does not support new templateless creation Jun 14, 2022
@TomerHeber TomerHeber force-pushed the feat-templateless-environment-#374 branch from d49c1b5 to cc34ed3 Compare June 14, 2022 13:46
Copy link
Contributor

@sagilaufer1992 sagilaufer1992 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels Jun 15, 2022
@TomerHeber TomerHeber merged commit 4789509 into main Jun 15, 2022
@TomerHeber TomerHeber deleted the feat-templateless-environment-#374 branch June 15, 2022 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature provider ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants