-
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
Correctly update thread ancestors reply count #38658
Correctly update thread ancestors reply count #38658
Conversation
src/libs/actions/Task.ts
Outdated
if (!isEmptyObject(optimisticParentReportData)) { | ||
optimisticData.push(optimisticParentReportData); | ||
} | ||
optimisticParentReportData.forEach((parentReportData) => optimisticData.push(parentReportData)); |
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 notice 1 issue when deleting a task from a thread. Even though we already optimistically update the reply count to 0, the BE then will set it again back to 1 even though the task is deleted from the thread.
Screen.Recording.2024-03-20.at.14.29.27.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.
cc @puneetlath Can you take a look at this bug. It seems this will require a backend fix.
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-03-20.at.17.49.49.mp4Android: mWeb ChromeCleanShot.2024-03-20.at.18.22.08.mp4iOS: NativeSimulator.Screen.Recording.-.iPhone.Xs.-.2024-03-20.at.19.11.50.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.Xs.-.2024-03-20.at.19.20.40.mp4MacOS: Chrome / SafariCleanShot.2024-03-20.at.17.07.03.mp4MacOS: DesktopCleanShot.2024-03-20.at.17.15.04.mp4 |
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.
Looks good to me. We have a bug with deleted tasks being calculated in the thread count,and it seems it needs a backend fix.
Has this been reported? If not, can you report it? |
@puneetlath I have report it : https://expensify.slack.com/archives/C049HHMV9SM/p1711463195704049 |
✋ 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/puneetlath in version: 1.4.58-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.58-8 🚀
|
Details
Currently, we only update the thread direct parent reply data, so the thread ancestors reply count doesn't increase when we add a comment.
Fixed Issues
$ #38002
PROPOSAL: #38002 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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-20.at.14.15.38.mov
Android: mWeb Chrome
Screen.Recording.2024-03-20.at.14.11.48.mov
iOS: Native
Screen.Recording.2024-03-20.at.14.07.23.mov
iOS: mWeb Safari
Screen.Recording.2024-03-20.at.13.51.03.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-20.at.13.39.19.mov
MacOS: Desktop
Screen.Recording.2024-03-20.at.13.40.52.mov