-
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
Use a single moderationDecision instead of the moderationDecisions array #22852
Conversation
Almost ready, web-e is on staging |
@Santhosh-Sellavel 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] |
Should we hold this for other PR-related moderation? |
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-07-24.at.12.22.20.AM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-07-25.at.2.21.01.AM.moviOS & AndroidScreen.Recording.2023-07-25.at.2.08.20.AM.mov |
@dangrous One question is this a bug?
Screen.Recording.2023-07-24.at.12.33.41.AM.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.
Looks good just waiting for this #22852 (comment)
i think that is an existing bug, but let me see if I can fix it here. (I have a note somewhere that says "Flagging as spam when already flagged as higher hides the 'reveal message' button very briefly" which I think is the same bug). The issue seems to be with the optimistic data still - since expected behavior is the end state (no change from when it was already flagged - and that's the updated data coming from the server. |
Updated! That bug should be fixed - i also cleaned up the logic a bit since it was unnecessarily complicated. |
Adding myself as a reviewer for this issue since it's not linked to an existing one so pullerbear didn't pull one. Would be great if we could resolve the above bug as well in this PR - I know we had the same problem with deleting the only comment in a chat report. I wonder if we could do the same here as well |
@dangrous |
That does not look intended, you should be able to flag comments offline |
Should I log a bug separately or will this be handled here? |
IMO we should create follow-ups as both bugs are not caused here, let me know your thoughts thanks! |
I will look into both of these! I think separate issues might make the most sense since they're not caused by this PR and contributors can likely work on both. But let me take a little bit of time and see if I can figure them out now. |
One down, one to go |
Let's actually move ahead with this PR, and add a separate issue for the loading while offline - it's not consistently reproducible (at least for me) so would need a bunch more investigation. It's definitely front end (so contributor friendly), and not directly related to this. |
@dangrous Please resolve conflicts, thanks! |
Oops I thought I commented here yesterday. Conflicts resolved |
Will look later today |
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.
LGTM, thanks!
@AndrewGable 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] |
Deferring review to @thienlnam |
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.
Awesome, thanks!
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.47-1 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.47-6 🚀
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.49-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.49-3 🚀
|
cc @thienlnam
Details
Short version - right now we're using an array of decisions instead a single moderationDecision in it to the front end, due to switching directions partway through the project (we originally were sending the total moderation history). This causes problems with Onyx.merge (some funkiness and messy code required to handle optimistic updates), and it's simpler to handle the moderationDecision on its own, so that it will be replaced instead of added on. By the time this is in review, we send the single object through from Auth to Web-E to App so we should be all set.
Once this is deployed, we'll have one more set of PRs to remove the deprecated logic from Web-E and Auth. Technically this could pose some problems if people are using old App versions, but given the low usage of this feature I'm not super concerned. cc @thienlnam in case you have differing opinions.
Fixed Issues
N/A - General clean up of potential moderation bugs linked to sending an array.
Tests
MODERATION_TEST
, and flag it as IntimidationOffline 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
Still struggling to get mWeb Chrome working, I'm resetting my device so we'll see.
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android