-
Notifications
You must be signed in to change notification settings - Fork 22
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
Draft SDK type changes for incremental sync #2914
base: main
Are you sure you want to change the base?
Conversation
@@ -88,6 +88,9 @@ function hasComment(data: ReflectionData): boolean { | |||
} | |||
|
|||
function messageForEntity(data: ReflectionData): string { | |||
if (!data.kindString) { | |||
throw new Error(`No kindString for ${data.name}, did you forget to add /** ... */ comments?`); |
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.
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.
The type stuff makes sense to me. Had some questions about versioning and naming
|
||
// TODO(patrick): Unhide this | ||
/** @hidden */ | ||
prevSyncContinuation?: Continuation; |
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.
The name prevSyncContinuation
doesn't feel that distinct from continuation
I wonder if it's worth doing a quick naming brainstorm & voting exercise in a doc? Personally I might lean toward a name more like incrementalSyncBase
to clearly distinguish it from non-incremental sync.
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.
Ah you're right, I'll make a doc.
api.ts
Outdated
* TODO(patrick): Unhide this | ||
* @hidden | ||
*/ | ||
syncExecutionCompletionMetadata?: SyncExecutionCompletionMetadata; |
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.
Nitpick: The key name seems overly verbose. Would metadata
suffice? Or perhaps completion
?
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.
I like how completion
matches continuation
, I'll use that.
62ef2e4
to
814dbb0
Compare
This pull request has been inactive for 7 days: labeled as stale. To avoid auto-closure in 7 days, please do one of the following: Add |
No description provided.