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

ref(typing): type bitbucket issues file #83644

Merged
merged 2 commits into from
Jan 21, 2025
Merged

ref(typing): type bitbucket issues file #83644

merged 2 commits into from
Jan 21, 2025

Conversation

JoshFerge
Copy link
Member

No description provided.

@JoshFerge JoshFerge requested review from a team as code owners January 17, 2025 15:24
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 17, 2025
Copy link
Member

@asottile-sentry asottile-sentry left a comment

Choose a reason for hiding this comment

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

really weird that group is optional here?

@JoshFerge
Copy link
Member Author

really weird that group is optional here?

68747470733a2f2f692e666c756666792e63632f33583834427132525231383258635072304e544b4b43703777764e54384d68442e676966

I thought so too, i see where the function is called with None in a test.

config = install.get_create_issue_config(None, self.user, params={})

@JoshFerge JoshFerge enabled auto-merge (squash) January 17, 2025 15:36
@asottile-sentry
Copy link
Member

really weird that group is optional here?
68747470733a2f2f692e666c756666792e63632f33583834427132525231383258635072304e544b4b43703777764e54384d68442e676966

I thought so too, i see where the function is called with None in a test.

config = install.get_create_issue_config(None, self.user, params={})

maybe the test should get fixed and then this can be non-nullable?

@JoshFerge JoshFerge disabled auto-merge January 17, 2025 15:48
@JoshFerge
Copy link
Member Author

config = install.get_create_issue_config(None, self.user, params={})
@leeandher do you know why we allow group to be None? it seems like this was intentional, but i don't see it being None anywhere in the code?

@leeandher
Copy link
Member

leeandher commented Jan 17, 2025

config = install.get_create_issue_config(None, self.user, params={})

@leeandher do you know why we allow group to be None? it seems like this was intentional, but i don't see it being None anywhere in the code?

@JoshFerge To be honest, it's probably treated in some code as non-optional, and I can't really find anywhere that would make sense for it to None. When it's surfaced in the app, it is used to create issue links so we definitely have the context of a group.

Maybe theres something about removing the link from Sentry but still preserving something on the provider's side, but I'm kinda making that up.

I don't recall anything about typing it the first time, maybe the ecosystem team knows more

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #83644      +/-   ##
==========================================
- Coverage   87.63%   87.60%   -0.03%     
==========================================
  Files        9498     9495       -3     
  Lines      541781   539242    -2539     
  Branches    21241    21170      -71     
==========================================
- Hits       474771   472410    -2361     
+ Misses      66662    66487     -175     
+ Partials      348      345       -3     

@JoshFerge
Copy link
Member Author

@leeandher @asottile-sentry after looking at other integrations, it appears they can expect group to be None,

just seems like with bitbucket's integration it does not. I think this is okay to merge as is.

@asottile-sentry
Copy link
Member

@leeandher @asottile-sentry after looking at other integrations, it appears they can expect group to be None,

just seems like with bitbucket's integration it does not. I think this is okay to merge as is.

given IntegrationConfigSerializer I think this is going to hit the AssertionError -- something probably needs to be fixed there and we're getting lucky that nobody uses this thing with that api endpoint

@JoshFerge JoshFerge merged commit b286ba0 into master Jan 21, 2025
49 checks passed
@JoshFerge JoshFerge deleted the jferg/typing-2 branch January 21, 2025 17:41
@JoshFerge JoshFerge added the Trigger: Revert Add to a merged PR to revert it (skips CI) label Jan 21, 2025
@getsentry-bot
Copy link
Contributor

PR reverted: 614cddc

getsentry-bot added a commit that referenced this pull request Jan 21, 2025
@JoshFerge
Copy link
Member Author

@leeandher @asottile-sentry after looking at other integrations, it appears they can expect group to be None,

just seems like with bitbucket's integration it does not. I think this is okay to merge as is.

given IntegrationConfigSerializer I think this is going to hit the AssertionError -- something probably needs to be fixed there and we're getting lucky that nobody uses this thing with that api endpoint

gone ahead and reverted the PR. i'll put in a fix when i get a sec

andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components Trigger: Revert Add to a merged PR to revert it (skips CI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants