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

[WAYP-2742] Support no-code workspace upgrades #935

Merged
merged 9 commits into from
Jul 29, 2024

Conversation

paladin-devops
Copy link
Contributor

@paladin-devops paladin-devops commented Jul 18, 2024

Description

This PR adds a method to the no-code registry modules resource for upgrading a no-code workspace.

Testing plan

Run go test -run TestRegistryNoCodeModuleWorkspaceUpgrade -v ./... with the necessary environment variables.

@paladin-devops paladin-devops self-assigned this Jul 18, 2024
Copy link
Contributor

@uturunku1 uturunku1 left a comment

Choose a reason for hiding this comment

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

I think this will also need a small mention in the changelog. Once that's updated, I am good with approving these changes!

@@ -284,6 +295,34 @@ func (r *registryNoCodeModules) CreateWorkspace(
return w, nil
}

func (r *registryNoCodeModules) UpgradeWorkspace(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also add a comment/description on top of this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!


// update the module's pinned version to be 1.0.0
// NOTE: This is done here as an update instead of at create time, because
// that results in the following error:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is that behavior expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am unsure - I am new to using that API endpoint; however, it seems like it should work with the version # provided.

@paladin-devops paladin-devops marked this pull request as ready for review July 26, 2024 19:28
@paladin-devops paladin-devops changed the title Support no-code workspace upgrades [WAYP-2745] Support no-code workspace upgrades Jul 26, 2024
@paladin-devops paladin-devops changed the title [WAYP-2745] Support no-code workspace upgrades [WAYP-2742] Support no-code workspace upgrades Jul 26, 2024
uturunku1
uturunku1 previously approved these changes Jul 26, 2024
Base automatically changed from i-no-code-workspace-creation to main July 26, 2024 20:56
@paladin-devops paladin-devops dismissed uturunku1’s stale review July 26, 2024 20:56

The base branch was changed.

@paladin-devops paladin-devops merged commit 7391ca9 into main Jul 29, 2024
7 checks passed
@paladin-devops paladin-devops deleted the i-no-code-workspace-update branch July 29, 2024 11:52
Copy link

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

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