Skip to content

Conversation

@luccas-harbour
Copy link
Contributor

  • 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.

@linear
Copy link

linear bot commented Jan 28, 2026

@luccas-harbour luccas-harbour force-pushed the luccas/sd-1672-bug-generate-stable-ids-for-imported-comments branch from c6dce2b to b14d227 Compare January 28, 2026 13:15
@luccas-harbour luccas-harbour marked this pull request as ready for review January 28, 2026 13:16
Copy link
Contributor

@caio-pizzol caio-pizzol left a 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 :)

@caio-pizzol caio-pizzol self-requested a review January 28, 2026 16:16
Copy link
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harbournick harbournick enabled auto-merge (squash) January 29, 2026 00:23
@harbournick harbournick disabled auto-merge January 29, 2026 05:55
@harbournick harbournick merged commit 0c330d0 into main Jan 29, 2026
4 of 5 checks passed
@harbournick harbournick deleted the luccas/sd-1672-bug-generate-stable-ids-for-imported-comments branch January 29, 2026 05:55
harbournick pushed a commit that referenced this pull request Jan 29, 2026
## [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))
@harbournick
Copy link
Collaborator

🎉 This PR is included in version 1.9.1-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants