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:
[ ] commenters
[x] moderators
[x] admins
[ ] developers
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 actionTypeILLEGAL_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?
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
tocommentActions
to be added when they are ofactionType
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
tocommentModerationActions
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 theINFO
tab, you should see aLATEST REPORTS
section that includesIllegal 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 theVIEW 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?