Skip to content

Implements the Pull side of comment sync#6117

Merged
ChrisPenner merged 103 commits intotrunkfrom
cp/comment-download
Jan 16, 2026
Merged

Implements the Pull side of comment sync#6117
ChrisPenner merged 103 commits intotrunkfrom
cp/comment-download

Conversation

@ChrisPenner
Copy link
Member

@ChrisPenner ChrisPenner commented Jan 14, 2026

Overview

Implements comment-sync download which activates on pull.

Implementation approach and notes

Uses an interactive process to check which comments are missing and pull the missing ones down.

Test coverage

  • Transcripts in share-api

@ChrisPenner ChrisPenner force-pushed the cp/comment-download branch 4 times, most recently from 03bd406 to e9809b5 Compare January 15, 2026 22:53
@ChrisPenner ChrisPenner changed the base branch from trunk to cp/comments-sync-api January 15, 2026 22:59
@ChrisPenner ChrisPenner marked this pull request as ready for review January 15, 2026 23:01
Comment on lines 46 to 54
syncHistoryCommentsEnvKey :: String
syncHistoryCommentsEnvKey = "UNISON_SYNC_HISTORY_COMMENTS"

shouldSyncHistoryComments :: Bool
shouldSyncHistoryComments = unsafePerformIO $ do
lookupEnv syncHistoryCommentsEnvKey <&> \case
Just "false" -> False
_ -> True
{-# NOINLINE shouldSyncHistoryComments #-}
Copy link
Member Author

Choose a reason for hiding this comment

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

This disables comment sync unless the env var is set.

@ChrisPenner ChrisPenner changed the base branch from cp/comments-sync-api to trunk January 16, 2026 19:18
@ChrisPenner ChrisPenner added the ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved label Jan 16, 2026
@ChrisPenner ChrisPenner changed the base branch from trunk to cp/comments-sync-api January 16, 2026 19:26
@ChrisPenner ChrisPenner changed the base branch from cp/comments-sync-api to trunk January 16, 2026 22:48
@ChrisPenner ChrisPenner merged commit 6770991 into trunk Jan 16, 2026
31 checks passed
@ChrisPenner ChrisPenner deleted the cp/comment-download branch January 16, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants