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

[CLD-8682] Support for 24h deletion pending window in test env #165

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

nickmisasi
Copy link
Contributor

Summary

This PR adjusts how informative the error is when attempting to create an installation with a name that is already reserved. The plugin already checks for existence, so that error was adjusted, but I've also added a check for a 409 return from the Provisioner if that initial lookup fails for whatever reason.

This PR also changes the "installation deleted" message to be webhook-driven - it will compare actor_id from the incoming webhook to the client ID the plugin has been assigned for authentication - if they're the same, it knows the action was completed by the plugin, so the message is adjusted (ie, deleted manually). If not, it knows that the installation was deleted via an automated process.

Ticket Link

https://mattermost.atlassian.net/browse/CLD-8628

Release Note

None

@mm-cloud-bot mm-cloud-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Dec 12, 2024
Copy link
Contributor

@gabrieljackson gabrieljackson 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!

@nickmisasi nickmisasi added the 4: Reviews Complete All reviewers have approved the pull request label Dec 16, 2024
@nickmisasi nickmisasi merged commit adb9f3e into master Dec 16, 2024
7 checks passed
@nickmisasi nickmisasi deleted the CLD-8628-2 branch December 16, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants