Skip to content

Conversation

@lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Jul 24, 2024

When we first started working on the Seer grouping project, we were making a distiction between storing Seer results as metadata and using those results for grouping. The idea was to use storing but not using the results could serve as a way to do a dry run of the feature.

In the meantime, however, we've gotten rid of that distinction, and now both flags (projects:similarity-embeddings-metadata and projects:similarity-embeddings-grouping) check the same enablement list. We can therefore stop checking the metadata flag and just check the grouping flag, with an eye to eventually removing the metadata flag all together. This does that, and includes the following changes:

  • Stop checking the metdata flag as part of should_call_seer_for_grouping.
  • Stop checking the grouping flag as part of get_seer_similar_issues, as now we'll only call it if we already know the flag is on.
  • Remove any tests testing behavior when the two flags have different values.
  • Fix a test (test_sends_expected_data_to_seer) which had a bug that the flag check in get_seer_similar_issues was hiding.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 24, 2024
@lobsterkatie lobsterkatie force-pushed the kmclb-remove-flag-check-when-processing-seer-results branch from e0041a9 to 5c99698 Compare July 24, 2024 23:50
@lobsterkatie lobsterkatie changed the title fix(seer grouping): Remove flag check when returning parent group ref(seer grouping): Stop using projects:similarity-embeddings-metadata flag Jul 24, 2024
@lobsterkatie lobsterkatie marked this pull request as ready for review July 25, 2024 00:21
@lobsterkatie lobsterkatie requested a review from a team as a code owner July 25, 2024 00:21
@lobsterkatie lobsterkatie merged commit 0f048de into master Jul 25, 2024
@lobsterkatie lobsterkatie deleted the kmclb-remove-flag-check-when-processing-seer-results branch July 25, 2024 00:21
Christinarlong pushed a commit that referenced this pull request Jul 26, 2024
…ta` flag (#74914)

When we first started working on the Seer grouping project, we were making a distiction between storing Seer results as metadata and using those results for grouping. The idea was to use storing but not using the results could serve as a way to do a dry run of the feature.

In the meantime, however, we've gotten rid of that distinction, and now both flags (`projects:similarity-embeddings-metadata` and `projects:similarity-embeddings-grouping`) check the same enablement list. We can therefore stop checking the metadata flag and just check the grouping flag, with an eye to eventually removing the metadata flag all together. This does that, and includes the following changes:

- Stop checking the metdata flag as part of `should_call_seer_for_grouping`.
- Stop checking the grouping flag as part of `get_seer_similar_issues`, as now we'll only call it if we already know the flag is on.
- Remove any tests testing behavior when the two flags have different values.
- Fix a test (`test_sends_expected_data_to_seer`) which had a bug that the flag check in `get_seer_similar_issues` was hiding.
lobsterkatie added a commit that referenced this pull request Jul 29, 2024
This removes the `projects:similarity-embeddings-metadata` flag, which we no longer use[1] and whose feature handler has also been removed[2], and the `seer.similarity-embeddings-metadata-killswitch.enabled` option, which we've never actually used.

[1] #74914
[2] getsentry/getsentry#14743
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants