Adds a check to see if the comment cache has been primed when loading a single conversation view's comment replies.
Ensures that the whole story is primed into Redis before trying to use the cache to load the single conversation view with its parents and replies around the target shared comment.
These changes will impact:
[X] commenters
[ ] moderators
[ ] admins
[ ] developers
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?
What does this PR do?
Adds a check to see if the comment cache has been primed when loading a single conversation view's comment replies.
Ensures that the whole story is primed into Redis before trying to use the cache to load the single conversation view with its parents and replies around the target shared comment.
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?
See the reproduction steps laid out in the reporting issue: https://github.com/coralproject/talk/issues/4609
Useful mutations when testing:
POST:
http://localhost:3000/api/graphql
POST:
http://localhost:3000/api/graphql
You can flush redis using: http://localhost:3000/admin/controlpanel
Were any tests migrated to React Testing Library?
No
How do we deploy this PR?
Merge into
develop
and add to upcoming release.