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: add support for 'move environment' backend #939

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

TomerHeber
Copy link
Collaborator

Issue & Steps to Reproduce / Feature Request

resolves #938

Solution

  1. Added a new API call for moving environments.
  2. Added a unit test for the new API call.
  3. Removed 'forceNew' from 'project_id' in the environment schema.
  4. On environment update, if project_id is updated, call the move API.
  5. Added an acceptance tests.
  6. Updated harness tests.

if !ok {
return fmt.Errorf("unknown configuration variable type %s", val)

intVal, err := GetConfigurationVariableType(val)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unrelated - working on linting fixes as I go...

val := *c
valStr := ""
if val == 0 {
var valStr string
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unrelated - working on linting fixes as I go...

ProjectId string `json:"projectId"`
}

func GetConfigurationVariableType(variableType string) (ConfigurationVariableType, error) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unrelated - working on linting fixes as I go...

@TomerHeber TomerHeber requested a review from yaronya August 22, 2024 13:12
Copy link
Contributor

@tomer-landesman tomer-landesman left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@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 Aug 22, 2024
@TomerHeber TomerHeber merged commit eb0e55d into main Aug 22, 2024
5 checks passed
@TomerHeber TomerHeber deleted the feat-move-environment-#938 branch August 22, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-client feature integration-tests 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.

Add support for "move environment" backend
2 participants