coralproject / talk

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

[CORL-2934]: DSA - Send rejection reason through when illegal content decision made #4393

Closed kabeaty closed 10 months ago

kabeaty commented 10 months ago

What does this PR do?

These changes update to send through the rejection reason when an illegal content report decision is made and the reported comment is therefore rejected.

These changes will impact:

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?

n/a

How do I test this PR?

You can create a DSA report. Then go into the admin and make an illegal content decision with legal grounds and detailed explanation. Find the comment moderation action for this rejection and see that it includes the correct code for illegal content, as well as the legal grounds and detailed explanation.

Where any tests migrated to React Testing Library?

How do we deploy this PR?