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: Enable batch prisma queries in the typegate runtime #682

Merged
merged 27 commits into from
Apr 30, 2024

Conversation

Natoandro
Copy link
Contributor

@Natoandro Natoandro commented Apr 18, 2024

Enable batch prisma queries (and transaction) in the typegate runtime

Motivation and context

Console
MET-381

Migration notes

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

@Natoandro Natoandro changed the title feat: Enable batch queries (and transaction) for prisma in the typegate runtime feat: Enable batch prisma queries in the typegate runtime Apr 18, 2024
@Natoandro Natoandro changed the base branch from main to docs April 18, 2024 06:19
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Attention: Patch coverage is 93.10345% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 75.69%. Comparing base (b23bbb6) to head (31038db).

Files Patch % Lines
typegate/src/runtimes/prisma/prisma.ts 80.00% 1 Missing ⚠️
typegate/src/runtimes/typegate.ts 95.83% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #682      +/-   ##
==========================================
- Coverage   75.69%   75.69%   -0.01%     
==========================================
  Files         121      121              
  Lines       13567    13583      +16     
  Branches     1409     1415       +6     
==========================================
+ Hits        10270    10281      +11     
- Misses       3274     3279       +5     
  Partials       23       23              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

zifeo
zifeo previously approved these changes Apr 18, 2024
michael-0acf4
michael-0acf4 previously approved these changes Apr 18, 2024
Yohe-Am
Yohe-Am previously approved these changes Apr 18, 2024
Base automatically changed from docs to main April 19, 2024 08:08
@zifeo zifeo dismissed stale reviews from Yohe-Am, michael-0acf4, and themself April 19, 2024 08:08

The base branch was changed.

@zifeo
Copy link
Member

zifeo commented Apr 24, 2024

@Natoandro needs a rebase

@zifeo
Copy link
Member

zifeo commented Apr 25, 2024

One more rebase :)

@Natoandro Natoandro merged commit be89ada into main Apr 30, 2024
10 checks passed
@Natoandro Natoandro deleted the gate-rt/prisma-batch branch April 30, 2024 07:24
Yohe-Am pushed a commit that referenced this pull request May 7, 2024
fix: cherry-pick

feat(wasm): wit component support

test(wasm): error propagation

refactor(wasm): all remaining wasmedge -> wasm

fix(wasm): bad conversion

feat(wasm): nested object output

test(wasm): tuple deserialize

test(wasm): update binding test value

feat(wasm): nested wit input support

feat(wasm): handle enum input, fix object bug

feat(wasm): reject on extra fields

fix(wasm): typos and minor cleanups

fix(tests.yml): disable cache deno dir for now

fix: version lock

fix: lockfile

refactor: rename all wasmedge ref. to wasm

refactor(gate): wasi 0.2 pyrt

refactor: rename to `pyrt_wit_wire`

fix: pre-commit issue

wip: try ci fix

feat: add pyrt bin inline

refactor: `python_wasi` -> `python`

wip: import module support

fix: rebase bugs

feat(metagen): `mdk_rs` finalization (#673)

- Finalizes the host side of the `wit_wire` implementation started in
- Fixes a few issues with the `mdk_rust` generator.

The code generator was already in place but we the typegate had no
support for the `wit_wire` interface used by the rust mdk. This PR adds
that.

The two week delay is mainly due to the base work required in #669 and
related PRs.

_No breaking changes on user._

- [x] The change come with new or modified tests
- [x] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change

feat: Enable batch prisma queries in the typegate runtime (#682)

Enable batch prisma queries (and transaction) in the typegate runtime

Console

[MET-381](https://linear.app/metatypedev/issue/MET-381/console-collections)

<!-- Explain HOW users should update their code when required -->

- [x] The change come with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change

---------

Co-authored-by: Teo Stocco <teo@zifeo.com>
Co-authored-by: Yohe-Am <56622350+Yohe-Am@users.noreply.github.com>

fix: update poetry lockfile

fix: CI issues

fix: minor bugs

fix: ci breakage

wip: try fix
Yohe-Am pushed a commit that referenced this pull request May 23, 2024
fix: cherry-pick

feat(wasm): wit component support

test(wasm): error propagation

refactor(wasm): all remaining wasmedge -> wasm

fix(wasm): bad conversion

feat(wasm): nested object output

test(wasm): tuple deserialize

test(wasm): update binding test value

feat(wasm): nested wit input support

feat(wasm): handle enum input, fix object bug

feat(wasm): reject on extra fields

fix(wasm): typos and minor cleanups

fix(tests.yml): disable cache deno dir for now

fix: version lock

fix: lockfile

refactor: rename all wasmedge ref. to wasm

refactor(gate): wasi 0.2 pyrt

refactor: rename to `pyrt_wit_wire`

fix: pre-commit issue

wip: try ci fix

feat: add pyrt bin inline

refactor: `python_wasi` -> `python`

wip: import module support

fix: rebase bugs

feat(metagen): `mdk_rs` finalization (#673)

- Finalizes the host side of the `wit_wire` implementation started in
- Fixes a few issues with the `mdk_rust` generator.

The code generator was already in place but we the typegate had no
support for the `wit_wire` interface used by the rust mdk. This PR adds
that.

The two week delay is mainly due to the base work required in #669 and
related PRs.

_No breaking changes on user._

- [x] The change come with new or modified tests
- [x] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change

feat: Enable batch prisma queries in the typegate runtime (#682)

Enable batch prisma queries (and transaction) in the typegate runtime

Console

[MET-381](https://linear.app/metatypedev/issue/MET-381/console-collections)

<!-- Explain HOW users should update their code when required -->

- [x] The change come with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change

---------

Co-authored-by: Teo Stocco <teo@zifeo.com>
Co-authored-by: Yohe-Am <56622350+Yohe-Am@users.noreply.github.com>

fix: update poetry lockfile

fix: CI issues

fix: minor bugs

fix: ci breakage

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

Successfully merging this pull request may close these issues.

4 participants