-
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: Second approver unapproval shows 'Waiting for first approver' in next steps #52297
base: main
Are you sure you want to change the base?
Conversation
@allroundexperts 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.
Can you update this section to say something like: See above tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
I updated |
@truph01 could you please merge main ad resolve conflicts so we can review. thanks! |
I merged main |
Hi @allroundexperts please can you review |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@allroundexperts was this a pass? |
Apologies for the delay in the review here, but this is working very weirdly. Sometimes, when I un-approve as admin, it gets disapproved as user A as well. See the video recording: Screen.Recording.2024-11-19.at.2.30.42.AM.movIt might be a backend issue, but this is definitely making testing very hard. |
Can you merge main @truph01? |
@allroundexperts I merged main |
The order of approval / unapproval is still not consistent here. @Julesssss This seems to be coming from the backend. Can you please check? screen-recording-2024-12-03-at-54445-am_XxF8j7Vx.mp4 |
@allroundexperts could you share the exact reproduction steps please, at which testing step does your issue occur and what are you seeing? Thanks |
Okay. Here are the steps @Julesssss
The expense requires the approval of both user C and user A again. |
Thank you. I'm going to check this internally (link). |
Hey @allroundexperts, could you please just confirm what happens when all of the above steps occur and then user C approves again? Are we stuck, or does that final approve? |
User A is requested to approve after that. |
Thanks! As long as we're not stuck in a loop and the expense can be paid when approved by both, we're good to move forward here. |
@truph01 Given what @Julesssss said, your PR does not fix the issue. The optimistic message for user A after un-approving is |
@allroundexperts I cannot reproduce the bug "The optimistic message for user A after un-approving is awaiting your approval, while the backend sends awaiting user C approval after a while." Below are my test steps along with the corresponding video.
demo.mp4 |
@allroundexperts I know you're on vacation, but please take a moment to review this PR when you have a chance. Thank you! |
Explanation of Change
Fixed Issues
$ #50269
PROPOSAL: #50269 (comment)
Tests
Test 1
Test 2
Offline tests
QA Steps
See above tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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-11-11.at.11.26.44.mov
Android: mWeb Chrome
Screen.Recording.2024-11-11.at.11.21.11.mov
iOS: Native
Screen.Recording.2024-11-11.at.11.27.44.mov
iOS: mWeb Safari
Screen.Recording.2024-11-11.at.11.24.39.mov
MacOS: Chrome / Safari
Test 1:
output.mp4
Test 2:
output.mp4
MacOS: Desktop
Screen.Recording.2024-11-11.at.11.31.03.mov