-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
debounce schema change events to fix codegen bugs #3647
Conversation
🦋 Changeset detectedLatest commit: 1930fb5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
ed89b00
to
7313ff7
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3647 +/- ##
==========================================
+ Coverage 60.80% 60.86% +0.06%
==========================================
Files 120 120
Lines 5620 5621 +1
Branches 1489 1492 +3
==========================================
+ Hits 3417 3421 +4
+ Misses 1750 1748 -2
+ Partials 453 452 -1
|
7313ff7
to
b21282e
Compare
on mass file changes, network schema is requesting schema way too frequently because the schema cache is invalidated on every schema file change to address this, we debounce the onSchemaChange event by 400ms also, fix bugs with tests, and schemaCacheTTL setting not being passed to the cache
b21282e
to
af3102a
Compare
The latest changes of this PR are available as canary in npm (based on the declared |
c484615
to
4b3abcc
Compare
4b3abcc
to
1ef543d
Compare
fd39c2c
to
ae40378
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
capitalized some acronyms, for consistency and clarity
thanks @TallTed! Co-authored-by: Ted Thibodeau Jr <[email protected]>
* debounce schema change events to fix codegen bugs on mass file changes, network schema is requesting schema way too frequently because the schema cache is invalidated on every schema file change to address this, we debounce the onSchemaChange event by 400ms also, fix bugs with tests, and schemaCacheTTL setting not being passed to the cache * changeset * fix: docs update * fix: upgrade extension bundlers * Apply formatting suggestions from code review thanks @TallTed! Co-authored-by: Ted Thibodeau Jr <[email protected]>
on mass file changes, network schema is requesting schema way too frequently because the schema cache is invalidated on every schema file change
to address this, we debounce the onSchemaChange event by 400ms
also, fix bugs with tests, and schemaCacheTTL setting not being passed to the cache
This also includes an integration test to confirm schema changes over the network! 🥳
this should address #3622 properly