-
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 wrong last accessed report #23625
Fix wrong last accessed report #23625
Conversation
@abdulrahuman5196 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] |
5: {lastReadTime: '2023-07-09 07:15:44.030'}, | ||
6: {reportID: 6}, | ||
7: {}, | ||
}; |
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.
added more cases where the lastReadTime
and/or reportID
is undefined
I added before and after for the recording to make it clear what is the issue. About the QA Steps, even though it won't be 100% reliable to reproduce the issue with the steps, at least it should still work as usual after the changes. |
@bernhardoj And IMO even though the fix is not directly applicable to other platforms, adding videos of just opening reports could be added. This will help us understand we have tested basic functionality around the change in all platforms to avoid regressions. Can we add the same? |
@abdulrahuman5196 added the recording (open app and report) for mobile. |
Reviewing now |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-31.at.1.53.22.PM.mp4Mobile Web - Chromeaz_recorder_20230731_141301.mp4Mobile Web - SafariUntitled.1.mp4DesktopScreen.Recording.2023-07-31.at.2.00.05.PM.mp4iOSScreen.Recording.2023-07-31.at.2.03.02.PM.mp4AndroidScreen.Recording.2023-07-31.at.2.05.16.PM.mp4 |
I wasn't able to reproduce this issue for admin/room chat as initially described in the issue. But I am able to reproduce this issue for other chat type How should we take the issue for the below mentioned chat type with similar issue? Should I report a separate bug? Or can we create a followup issue directly and take it forward? @Julesssss Screen.Recording.2023-07-31.at.1.49.01.PM.mp4Screen.Recording.2023-07-31.at.1.51.23.PM.mp4Screen.Recording.2023-07-31.at.1.46.46.PM.mp4 |
@bernhardoj And for offline tests, it should be |
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 looks good and works well. Reviewers checklist is also complete.
All yours. @Julesssss
🎀 👀 🎀
C+ Reviewed
✋ 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/Julesssss in version: 1.3.48-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.48-5 🚀
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.49-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.49-3 🚀
|
Details
findLastAccessedReport
return the last accessed report to be shown on the report screen. However, the sorting is not working correctly when the item has a null value. This PR filter out null value.Fixed Issues
$ #20780
PROPOSAL: #20780 (comment)
Tests
A new test was added:
sortReportsByLastRead
Same as QA Steps
Offline tests
Requires internet connection to refresh/reload
QA Steps
Web/Desktop
Android/iOS/mWeb
Not applicable
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
Before:
Screen.Recording.2023-07-26.at.19.04.45.mov
After:
Screen.Recording.2023-07-26.at.19.06.33.mov
Mobile Web - Chrome
Screen.Recording.2023-07-27.at.12.22.44.mov
Mobile Web - Safari
Screen.Recording.2023-07-27.at.12.25.15.mov
Desktop
Before:
Screen.Recording.2023-07-26.at.19.10.55.mov
After:
Screen.Recording.2023-07-26.at.19.11.46.mov
iOS
Screen.Recording.2023-07-27.at.12.24.10.mov
Android
Untitled.mov