Skip to content

Commit

Permalink
Using esClient bulk for true partial update
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Sep 3, 2024
1 parent 19dd65c commit defa6ba
Show file tree
Hide file tree
Showing 6 changed files with 911 additions and 489 deletions.
8 changes: 8 additions & 0 deletions x-pack/plugins/task_manager/server/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ export interface ConcreteTaskInstance extends TaskInstance {
partition?: number;
}

export type PartialConcreteTaskInstance = Partial<ConcreteTaskInstance> & {
id: ConcreteTaskInstance['id'];
};

export interface ConcreteTaskInstanceVersion {
/** The _id of the the document (not the SO id) */
esId: string;
Expand Down Expand Up @@ -490,3 +494,7 @@ export type SerializedConcreteTaskInstance = Omit<
runAt: string;
partition?: number;
};

export type PartialSerializedConcreteTaskInstance = Partial<SerializedConcreteTaskInstance> & {
id: SerializedConcreteTaskInstance['id'];
};
Loading

0 comments on commit defa6ba

Please sign in to comment.