Skip to content

fix: Explicitly deprecate --started flag #2515

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

szokeasaurusrex
Copy link
Member

The Sentry server already ignores the value passed as --started to the releases finalize command. So, the option does not work as expected.

Here, we explicitly mark the parameter as deprecated by logging a warning message stating that the value is ignored. We also stop sending the started date to the server.

Fixes #2481

@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/deprecate-finalize-started branch from 018aabe to ebd9eda Compare May 22, 2025 11:44
The Sentry server [already ignores the value passed as `--started`](https://github.com/getsentry/sentry/blob/993bddbb73d9091fb949ad34578c7b28e0e3b8ab/src/sentry/api/endpoints/organization_release_details.py#L415-L534) to the `releases finalize` command. So, the option does not work as expected.

Here, we explicitly mark the parameter as deprecated by logging a warning message stating that the value is ignored. We also stop sending the started date to the server.

Fixes #2481
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/deprecate-finalize-started branch from ebd9eda to 0dae679 Compare May 22, 2025 11:56
@szokeasaurusrex szokeasaurusrex merged commit b68484d into master May 22, 2025
18 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/deprecate-finalize-started branch May 22, 2025 12:04
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.

What's --started option in sentry-cli releases finalize for?
2 participants