fix gray-out and name issue in offline category update#51927
fix gray-out and name issue in offline category update#51927youssef-lr merged 13 commits intoExpensify:mainfrom
Conversation
|
@eVoloshchak 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] |
…ategory-update-gray-out-and-name
| SIDE_EFFECT_REQUEST_COMMANDS.RECONNECT_APP, | ||
| WRITE_COMMANDS.CLOSE_ACCOUNT, | ||
| WRITE_COMMANDS.DELETE_MONEY_REQUEST, | ||
| WRITE_COMMANDS.RENAME_WORKSPACE_CATEGORY, |
There was a problem hiding this comment.
all these requests are updating the app to the most current state
Is this really the case for WRITE_COMMANDS.RENAME_WORKSPACE_CATEGORY request?
There was a problem hiding this comment.
Yes, I added it to fix the issue of updating the category. After that, when I go back and go to the settings, I see that the category is grayed out even though it was changed
VIDEO
Screen.Recording.2024-11-06.at.14.01.14.mp4
The RCA: lastUpdateIDFromClient is less than the previousUpdateID received, so we set this response, which did not clear the pendingAction. This issue occurred, and it only happens the first time.
This issue same RCA with #50780 #49329 and #44114
I raised this issue in Slack https://expensify.slack.com/archives/C01GTK53T8Q/p1730457202958539?thread_ts=1730392335.081509&cid=C01GTK53T8Q
I think this issue is out of the scope of this ticket and has a different RCA. However, if we don't fix it, we will need to perform a regression test. Can you advise?
There was a problem hiding this comment.
@eVoloshchak Could you review my comment above when you have time? Thank you
There was a problem hiding this comment.
The RCA: lastUpdateIDFromClient is less than the previousUpdateID received
@huult, it seems to me that this should be resolved on the backend ideally. Do you agree with that?
There was a problem hiding this comment.
@eVoloshchak Yes, if they are able to fix it, we should update from the BE side. This issue is not related to this ticket.
There was a problem hiding this comment.
Can we skip this case? It is not related to this issue and has a different RCA. We will report a new ticket to fix it.
Yes, that's exactly what needs to be done. This should be fixed on the back end, it's not related to this PR
There was a problem hiding this comment.
@eVoloshchak I think we need to confirm with the internal team to avoid regression when testing this case, or we can add this command to the ignore list. Which option do you choose or suggest?
There was a problem hiding this comment.
@eVoloshchak Could you review this pull request so it can be completed? It has been open for 3 weeks and involves a small change, so your prompt review would be appreciated.
There was a problem hiding this comment.
@eVoloshchak I have removed this command from the ignore list.
…st-time category update case
…ategory-update-gray-out-and-name
…ategory-update-gray-out-and-name
…ategory-update-gray-out-and-name
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-30.at.17.13.09.movAndroid: mWeb ChromeScreen.Recording.2024-11-25.at.19.32.05.moviOS: NativeScreen.Recording.2024-10-30.at.17.31.14.moviOS: mWeb SafariScreen.Recording.2024-11-25.at.19.44.18.movMacOS: Chrome / SafariScreen.Recording.2024-11-25.at.19.29.12.movMacOS: DesktopScreen.Recording.2024-11-25.at.19.36.20.mov |
…ategory-update-gray-out-and-name
|
@youssef-lr I've updated your feedback. Could you please check it again? Thank you! |
…ategory-update-gray-out-and-name
|
@youssef-lr I've updated your feedback. Could you please check it again? Thank you! |
|
@youssef-lr What do you think of my update? |
|
✋ 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/youssef-lr in version: 9.0.72-0 🚀
|
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.0.72-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.72-1 🚀
|
Details
Fixed Issues
$ #50563
PROPOSAL: #50563 (comment)
Tests
Same QA step
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-11-02.at.22.16.16.mp4
Android: mWeb Chrome
Screen.Recording.2024-11-02.at.22.18.36.mp4
iOS: Native
Screen.Recording.2024-11-02.at.22.11.32.mp4
iOS: mWeb Safari
Screen.Recording.2024-11-02.at.22.13.27.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-11-02.at.22.01.40.mp4
MacOS: Desktop
Screen.Recording.2024-11-02.at.22.04.10.mp4