-
Notifications
You must be signed in to change notification settings - Fork 259
fix(document): serialize @cache directives #1058
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1058 +/- ##
==========================================
- Coverage 88.39% 88.38% -0.01%
==========================================
Files 99 99
Lines 10721 10712 -9
==========================================
- Hits 9477 9468 -9
Misses 1244 1244 ☔ View full report in Codecov by Sentry. |
This is all ready now. Should be a quick merge. |
Co-authored-by: Kiryl Mialeshka <[email protected]>
the previous behaviour was to apply type-level cache directives to fields at import time. this means that identity checks fail when type-level cache directives are used. this commit moves the type-to-field propagation logic to blueprint logic instead of config logic.
Pushed a new commit that fixes the identity fail of type-level cache directives, and adds a test for it. Should be good to go 👍🏻 |
Great work, thanks for the fix! |
Summary:
@cache
directives are not serialized when callingconfig.to_sdl()
. This PR adds logic tointo_document.rs
to fix this.Build & Testing:
cargo test
successfully../lint.sh --mode=fix
to fix all linting issues raised by./lint.sh --mode=check
.Checklist:
<type>(<optional scope>): <title>