Closed nick-funk closed 7 months ago
moderationAction
rejectionReason
None
No
INDEXES.md
Spin up utilities/externalModPhase with an npm i && npm run start in that directory
utilities/externalModPhase
npm i && npm run start
Spin up Coral
Go to the Admin and enable DSA under General > Digital Services Act feature set
Admin
General > Digital Services Act feature set
Under Admin > Moderation Phases Add an external mod phase pointing to http://localhost:7000/api/rejectWithReason
Admin > Moderation Phases
http://localhost:7000/api/rejectWithReason
Using a commenter account, post a comment
See the comment get rejected
Check the user's notifications and see that a notification is shown with how it was rejected
Head back to admin and disable the external mod phase
Make a new mod phase, point it to http://localhost:7000/api/approve
http://localhost:7000/api/approve
Post a comment with the commenter again
See that the comment is approved
No special considerations.
What does this PR do?
moderationAction
which will create moderation actions when rejecting/approving commentsrejectionReason
when supplying amoderationAction
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
?None
How do I test this PR?
Spin up
utilities/externalModPhase
with annpm i && npm run start
in that directorySpin up Coral
Go to the
Admin
and enable DSA underGeneral > Digital Services Act feature set
Under
Admin > Moderation Phases
Add an external mod phase pointing tohttp://localhost:7000/api/rejectWithReason
Using a commenter account, post a comment
See the comment get rejected
Check the user's notifications and see that a notification is shown with how it was rejected
Head back to admin and disable the external mod phase
Make a new mod phase, point it to
http://localhost:7000/api/approve
Post a comment with the commenter again
See that the comment is approved
Were any tests migrated to React Testing Library?
No
How do we deploy this PR?
No special considerations.