Conversation
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
c7ec8ec to
0d0f4fc
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
0d0f4fc to
6199a2b
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
| { vertical: 'top', horizontal: 'center' }, | ||
| closeSnackbar | ||
| ); | ||
|
|
||
| throw uploadError; | ||
| } | ||
| } | ||
| } else if (coverImageData) { | ||
| // No new file - use existing URL and position from form data or preserve from entity | ||
| coverImageUrl = coverImageData.url; |
There was a problem hiding this comment.
⚠️ Edge Case: Missing error rethrow in updateEntityWithCoverImage catch block
The updateEntityWithCoverImage function's catch block shows an error notification but the diff is truncated. Comparing with createEntityWithCoverImage (line 278-286), it includes throw error; after showing the notification. Ensure the new function also rethrows the error after the showNotistackError call to maintain consistent error propagation behavior.
If the error is not rethrown, callers won't know the operation failed and may proceed as if it succeeded. The inner upload error correctly throws (line 373), but the outer catch block at the end needs to also throw.
Suggested fix: Verify the catch block ends with throw error; similar to the existing createEntityWithCoverImage function.
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
|
|
||
| // Build style object | ||
| const style: Style = { | ||
| color: styleData.color ?? undefined, | ||
| iconURL: styleData.iconURL ?? undefined, | ||
| coverImage: | ||
| coverImageUrl |
There was a problem hiding this comment.
💡 Quality: Redundant null check in coverImage position condition
In the style object construction (lines 400-410), the condition coverImagePosition !== undefined && coverImagePosition !== null includes a redundant null check. Since coverImagePosition is typed as string | undefined (line 351), it cannot be null.
Current code:
...(coverImagePosition !== undefined &&
coverImagePosition !== null && {
position: coverImagePosition,
}),Suggested fix:
...(coverImagePosition !== undefined && {
position: coverImagePosition,
}),This is minor but improves code clarity by aligning the condition with the type.
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
StyleModal(Ant Design) withIconColorModal(MUI) inDomainDetails.component.tsxincludeCoverImageprop toIconColorModalfor conditional cover image upload field{y: "50%"}to flat string"50%"for API compatibilityThis will update automatically on new commits.