Skip to content
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

Hook up remaining DSA notifications #4391

Merged
merged 9 commits into from
Nov 14, 2023

Conversation

nick-funk
Copy link
Contributor

@nick-funk nick-funk commented Nov 9, 2023

What does this PR do?

  • Hooks up the DSA notifications that happen when a user's comment is deemed illegal
  • Hooks up DSA reason information when comments are rejected into notifications

These changes will impact:

  • commenters
  • moderators
  • admins
  • developers

What changes to the GraphQL/Database Schema does this PR introduce?

None

Does this PR introduce any new environment variables or feature flags?

No

If any indexes were added, were they added to INDEXES.md?

No new indices.

How do I test this PR?

DSA Reporting:

  • Create a comment
  • Report it with the DSA reporting
  • Process the comment with an admin/mod user in the DSA report flow
  • Decide the comment is illegal in the DSA report flow
    • Specify the grounds and explanation
  • Check the original user's notifications
    • See a new notification showing the illegal reasoning, grounds, explanation, and the referenced comment
  • Check the reporting user's notifications
    • See a new notification indicating that the report decision was made

General Approve/Reject of comments with reasons:

  • Create a comment
  • Reject it using an admin/moderator account in the mod queues
    • Provide a reason
  • Check notifications of the original commenter
    • See that they have a notification indicating the rejection code and other legal details

Where any tests migrated to React Testing Library?

No

How do we deploy this PR?

No special considerations, it goes into the DSA epic branch when complete.

shows that we can process these fields, translate, and format
them nicely on the notification components stream side.
Copy link

netlify bot commented Nov 9, 2023

Deploy Preview for gallant-galileo-14878c ready!

Name Link
🔨 Latest commit 766a332
🔍 Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/654d557605c1110008d4608a
😎 Deploy Preview https://deploy-preview-4391--gallant-galileo-14878c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nick-funk nick-funk changed the base branch from develop to feat/dsa-launch-pad November 9, 2023 21:56
Copy link
Contributor

@kabeaty kabeaty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great!! Just one comment about sending a notification to the reporter too.

@nick-funk nick-funk requested a review from kabeaty November 13, 2023 22:30
…tions

# Conflicts:
#	server/src/core/server/services/dsaReports/reports.ts
#	server/src/core/server/stacks/rejectComment.ts
useful for filtering and searching in mongo later
@nick-funk nick-funk marked this pull request as ready for review November 14, 2023 19:20
Copy link
Contributor

@kabeaty kabeaty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!!

@kabeaty kabeaty merged commit 81a9a0d into feat/dsa-launch-pad Nov 14, 2023
2 checks passed
@kabeaty kabeaty deleted the feat/hookup-more-dsa-notifications branch November 14, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants