-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 the optimistic data of hold action isn't consistent with backend data #38980
Conversation
@grgia Please ignore this PR, I missed the issue link when I ready the PR. Sorry for inconvenience. |
@mkhutornyi #38738, A recent BE change that separate the hold action to two action one is the hold action that display
cc @neil-marcellini Can you please confirm the point 2 above? |
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.
I'm confused. The solution here doesn't seem to match the proposal at all. Would you please explain why? Also why are we subtracting 1ms from the created time?
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.
@mkhutornyi #38738, A recent BE change that separate the hold action to two action one is the hold action that display
Held this request
, one is the reason comment. After that I found the data still not consistent and has two problem:
- The hold reason display above the hold action briefly, the RCA is the created time of two action is the same and I fixed it here
- The hold reason action is grey out briefly, the RCA is in optimistic data the action name is
HOLDCOMMENT
but BE returns it asADDCOMMENT
. I want to confirm what is the correct action name of this before moving this forwardcc @neil-marcellini Can you please confirm the point 2 above?
Oh I missed this message haha. Ok, I think that all makes sense. I would trust what the backend returns generally, and use the ADDCOMMENT action name. However I'm not sure. @robertjchen since you implemented this on the backend, what do you think the action name should be?
Rather than subtracting 1ms from the hold report action I would add 1ms to the second one, since that feels more like how it should work in reality.
Updated the backend to be |
@robertjchen I tested and saw that hold comment in backend is updated to Screen.Recording.2024-04-03.at.13.13.33.mov |
Hm, the only thing we changed was the Perhaps there is there additional formatting/organization applied to the original message for |
@robertjchen Actually, in frontend we are getting the hold reason via |
It seems to take a little while before the styles are applied to the hold reason text. Screen.Recording.2024-04-09.at.11.52.32.PM.movThoughts? @neil-marcellini @nkdengineer |
The reason is |
@robertjchen thoughts^ |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-15.at.4.21.12.PM.movAndroid: mWeb ChromeScreen.Recording.2024-04-15.at.4.24.02.PM.moviOS: NativeScreen.Recording.2024-04-09.at.11.44.02.PM.moviOS: mWeb SafariScreen.Recording.2024-04-09.at.11.46.02.PM.movMacOS: Chrome / SafariScreen.Recording.2024-04-09.at.11.52.32.PM.movMacOS: DesktopScreen.Recording.2024-04-15.at.4.14.26.PM.mov |
Ah, the backend was updated two weeks ago to switch it back to |
@robertjchen So we will update front-end to |
@nkdengineer Looks like we'll be permanently using |
@thesahindia Updated the type of hold report comment action base on this #38980 (comment). |
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!
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.
Thanks, let's merge
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.4.63-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Fix the optimistic data of hold action isn't consistent with backend data
Fixed Issues
$ #38583
PROPOSAL: #38583 (comment)
Tests
Offline tests
Same as above
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 methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Screen.Recording.2024-03-26.at.13.04.54.mov
Android: mWeb Chrome
Screen.Recording.2024-03-26.at.13.03.48.mov
iOS: Native
Screen.Recording.2024-03-26.at.13.05.57.mov
iOS: mWeb Safari
Screen.Recording.2024-03-26.at.13.02.50.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-26.at.13.00.31.mov
MacOS: Desktop
Screen.Recording.2024-03-26.at.13.11.11.mov