coralproject / talk

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

[CORL-3120]: Add initialStatus to comment and use for pre-mod labels in moderate cards #4589

Closed kabeaty closed 5 months ago

kabeaty commented 5 months ago

What does this PR do?

These changes add an initialStatus field to Comment. This helps have a clearer history from the initial creation of the comment into what its status history is. A status field is added to comment revisions, so we also have status per revision now. Then we use the first revision's status to populate initialStatus.

These changes will impact:

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

This adds an initialStatus field to the Comment. It also adds status to CommentRevision.

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 set a user to pre-mod. Create comments as that user. See that they have the pre-mod label in moderate cards, in moderation queues and in user history drawer. Approve/reject these comments. See that they still have the pre-mod label based on their initial pre-mod status.

Were any tests migrated to React Testing Library?

How do we deploy this PR?

netlify[bot] commented 5 months ago

Deploy Preview for gallant-galileo-14878c canceled.

Name Link
Latest commit e137d0bf128a74f1d6c04ce86fbb62c8b011f18a
Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/660c49ebfe13140008a28d48