coralproject / talk

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

[CORL-3035] Create a notifications expiry index (TTL) #4525

Closed nick-funk closed 7 months ago

nick-funk commented 7 months ago

What does this PR do?

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?

The following was added to INDEXES.md:

db.notifications.createIndex({ createdAt: 1 }, { partialFilterExpression: { isDSA: { $eq: null } }, expireAfterSeconds: 30 * 24 * 60 * 60 });

How do I test this PR?

Were any tests migrated to React Testing Library?

No

How do we deploy this PR?

Merge into epic branch. Deploy the above mentioned index when deploying the notifications release to clients.