Skip to content
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

feat(client): interactive transactions #8384

Merged
merged 60 commits into from Aug 9, 2021
Merged

Conversation

millsp
Copy link
Member

@millsp millsp commented Jul 21, 2021

closes #1844
closes #7956
closes #7786
closes #7399
closes #6705
closes #7326

Internal doc

@millsp millsp changed the title feat(lrt): long running transactions impl feat(lrt): initial implementation Jul 21, 2021
@millsp millsp force-pushed the feat/long-running-transactions branch 2 times, most recently from ea0c578 to 1d7d5da Compare July 23, 2021 00:51
@millsp millsp changed the title feat(lrt): initial implementation feat(client): long-running transactions Jul 23, 2021
@millsp millsp marked this pull request as ready for review August 7, 2021 02:27
headers: string,
transactionId?: string,
): Promise<string>
sdlSchema(): Promise<string>
Copy link
Member

Choose a reason for hiding this comment

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

@williamluke4

Any idea what is sdlSchema?

It’s not documented nor used I think.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can't remember, I'll have to ask Julius

Copy link
Member

Choose a reason for hiding this comment

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

We can take care of this this in a separate PR

Copy link
Contributor

@williamluke4 williamluke4 left a comment

Choose a reason for hiding this comment

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

As always awesome work @millsp 🎉

Comment on lines +125 to +127
get<R>(path: string, headers?: Client.DispatchOptions['headers']) {
return this.raw<R>('GET', path, headers)
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
get<R>(path: string, headers?: Client.DispatchOptions['headers']) {
return this.raw<R>('GET', path, headers)
}
get<R>(endpoint: string, headers?: Client.DispatchOptions['headers']) {
return this.raw<R>('GET', endpoint, headers)
}

to make it consistent with POST

): Promise<{ data: T; elapsed: number }>
requestBatch<T>(
headers?: QueryEngineRequestHeaders,
numTry?: number,
Copy link
Member

Choose a reason for hiding this comment

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

I thought numTry was not used from last deep dive, is it used anywhere?

Copy link
Member

Choose a reason for hiding this comment

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

(We can do that in a separate PR)

Copy link
Member

@Jolg42 Jolg42 left a comment

Choose a reason for hiding this comment

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

Great work ✨

@millsp millsp merged commit fe3d63c into main Aug 9, 2021
@millsp millsp deleted the feat/long-running-transactions branch August 9, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment