coralproject / talk

A better commenting experience from Vox Media
https://coralproject.net
Other
1.89k stars 354 forks source link

[CORL-2977]: Add view DSA report link with illegal content report info in moderate card #4442

Closed kabeaty closed 11 months ago

kabeaty commented 11 months ago

What does this PR do?

These changes add illegal content reports and their reporter info to moderate cards, as well as a View DSA Report link next to this that goes to the related DSA report.

These changes will impact:

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

These changes add a reportID to commentActions to be added when they are of actionType ILLEGAL_CONTENT so that we know what DSA Report was created in relation to the comment action, and we can therefore link to it.

These changes also add reportID to commentModerationActions so that we have that link accessible as well if needed.

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

no

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

n/a

How do I test this PR?

You can test this PR by reporting a comment for illegal content. You can also report it for other flags too. Then go into the admin and view the comment you reported. Click DETAILS in its comment card to expand. In the INFO tab, you should see a LATEST REPORTS section that includes Illegal content reports as well as any other types of reports you made against the comment. See that the user who you used to report the comment for illegal content shows up and clicking their name takes you to their user drawer. See the VIEW DSA REPORT button beside their name. Click it and see that you're taken to the expected DSA report screen. See that other types of reports still render as expected, as well.

Where any tests migrated to React Testing Library?

How do we deploy this PR?

netlify[bot] commented 11 months ago

Deploy Preview for gallant-galileo-14878c canceled.

Name Link
Latest commit 235b9720878be87f0555ddd8e60ab9eb6e445ee4
Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/6568ad1f5c37ed00083a6a7a