-
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
prevent user with no permission from flag comment #22099
Conversation
@allroundexperts 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] |
@allroundexperts PR is ready for review! |
@hungvu193 Please fix the lint error. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-04.at.3.44.35.PM.movMobile Web - ChromeScreen.Recording.2023-07-04.at.3.58.56.PM.movMobile Web - SafariScreen.Recording.2023-07-04.at.3.57.59.PM.movDesktopScreen.Recording.2023-07-04.at.3.49.16.PM.moviOSScreen.Recording.2023-07-04.at.4.02.29.PM.movAndroidScreen.Recording.2023-07-04.at.4.00.23.PM.mov |
Still not fixed @hungvu193. |
ah I see @allroundexperts, I'm working on a fix |
Fixed @allroundexperts |
* @param {number} reportID | ||
* @returns {Boolean} | ||
*/ | ||
function canFlagReportAction(reportAction, reportID) { |
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.
@hungvu193 You need to supply reportID
everywhere where canFlagReportAction
function is being called. Please test your code thoroughly before creating PRs. Regressions like these cause a lot of trouble down the lane.
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.
@allroundexperts my bad, I've just updated
@hungvu193 I think the test steps can be improved. Can you please reduce there length and make sure that they're more clear? |
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.
Works and tests good.
✋ 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/danieldoglas in version: 1.3.37-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.37-7 🚀
|
Details
Fix: Prevent user with no permission from flagging comment
Fixed Issues
$ #21719
PROPOSAL: #21719 (comment)
Tests
Offline tests
Same as Tests
QA Steps
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
Web
Screen.Recording.2023-07-03.at.17.51.08.mov
Mobile Web - Chrome
RPReplay_Final1688381780.MP4
Mobile Web - Safari
RPReplay_Final1688381592.MP4
Desktop
Screen.Recording.2023-07-03.at.17.58.05.mov
iOS
Screen.Recording.2023-07-03.at.18.01.56.mov
Android
Screen.Recording.2023-07-03.at.18.04.19.mov