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

allow reupload of license if app is not installed #2577

Merged

Conversation

stefanrepl
Copy link
Contributor

@stefanrepl stefanrepl commented Mar 2, 2022

What type of PR is this?

type::bug

What this PR does / why we need it:

This PR allows a user to reupload a license if the license has not been used for a successful installation. Makes UX much smoother so the user does not have to manually run a command to remove the app.

Which issue(s) this PR fixes:

Fixes SC-36475

Special notes for your reviewer:

Tested in Okteto, Okteto endpoint for kots web: https://kotsadm-web-stefanrepl.replicated.okteto.dev/.

Does this PR introduce a user-facing change?

     Allow user to re-upload license if application is not installed.

Does this PR require documentation?

@stefanrepl stefanrepl requested review from sgalsaleh and a team March 2, 2022 21:17
Copy link

@label-checker label-checker bot left a comment

Choose a reason for hiding this comment

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

Label type:: is required.

@stefanrepl stefanrepl removed the request for review from a team March 2, 2022 21:54
pkg/handlers/license.go Outdated Show resolved Hide resolved
@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch from af4b1ad to b3ce183 Compare March 3, 2022 16:18
Copy link
Member

@sgalsaleh sgalsaleh left a comment

Choose a reason for hiding this comment

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

This logic needs to be implemented for automated installs as well. Under pkg/automation/automation.go. I would move this logic to a separate shared function and use it for both.

pkg/handlers/license.go Outdated Show resolved Hide resolved
pkg/handlers/license.go Outdated Show resolved Hide resolved
pkg/handlers/license.go Outdated Show resolved Hide resolved
@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch 2 times, most recently from 9145e68 to daf09f0 Compare March 3, 2022 17:28
@stefanrepl
Copy link
Contributor Author

This logic needs to be implemented for automated installs as well. Under pkg/automation/automation.go. I would move this logic to a separate shared function and use it for both.

done, moved to a shared function and added its use to automated installs

@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch from daf09f0 to 98f31f0 Compare March 4, 2022 15:54
pkg/license/license.go Outdated Show resolved Hide resolved
@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch from 98f31f0 to c58c1ae Compare March 4, 2022 17:03
pkg/license/license.go Outdated Show resolved Hide resolved
pkg/license/license.go Outdated Show resolved Hide resolved
@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch from c58c1ae to 840d212 Compare March 4, 2022 17:16
pkg/license/license.go Outdated Show resolved Hide resolved
@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch 5 times, most recently from ab99110 to 5084c58 Compare March 4, 2022 17:40
@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch from 5084c58 to c694c19 Compare March 4, 2022 17:45
pkg/license/license.go Outdated Show resolved Hide resolved
pkg/license/license.go Outdated Show resolved Hide resolved
@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch from c694c19 to 51ae0ef Compare March 4, 2022 17:57
sgalsaleh
sgalsaleh previously approved these changes Mar 4, 2022
@stefanrepl stefanrepl force-pushed the stefan/sc-36475/allow-reupload-lic-if-install-fails branch from 51ae0ef to fddd350 Compare March 4, 2022 18:52
@stefanrepl stefanrepl merged commit f6f0ca8 into main Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants