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

chore(client, cli): implement --data-proxy [DPGA, 1] #13561

Merged
merged 12 commits into from Jun 7, 2022
Merged

Conversation

millsp
Copy link
Member

@millsp millsp commented May 30, 2022

This PR replaces the PRISMA_CLIENT_ENGINE_TYPE=dataproxy mechanism in favor of --data-proxy via the cli.

Next #13512

https://github.com/orgs/prisma/projects/70#card-82299232

@millsp millsp force-pushed the chore/data-proxy-ga-1 branch 2 times, most recently from 2ba819c to 53f6f82 Compare May 30, 2022 17:06
@millsp millsp force-pushed the chore/data-proxy-ga-1 branch 5 times, most recently from ca4e7c2 to 4926413 Compare May 30, 2022 19:43
@millsp millsp self-assigned this May 30, 2022
@millsp millsp added this to the 3.15.0 milestone May 30, 2022
@millsp millsp changed the title fix watch full rebuild on file deletion chore(client, cli): [DPGA] implement --data-proxy May 30, 2022
@millsp millsp changed the title chore(client, cli): [DPGA] implement --data-proxy chore(client, cli): implement --data-proxy [DPGA] May 30, 2022
@millsp millsp marked this pull request as ready for review May 30, 2022 22:12
Copy link
Member

@janpio janpio left a comment

Choose a reason for hiding this comment

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

Scroll through review: All changes make sense and nothing pops out as problematic.

@janpio janpio changed the title chore(client, cli): implement --data-proxy [DPGA] chore(client, cli): implement --data-proxy [DPGA-1] Jun 3, 2022
@janpio janpio changed the title chore(client, cli): implement --data-proxy [DPGA-1] chore(client, cli): implement --data-proxy [DPG, 1] Jun 3, 2022
@janpio janpio changed the title chore(client, cli): implement --data-proxy [DPG, 1] chore(client, cli): implement --data-proxy [DPGA, 1] Jun 3, 2022
millsp and others added 3 commits June 7, 2022 12:07
@millsp millsp merged commit a7b02ca into main Jun 7, 2022
@millsp millsp deleted the chore/data-proxy-ga-1 branch June 7, 2022 12:10
>

// our implementation handles less
export type RequestOptions = O.Patch<{ headers?: { [k: string]: string }; body?: string }, RequestInit>
Copy link
Contributor

Choose a reason for hiding this comment

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

Note: it seems this change prevents TypeScript to properly build engine-core, as it affects the buildOptions function.

Temporary solution:

function buildOptions(options: RequestOptions): Https.RequestOptions {
  return {
    // @ts-ignore
    method: options.method,
    headers: buildHeaders(options),
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants