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

Refactor torii graphql object traits #1446

Merged
merged 3 commits into from
Jan 25, 2024
Merged

Conversation

broody
Copy link
Collaborator

@broody broody commented Jan 16, 2024

The ObjectTrait was used for both resolvable (Transaction, Entity, etc) and not resolvable (PageInfo, Connection, etc) graphql objects. This PR refactors it into BasicObject and ResolvableObject and reduces some code duplication for resolvers.

@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (745a190) 68.49% compared to head (fe1d226) 68.68%.
Report is 2 commits behind head on main.

Files Patch % Lines
...s/torii/graphql/src/object/connection/page_info.rs 50.00% 1 Missing ⚠️
crates/torii/graphql/src/object/mod.rs 99.00% 1 Missing ⚠️
crates/torii/graphql/src/schema.rs 97.87% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1446      +/-   ##
==========================================
+ Coverage   68.49%   68.68%   +0.18%     
==========================================
  Files         220      220              
  Lines       21714    21593     -121     
==========================================
- Hits        14874    14831      -43     
+ Misses       6840     6762      -78     

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

@broody broody force-pushed the refactor-gql-object-trait branch from 12572d6 to fe1d226 Compare January 18, 2024 05:19
@tarrencev tarrencev merged commit 795ac75 into main Jan 25, 2024
10 checks passed
@tarrencev tarrencev deleted the refactor-gql-object-trait branch January 25, 2024 15:32
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.

3 participants