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

Let async-graphql handle cursor encoding/decoding #348

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

msk
Copy link
Contributor

@msk msk commented Nov 1, 2024

async-graphql's query function automatically handles cursor encoding and decoding. This commit removes the custom cursor encoding/decoding code from the slicing module and uses async-graphql's built-in functionality instead. This change only updates the slicing module to keep the PR minimal, and a follow-up change will be needed to address the top-level encode_cursor and decode_cursor functions in the graphql module.

async-graphql's `query' function automatically handles cursor encoding
and decoding. This commit removes the custom cursor encoding/decoding
code from the `slicing' module and uses async-graphql's built-in
functionality instead.
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

Attention: Patch coverage is 14.44444% with 77 lines in your changes missing coverage. Please review.

Project coverage is 68.36%. Comparing base (d7a30a3) to head (e38c38a).

Files with missing lines Patch % Lines
src/graphql/statistics.rs 7.89% 35 Missing ⚠️
src/graphql/slicing.rs 0.00% 19 Missing ⚠️
src/graphql/model.rs 0.00% 16 Missing ⚠️
src/graphql/cluster.rs 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #348      +/-   ##
==========================================
- Coverage   68.48%   68.36%   -0.12%     
==========================================
  Files          67       67              
  Lines       13560    13595      +35     
==========================================
+ Hits         9286     9294       +8     
- Misses       4274     4301      +27     

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

@sehkone sehkone merged commit 08f548f into main Nov 2, 2024
8 of 10 checks passed
@sehkone sehkone deleted the slicing-indexed-key branch November 2, 2024 07:20
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.

2 participants