Skip to content

Conversation

@armenzg
Copy link
Member

@armenzg armenzg commented Mar 3, 2023

This is a follow up to #45139 for JIRA and Github enterprise.

It seems that we're tagging events with information about organizations even when it's impossible to have any org info.

We have events tagged with the following info even when it is not possible:

  • org slug
  • org id
  • org context

This issues causes finding errors that are for the wrong organization when using organization.slug, thus, wasting time for engineers and customer support.

This change only clears the invalid tag values to reduce the impact of this issue rather than fixing the root issue.

Here's a query showing transactions that should not have org values set.

Fixes WOR-2464

This is a follow up to #45139 for JIRA and Github enterprise.

It seems that we're tagging events with information about organizations even when it's impossible to have any org info.

We have events tagged with the following info even when it is not possible:

- org slug
- org id
- org context

This issues causes finding errors that are for the wrong organization when using `organization.slug`, thus, wasting time for engineers and customer support.

This change only clears the invalid tag values to reduce the impact of this issue rather than fixing the root issue.

Here's a [query](https://sentry.sentry.io/discover/results/?end=2023-03-04T04%3A59%3A59&field=transaction&field=count_unique%28organization.slug%29&field=count%28%29&name=Integration.DoesNotExist%3A+Integration+matching+query+does+not+exist.&project=1&query=%21organization.slug%3A%22%22+error.value%3A%22Integration+matching+query+does+not+exist.%22&sort=-transaction&start=2023-03-02T05%3A00%3A00&yAxis=count%28%29) showing transactions that should not have org values set.

Fix [WOR-2464](https://getsentry.atlassian.net/browse/WOR-2464)
@armenzg armenzg self-assigned this Mar 3, 2023
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 3, 2023
@armenzg armenzg marked this pull request as ready for review March 3, 2023 14:48
@armenzg armenzg requested a review from a team March 3, 2023 14:48
@armenzg armenzg requested a review from a team as a code owner March 3, 2023 14:48
@armenzg armenzg requested a review from a team March 3, 2023 14:49
@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Merging #45368 (dc54647) into master (f706a95) will decrease coverage by 0.47%.
The diff coverage is 76.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #45368      +/-   ##
==========================================
- Coverage   80.22%   79.75%   -0.47%     
==========================================
  Files        4724     4725       +1     
  Lines      198815   198822       +7     
  Branches    12006    12006              
==========================================
- Hits       159506   158580     -926     
- Misses      39047    39980     +933     
  Partials      262      262              
Impacted Files Coverage Δ
src/sentry/integrations/utils/cleanup.py 66.66% <66.66%> (ø)
src/sentry/integrations/github/webhook.py 70.75% <100.00%> (+0.56%) ⬆️
...c/sentry/integrations/github_enterprise/webhook.py 83.06% <100.00%> (+0.27%) ⬆️
src/sentry/integrations/jira_server/webhooks.py 83.60% <100.00%> (+0.55%) ⬆️
src/sentry/testutils/relay.py 22.78% <0.00%> (-70.89%) ⬇️
src/sentry/testutils/helpers/auth_header.py 20.00% <0.00%> (-70.00%) ⬇️
src/sentry/lang/java/plugin.py 26.19% <0.00%> (-69.05%) ⬇️
src/sentry/utils/pytest/relay.py 24.80% <0.00%> (-66.41%) ⬇️
src/sentry/utils/pytest/kafka.py 26.43% <0.00%> (-59.78%) ⬇️
src/sentry/utils/batching_kafka_consumer.py 28.83% <0.00%> (-53.03%) ⬇️
... and 37 more

@armenzg armenzg enabled auto-merge (squash) March 3, 2023 15:26
@armenzg armenzg merged commit 356bec7 into master Mar 3, 2023
@armenzg armenzg deleted the azg/integrations/reset-tags branch March 3, 2023 17:18
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2023
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