feat(records): sync endpoint#2681
Closed
andersfylling wants to merge 4 commits into
Closed
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2681 +/- ##
==========================================
- Coverage 93.70% 93.68% -0.02%
==========================================
Files 503 503
Lines 50699 50883 +184
==========================================
+ Hits 47505 47669 +164
- Misses 3194 3214 +20
🚀 New features to boost your workflow:
|
ccfe0ed to
e10190c
Compare
c2345e4 to
4d5cba9
Compare
e10190c to
712d288
Compare
4d5cba9 to
c8a59f7
Compare
eeb284f to
4f3a737
Compare
8c15fa3 to
5e3c8d3
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Separate initial sync from cursor-based continuation while sharing the request assembly and pagination through the internal _sync helper. Co-authored-by: Cursor <cursoragent@cursor.com>
Deep-copy record property payloads when dumping so load/dump round-trip tests and callers cannot mutate the source instance through the returned dictionary. Co-authored-by: Cursor <cursoragent@cursor.com>
Match the lowest read limit documented for Records by keeping the SDK's concurrent read requests capped at 4. Co-authored-by: Cursor <cursoragent@cursor.com>
f1b2f17 to
ad587bc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See https://docs.cognite.com/20230101/records/sync-records-from-a-stream
Since we don't have hierarchical rate limiting I've chosen a number that doesn't cause issue for any configuration: https://docs.cognite.com/api-reference/concepts/20230101/rate-limits#records-request-budgets-detailed-tables