-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "in reply to" references to comments #21237
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
migration
[pull request] Includes migration for review
label
Oct 6, 2024
It looks like this PR contains a migration 👀 General requirements
Schema changes
Data changes
|
kevinansfield
added
deploy-to-staging
and removed
migration
[pull request] Includes migration for review
labels
Oct 6, 2024
kevinansfield
force-pushed
the
comments-replied-to-ref
branch
from
October 7, 2024 08:54
0e320a0
to
9a7b3c7
Compare
Deployed to staging with ID: |
kevinansfield
force-pushed
the
comments-replied-to-ref
branch
from
October 12, 2024 11:21
9a7b3c7
to
62a2764
Compare
Deployed to staging with ID: |
kevinansfield
force-pushed
the
comments-replied-to-ref
branch
2 times, most recently
from
October 13, 2024 14:33
b064d44
to
60ffd8e
Compare
Deployed to staging with ID: |
kevinansfield
force-pushed
the
comments-replied-to-ref
branch
from
October 15, 2024 08:53
60ffd8e
to
c625e9b
Compare
Deployed to staging with ID: |
kevinansfield
force-pushed
the
comments-replied-to-ref
branch
from
November 5, 2024 14:56
c625e9b
to
7422d78
Compare
Deployed to staging with ID: |
ref https://linear.app/tryghost/issue/PLG-230 - `comments.in_reply_to_id` will be used to keep a reference to the comment that the new comment was directed at - used only for replies-to-replies, will be `null` for the top-level parent and `null` for any replies directly to that parent - technically allows for infinite nesting within a parent comment thread but we won't be using that ability for now - `comments.parent_id` will be kept as it provides a useful optimisation for loading the top-level comments list - we're not using `comments.parent_id` for this to keep complexity down and avoid the need for recursive lookups
kevinansfield
force-pushed
the
comments-replied-to-ref
branch
from
November 6, 2024 17:53
7422d78
to
2856cec
Compare
ref https://linear.app/tryghost/issue/PLG-230 - adds `in_reply_to_id` to API output - adds `in_reply_to_snippet` to API output - dynamically generated from the HTML of the replied-to comment - excluded if the replied-to comment has been deleted or hidden - adds `commentSnippet` to `@tryghost/html-to-plaintext` - skips anchor tag URLs as they won't be useful for snippet purposes - skips blockquotes so the snippet is more likely to contain the unique content of the replied-to comment when it's quoting a previous comment - returns a single line (no newline chars) - allows setting `in_reply_to_id` when creating comments - id must reference a reply with the same parent - id must reference a published comment - adds email notification for the original reply author when their comment is replied to
kevinansfield
force-pushed
the
comments-replied-to-ref
branch
from
November 6, 2024 17:55
2856cec
to
f66c244
Compare
Deployed to staging with ID: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ref https://linear.app/tryghost/issue/PLG-230
comments.in_reply_to_id
column to databasein_reply_to_id
to API outputin_reply_to_snippet
to API outputin_reply_to_id
when creating commentsTODO
in_reply_to_snippet
part of comments data mapper