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

(snuba-deletes): storage_deletes_enabled default enabled #6331

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

MeredithAnya
Copy link
Member

Makes the default storage_deletes_enabled=1.

Sentry tests should be testing against this feature. In production all regions except S4S have this set to 0. Additionally, only the search_issues dataset has deletes enabled in the storage configuration.

@@ -198,7 +198,6 @@ def test_bad_delete(self) -> None:
assert "'query' is a required property" in res.get_json()["error"]["message"]

# test for invalid column types
set_config("storage_deletes_enabled", 1)
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to remove these lines?

# delete fails when feature flag is off
set_config("storage_deletes_enabled", 0)
response = self.delete_query(occurrence_id)
assert int(int(response.status_code) / 100) != 2
# delete succeeds when feature flag is on
set_config("storage_deletes_enabled", 1)

Copy link
Member Author

Choose a reason for hiding this comment

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

I had left them in just to test that the feature flagging works

@MeredithAnya MeredithAnya merged commit efa8f8b into master Sep 20, 2024
30 checks passed
@MeredithAnya MeredithAnya deleted the meredith/9-20-24 branch September 20, 2024 18:59
@MeredithAnya MeredithAnya restored the meredith/9-20-24 branch September 25, 2024 22:43
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