-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Implement new UpdateMoneyRequestDate API endpoint #30737
Conversation
@cubuspl42 @ One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
bump @cubuspl42 |
@dylanexpensify Aren't we on hold on some backend change?
|
Let me know what's the state of that PR, I don't have the necessary permissions to view it. |
The PR for the web API was merged yesterday. I think that will allow this to come off of HOLD on Monday (assuming deploys go well). I've updated this branch and retested it, so you should at least be able to do a code review. |
The API has been deployed to production so this is off HOLD and can be reviewed/merged. |
src/libs/actions/IOU.js
Outdated
* @param {String} [transactionChanges.created] // Present when updated the date field | ||
* @param {Boolean} onlyIncludeChangedFields | ||
* // When 'true', then the returned params will only include the transaction details for the fields that were changed. | ||
* // When `false`, then the returned params will include all the transaction details, regardless of which fields were changed. | ||
* // This setting is necessary while the UpdateDistanceRequest API is refactored to be fully 1:1:1 in https://github.com/Expensify/App/issues/28358 |
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.
const saveCreated = useCallback( | ||
({created: newCreated}) => { | ||
// If the value hasn't changed, don't request to save changes on the server and just close the modal | ||
if (newCreated === TransactionUtils.getCreated(transaction)) { |
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.
Just confirming: we're fine with identity comparison here, 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.
Yeah, it should be fine. Thanks for confirming!
Would you merge |
Reviewer Checklist
Screenshots/VideosWebupdaterequestdate-web.mp4Mobile Web - Chromeupdaterequestdate-android-web-compressed.mp4Mobile Web - Safariupdaterequestdate-ios-web.mp4DesktopiOSupdaterequestdate-ios.mp4Androidupdaterequestdate-android-compressed.mp4 |
Left a minor comment about a comment within a comment, but otherwise looks good 👍 |
OK, this is updated with |
src/libs/actions/IOU.js
Outdated
* @param {Object} [transactionChanges.comment] | ||
* @param {Object} [transactionChanges.waypoints] | ||
* | ||
* @param {String} [transactionChanges.created] // Present when updated the date field |
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.
/* // This one too */
Updated. We should be fine to merge now? |
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.
Sure 👍
@johnmlee101 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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.
LGTM!
✋ 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/Beamanator in version: 1.4.13-0 🚀
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.4.13-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.13-8 🚀
|
Details
This PR uses the new API for updating the date of a money request. There is one glitch that is important to note:
Fixed Issues
$ #29993
Tests
Offline tests
QA Steps
Same as the tests above
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
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop