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

Don't update sentry release in formplayer application.properties during update-config #6395

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

gherceg
Copy link
Contributor

@gherceg gherceg commented Sep 20, 2024

https://dimagi.atlassian.net/browse/SAAS-15882

When running update-config, we pass in "_should_update_formplayer_in_place": true here. This variable is taken into consideration when setting _formplayer_target_dir, but not when setting sentry.release.

This PR makes the change for sentry.release to depend on that variable, and set it to the current release if doing an update in place to avoid unnecessary changes to this setting.

sentry.release is still properly updated during formplayer deploy
image

Concerns

The logic to obtain the current formplayer release feels like I'm redoing work that has already been done, which makes this logic fragile to future changes to how we format how formplayer releases.

Environments Affected

Specifically on formplayer, the release name was being set to the
current release even when doing an "update in place", resulting in an
unnecessary change being made to formplayer's application.properties
@gherceg gherceg merged commit 6fe6169 into master Oct 8, 2024
2 checks passed
@gherceg gherceg deleted the gh/formplayer-release-bug branch October 8, 2024 18:12
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.

3 participants