-
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: Unmatched parent report ID and report action ID #20574
Fix: Unmatched parent report ID and report action ID #20574
Conversation
@cristipaval @aimane-chnaif 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] |
This comment was marked as outdated.
This comment was marked as outdated.
I don't think Here's example: Screen.Recording.2023-06-14.at.5.44.02.AM.mov |
Let's still pass |
@tienifr please let me know when ready for review again |
…unmatched-parent-report-and-action
@aimane-chnaif Did you test on my branch? I cannot reproduce the bug you mentioned. Actually I've added the |
@tienifr yes, I tested your branch. And pulled main locally. This is reproducible only on mobile. Screen.Recording.2023-06-14.at.1.04.40.PM.mov |
@aimane-chnaif Please take a look. Basically |
…unmatched-parent-report-and-action
Bump @aimane-chnaif |
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.
This PR is very buggy at the moment. Not able to continue testing
@@ -37,6 +38,7 @@ function showContextMenuForReport(event, anchor, reportID, action, checkIfContex | |||
checkIfContextMenuActive, | |||
checkIfContextMenuActive, | |||
isArchivedRoom, | |||
isParentReport, |
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.
Is this param passed anywhere? showContextMenuForReport
is called from various places.
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.e. In BasePreRenderer onLongPress event, isParentReport
is not passed at all.
Screen.Recording.2023-06-21.at.6.58.34.PM.mov
I started concerning about this approach of passing isParentReport
{parentReportAction && (
<ReportActionItem
isParentReport
report={props.parentReport}
About the draft status mentioned here: #19363 (comment). If we proceed with the latest changes, we can agree upon the initial behavior:
|
The latest code looks much simpler and less possible regressions. |
Yes, and I also like that we are consistent with the way that editing works |
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.
Code looks good. Will test shortly
After deleting message, context menu is not synced until page refresh. Screen.Recording.2023-06-23.at.12.04.45.PM.mov |
I don't think this is bug or at least won't be handled in this PR. desktop-moderation.mov |
Do you want the whisper message to appear in thread report as well? Do we need to handle that in this PR? |
When delete message which already has reactions, reactions are cleared at first but after refresh, appears again. android-reactions.mov |
@cristipaval what do you think? |
Reviewer Checklist
Screenshots/VideosWebreaction-edit-unread-link.movweb-delete.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari-delete.movDesktopdesktop-moderation.moviOSios-delete.movAndroidandroid-reactions.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.
Issues found while testing:
#20574 (comment)
#20574 (comment)
#20574 (comment)
I suggest to consider these out of scope. Please comment If you disagree.
Otherwise looks good.
cc: @cristipaval
Bump @cristipaval |
✋ 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/cristipaval in version: 1.3.33-0 🚀
|
@tienifr this will break automation Please update like this:
|
Thanks! |
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.33-4 🚀
|
Details
When we call any API for thread's first message, we're sending the
reportID
of the thread (child) report, but together with thereportActionID
of the parent report; while thisreportActionID
does not exist in the child report. This makes most of the APIs failed. This PR fixes that issue.Fixed Issues
$ #19363
$ #19348
$ #19352
$ #19901
$ #20390
$ #20907
$ #21598
PROPOSAL: #19363 (comment), #19363 (comment)
Tests
======
======
======
/r/A_reportID/actionID
for A and/r/B_reportID/actionID
for B======
======
======
======
Repeat step 6-18 with B message.
Offline tests
Same above
QA Steps
======
======
======
/r/A_reportID/actionID
for A and/r/B_reportID/actionID
for B======
======
======
======
Repeat step 6-18 with B message.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Screencast.from.12-06-2023.17.35.29.webm
Mobile Web - Chrome
video-20230613-160657-edit_2vcfrcj9.mp4
Screenrecording_20230613_161506.mp4
Mobile Web - Safari
6763031456571314782_RmJkiXgb.mp4
Desktop
screen-recording-2023-06-14-at-010657_3FXUvD8O.mp4
iOS
screen-recording-2023-06-14-at-011947_nvc0z2aL.mp4
Android