-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 0 Replies Bug FE #19106
Fix 0 Replies Bug FE #19106
Conversation
@chiragsalian @abdulrahuman5196 One of you needs to 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] |
I assume the PR is ready for review. Will start on it. |
@grgia Do we only test this against Staging API only? Because in production the number of replies itself is not decreasing when I delete a message in the reply. Do we already have a separate bug for production where the count is not decreasing? ![]() |
Reviewer Checklist
Screenshots/VideosWebUntitled.5.copy.mp4Mobile Web - Chromeaz_recorder_20230517_205850.mp4Mobile Web - SafariScreenRecording.movDesktopUntitled.5.mp4iOSScreen.Recording.2023-05-17.at.8.43.31.PM.movAndroidaz_recorder_20230517_205508.mp4 |
And Kindly add testing steps in author checklist and platform videos as well? |
@abdulrahuman5196 yes staging only, also there is a delay and this is known bug - #19118 |
@grgia Could you kindly check on this? #19106 (comment) |
@grgia The changes look good. I have completed my checklist along with platform videos. Only pending item is tests and platform videos on author checklist. Once you are done we should be good to go. |
@abdulrahuman5196 done! |
I'm going to jump in and review this since I have some time and it's interesting. |
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.
Again please add test and QA steps. We shouldn't consider the author checklist complete without those.
Testing with the bug reproduction steps:
- Create a thread
- Post one message in the thread
- Delete the message you created in 2
- See an unexpected result (0 replies) on the original room
It tests very well. A couple NAB comments.
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 actually going to request changes regarding including tests and QA in the description.
|
@neil-marcellini I added the QA / test steps |
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.
Changes LGTM and reviewers checklist is also complete.
@grgia Just couple things on authors checklist
- Kindly mention this would be tested in staging only in QA steps
- Kindly mark the offline tests as Not applicable since threads are updated in the parent only online case, could be related to the known issue you had mentioned
Btw, QA is only tested on staging unless mentioned otherwise.
Yup, this is a good point. |
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 for adding the tests
Fix 0 Replies Bug FE (cherry picked from commit 088fbfe)
…-19106 🍒 Cherry pick PR #19106 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/neil-marcellini in version: 1.3.15-6 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.15-12 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
Add a check to prevent rendering thread replies if there are no replies.
**Note, the update speed of the parent report in this video is a known bug unrelated to this PR **
Screen.Recording.2023-05-17.at.10.48.10.AM.mov
Fixed Issues
$ #19042
Tests
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 methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.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
Web
See description
Mobile Web - Chrome
Screen.Recording.2023-05-17.at.5.50.29.PM.mov
Mobile Web - Safari
Screen.Recording.2023-05-17.at.5.46.52.PM.mov
Desktop
Screen.Recording.2023-05-17.at.5.55.50.PM.mov
iOS
Screen.Recording.2023-05-17.at.5.45.02.PM.mov
Android
Screen.Recording.2023-05-17.at.5.54.38.PM.mov