-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 check #81100
Conversation
❌ 2 Tests Failed:
View the top 2 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Bundle ReportChanges will increase total bundle size by 820 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
|
2c8aa11
to
9ece775
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.
The code looks fine I think but are there no uses of useAutofixSetup
where checkWriteAccess: false
? If not, then what's the optimization?
@@ -6,7 +6,7 @@ import {AutofixSetupWriteAccessModal} from 'sentry/components/events/autofix/aut | |||
describe('AutofixSetupWriteAccessModal', function () { | |||
it('displays help text when repos are not all installed', async function () { | |||
MockApiClient.addMockResponse({ | |||
url: '/issues/1/autofix/setup/', | |||
url: '/issues/1/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.
? after / looks weird to me lol but you're probably right
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.
it just defaults to not passing the optional query variable
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Makes sure the frontend treats the `githubWriteIntegration` as optional and optionally passes `checkWriteAccess` to true
Makes sure the frontend treats the
githubWriteIntegration
as optional and optionally passescheckWriteAccess
to true