talk
talk copied to clipboard
Comment replies not shown when watching specific conversation thread
Expected behavior: When I 'deeplink' to a specific comment I see the single conversation thread and I expect to see all the replies to the linked comment. When a reply to a comment is created I'd expect that comment or stories cache to get invalidated
Actual behavior:
The replies are not shown. Only the parent comments are shown. The html element for <PermaLinkViewContainer> is empty and the graphql responds with an empty list for the replies.
After recaching the whole article these replies are now shown when viewing a single conversation thread. It seems like the replies are being cached initially but never updated when there is a reply even though on the main thread these replies were already visible without recaching the article.
Question: Why can I see all the replies on the main thread, but not in a single conversation? Is there a desync in this cache or am I missing something obvious?
Related Issues: No similar issues found
Versions:
- Coral: 9.0.1
- NodeJS: 18.16
- NPM: 9.5.1
- MongoDB: 5.0.5
- Redis: 3.2
- Browser: Brave - Chromium
- OS: MacOS
Reproduction
- Remove featureFlag
DATA_CACHE - Reply to a comment and then reply to that comment.
- Comments are shown when reloading talk.
- Copy link of the middle comment and navigate to it -> You'll see the parent comment and replies.
- Enable featureFlag
DATA_CACHEand refresh the page. You will see the parent comment, but no replies. - Go to admin interface and choose to recache the story -> The missing replies now appear, but this has to be done everytime new replies are added
Thanks, we'll look into it.
To add to this: It seems like if you've pressed recache story once after that it stays up to date with the replies automatically and you don't need to press it every time, just once after an article is initially created.
We made a temporary work around that we do a cacheStory call after our createStory call, but I'd expect this to not be needed and it feels like something is missing on both existing and new articles where recache has never been pressed
This is fixed now, thanks!