-
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 gray-out and name issue in offline category update #51927
fix gray-out and name issue in offline category update #51927
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
@@ -10,6 +10,7 @@ const requestsToIgnoreLastUpdateID: string[] = [ | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eVoloshchak Could you review my comment above when you have time? Thank you
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eVoloshchak what do you think?
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 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 |
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!
…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 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)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-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