-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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(autofix): Write access is optional in setup via query #81101
Conversation
Codecov ReportAll 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 |
e22b0d2
to
d9ccfb9
Compare
There was a problem hiding this 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
@@ -223,7 +200,7 @@ def test_repo_write_access_not_ready(self, mock_get_repos_and_access): | |||
def test_repo_write_access_no_repos(self, mock_get_repos_and_access): | |||
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
d9ccfb9
to
d3c2f35
Compare
Only call seer for the write access check for when Autofix is ready to create a PR
Only call seer for the write access check for when Autofix is ready to create a PR
Only call seer for the write access check for when Autofix is ready to create a PR
Only call seer for the write access check for when Autofix is ready to create a PR