-
Notifications
You must be signed in to change notification settings - Fork 62
fix: use stable comment ids for imported comments #1863
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
fix: use stable comment ids for imported comments #1863
Conversation
luccas-harbour
commented
Jan 28, 2026
- SD used to generate a different UUID as a comment's internal id every time a document was imported.
- This PR changes that so that it uses a hash of the comment's imported id and its date for imported comments so that they are stable.
c6dce2b to
b14d227
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check the commentId hash implementation - all the rest looks good :)
packages/super-editor/src/core/super-converter/v2/importer/documentCommentsImporter.js
Outdated
Show resolved
Hide resolved
packages/super-editor/src/core/super-converter/v2/importer/documentCommentsImporter.js
Outdated
Show resolved
Hide resolved
packages/super-editor/src/tests/import/documentCommentsImporter.unit.test.js
Outdated
Show resolved
Hide resolved
caio-pizzol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
harbournick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
## [1.9.1-next.1](v1.9.0...v1.9.1-next.1) (2026-01-29) ### Bug Fixes * **comments:** pass superdoc instance when canceling pending comment ([#1862](#1862)) ([4982bac](4982bac)) * selection/caret issues ([#1865](#1865)) ([3f627fb](3f627fb)) * use stable comment ids for imported comments ([#1863](#1863)) ([0c330d0](0c330d0))
|
🎉 This PR is included in version 1.9.1-next.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |