Repository navigation
FEATURE: Support limit in read() for subscription engine 2.0 - #3
Merged
Merged
Conversation
limit in read() for subscription engine 2.0
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.
Summary
read()accepts thelimitof the bounded catch-ups in bwaidelich/subscription-engine#13.wwwision/subscription-engineis now^1 || ^2. The optional parameter is compatible with the 1.x interfaceInMemoryEventStore)minimum-stability: devandprefer-stable: truelet composer-studio link the local core. These settings only apply when this package is the root packageEvidence
read(start: 2, limit: 2)ignores the limit, sotest_read_with_limit_returns_at_most_limit_events_from_start_positionfailsAfter:
OK (3 tests, 3 assertions), against both core 1.4.0 and the 2.0 branchDriving the engine through this adapter on the core branch (5 events,
boot(limit: 2)):This repository has no CI, so these are local runs.
Merge Danger
Door: two-way until tagged
Hold the tag until
read()is final. A released adapter that allows^2would fail with a fatal error if the event filter follow-up changes the signature again.Blast Radius: none
Existing callers don't pass
$limit, soread()behaves as before for them.