Skip to content

Conversation

@jennmueng
Copy link
Member

Only call seer for the write access check for when Autofix is ready to create a PR

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 21, 2024
@codecov
Copy link

codecov bot commented Nov 21, 2024

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   #81101      +/-   ##
==========================================
- Coverage   80.34%   80.34%   -0.01%     
==========================================
  Files        7225     7225              
  Lines      320221   320224       +3     
  Branches    20781    20781              
==========================================
+ Hits       257272   257274       +2     
- Misses      62555    62556       +1     
  Partials      394      394              

@jennmueng jennmueng force-pushed the jenn/autofix/make-write-optional-be branch from e22b0d2 to d9ccfb9 Compare November 21, 2024 19:23
@jennmueng jennmueng marked this pull request as ready for review November 21, 2024 19:56
@jennmueng jennmueng requested a review from a team as a code owner November 21, 2024 19:56
Copy link
Member

@roaga roaga left a comment

Choose a reason for hiding this comment

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

An extra test for check_write_access=false would be good, otherwise LGTM

group = self.create_group()
self.login_as(user=self.user)
url = f"/api/0/issues/{group.id}/autofix/setup/"
url = f"/api/0/issues/{group.id}/autofix/setup/?check_write_access=true"
Copy link
Member

Choose a reason for hiding this comment

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

Should we also have a test where check_write_access = false?

Copy link
Member Author

Choose a reason for hiding this comment

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

already tested for the empty condition at test_successful_setup which is equivalent to false

@jennmueng jennmueng enabled auto-merge (squash) November 21, 2024 22:19
@jennmueng jennmueng disabled auto-merge November 21, 2024 22:19
@jennmueng jennmueng force-pushed the jenn/autofix/make-write-optional-be branch from d9ccfb9 to d3c2f35 Compare November 22, 2024 17:39
@jennmueng jennmueng enabled auto-merge (squash) November 22, 2024 17:39
@jennmueng jennmueng merged commit c4fc965 into master Nov 22, 2024
49 checks passed
@jennmueng jennmueng deleted the jenn/autofix/make-write-optional-be branch November 22, 2024 18:05
harshithadurai pushed a commit that referenced this pull request Nov 25, 2024
Only call seer for the write access check for when Autofix is ready to
create a PR
evanh pushed a commit that referenced this pull request Nov 25, 2024
Only call seer for the write access check for when Autofix is ready to
create a PR
andrewshie-sentry pushed a commit that referenced this pull request Dec 2, 2024
Only call seer for the write access check for when Autofix is ready to
create a PR
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 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