-
Notifications
You must be signed in to change notification settings - Fork 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
Fix: IOU - No error message when changing amount of a paid request #33880
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-01-04.at.12.13.06.mp4Android: mWeb ChromeCleanShot.2024-01-04.at.12.16.47.mp4iOS: NativeCleanShot.2024-01-04.at.11.43.00.mp4iOS: mWeb SafariCleanShot.2024-01-04.at.11.27.26.mp4MacOS: Chrome / SafariCleanShot.2024-01-04.at.11.22.16.mp4MacOS: DesktopCleanShot.2024-01-04.at.11.44.26.mp4 |
cc @Pujan92 There is still missing screenshot for Mobile Web - Chrome. |
Thanks, Added! |
src/libs/actions/IOU.js
Outdated
failureData.push({ | ||
onyxMethod: Onyx.METHOD.MERGE, | ||
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThread.reportID}`, | ||
value: { | ||
[updatedReportAction.reportActionID]: { | ||
errors: ErrorUtils.getMicroSecondOnyxError('iou.error.genericEditFailureMessage'), | ||
}, | ||
}, | ||
}); |
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.
@Pujan92 To dry code, I think we can update the previous block to :
failureData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThread.reportID}`,
value: {
[updatedReportAction.reportActionID]: {
...updatedReportAction,
errors: ErrorUtils.getMicroSecondOnyxError('iou.error.genericEditFailureMessage'),
},
},
});
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.
Yes @fedirjh , somehow I missed that. Done.
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.
Looks good and tests well.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/nkuoch in version: 1.4.22-0 🚀
|
🚀 Deployed to staging by https://github.com/nkuoch in version: 1.4.22-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.22-6 🚀
|
Details
#33799
Fixed Issues
$ #33799
PROPOSAL: #33799 (comment)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Screen.Recording.2024-01-03.at.21.40.40.mp4
Mobile Web - Chrome
Mobile Web - Safari
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2024-01-03.at.22.28.19.mp4
Desktop
iOS
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2024-01-03.at.22.20.59.mp4
Android