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

feat(integrations): create redis keys using integration_id #54655

Merged
merged 4 commits into from
Aug 14, 2023

Conversation

chloeho7
Copy link
Contributor

Adding integration id's to integration clients to be used to create redis keys for the IntegrationRequestBuffer used to detect and disable integrations for the Notify on Disabled Integration project

@chloeho7 chloeho7 requested a review from a team as a code owner August 11, 2023 21:45
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 11, 2023
@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Merging #54655 (91d3893) into master (7d78659) will increase coverage by 0.00%.
Report is 61 commits behind head on master.
The diff coverage is 75.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #54655   +/-   ##
=======================================
  Coverage   79.76%   79.76%           
=======================================
  Files        5001     5000    -1     
  Lines      212325   212296   -29     
  Branches    36184    36176    -8     
=======================================
- Hits       169352   169341   -11     
+ Misses      37767    37748   -19     
- Partials     5206     5207    +1     
Files Changed Coverage Δ
src/sentry/integrations/bitbucket/client.py 81.52% <ø> (ø)
src/sentry/shared_integrations/client/base.py 78.78% <0.00%> (ø)
src/sentry/integrations/bitbucket_server/client.py 90.72% <100.00%> (+0.09%) ⬆️
src/sentry/integrations/gitlab/client.py 93.82% <100.00%> (ø)

... and 80 files with indirect coverage changes

@@ -40,7 +40,8 @@ class BitbucketServerSetupClient(ApiClient):
authorize_url = "{}/plugins/servlet/oauth/authorize?oauth_token={}"
integration_name = "bitbucket_server_setup"

def __init__(self, base_url, consumer_key, private_key, verify_ssl=True):
def __init__(self, base_url, consumer_key, private_key, verify_ssl=True, *args, **kwargs):
super().__init__(*args, **kwargs)
Copy link
Member

Choose a reason for hiding this comment

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

I don't know that this will help for bitbucket server - I don't see this initialized with an integration id and the parent class doesn't have it either.

@chloeho7 chloeho7 merged commit fa748ef into master Aug 14, 2023
56 of 57 checks passed
@chloeho7 chloeho7 deleted the chloe/integration-ids branch August 14, 2023 23:33
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 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.

2 participants