-
Notifications
You must be signed in to change notification settings - Fork 102
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
Conversation
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.
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( |
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.
Can we also add a comment/description on top of this method?
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.
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: |
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.
Is that behavior expected?
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.
I am unsure - I am new to using that API endpoint; however, it seems like it should work with the version # provided.
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. |
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.