Skip to content

chore: Deprecate CommentMove.comment_ - #10600

Merged
gonfunko merged 1 commit into
mainfrom
deprecate-comment
Oct 21, 2026
Merged

gonfunko merged 1 commit into
mainfrom
deprecate-comment

Conversation

@gonfunko

Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes part of #10219

Proposed Changes

This PR marks CommentMove.comment_ as deprecated. This field leaks a reference to a comment object, as events are long-lived in the undo stack. All other event types do not store the object they relate to, but rather its ID or a serialized representation. This field used to be for temporary storage, but became persistent a while ago. It will be removed in v14, but we should note it as deprecated in advance of that so that anybody relying on it can make adjustments now.

Reason for Changes

This field is inconsistent with other event types and retains references to even deleted workspace comments as long as it remains in the undo stack.

@gonfunko
gonfunko requested a review from a team as a code owner October 20, 2026 21:47
@gonfunko
gonfunko requested a review from mikeharv October 20, 2026 21:47
@github-actions github-actions Bot added the PR: chore General chores (dependencies, typos, etc) label Oct 20, 2026
@gonfunko gonfunko changed the title chore: Deprecate CommentMove.comment_. chore: Deprecate CommentMove.comment_ Oct 20, 2026
@github-actions github-actions Bot added PR: chore General chores (dependencies, typos, etc) and removed PR: chore General chores (dependencies, typos, etc) labels Oct 20, 2026
@gonfunko
gonfunko merged commit ce5fa72 into main Oct 21, 2026
6 checks passed
@gonfunko
gonfunko deleted the deprecate-comment branch October 21, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: chore General chores (dependencies, typos, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants