-
-
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
ref: Convert AddCodeOwnersModal to FC #83690
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 #83690 +/- ##
=======================================
Coverage 87.58% 87.58%
=======================================
Files 9488 9488
Lines 539335 539295 -40
Branches 21230 21226 -4
=======================================
- Hits 472356 472322 -34
+ Misses 66631 66625 -6
Partials 348 348 |
static/app/views/settings/project/projectOwnership/addCodeOwnerModal.tsx
Outdated
Show resolved
Hide resolved
58e949a
to
c40792b
Compare
const {codeownersFile, codeMappingId, codeMappings} = this.state; | ||
const { | ||
data: codeownersFile, | ||
isPending: isCodeownersFilePending, |
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.
Note that this will be true
whenever this query is disabled. If that's not what you want, you should use isLoading
instead
const addFile = useCallback(() => { | ||
if (codeownersFile) { | ||
mutation.mutate([{codeMappingId, raw: codeownersFile.raw}], { | ||
onSuccess: d => { |
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.
Usually we put these onSuccess
and onError
handlers in the original useMutation
, but this will have the same effect
Bundle ReportChanges will increase total bundle size by 1.86MB (5.9%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: app-webpack-bundle-array-pushAssets Changed:
|
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.
Still some failing tests but otherwise looks good
No description provided.