Repository navigation
Conversation
Categories are async iterable only, stream/category accessors return EventStream/EventCategory, and publish docstrings now describe conditions, return values and UnmetWriteConditionError.
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the event-store API documentation updates.
No open issues 🎉
What changed in this PR
Corrects event-store API docstrings to match existing behavior. All changes are documentation-only; runtime behavior is unchanged.
Changes:
- Clarifies that categories support asynchronous iteration.
- Identifies accessor return values as
EventStreamorEventCategory. - Documents publish arguments, return values, and write-condition failure guarantees.
| File | Description |
|---|---|
src/logicblocks/event/store/store.py |
Corrects iteration and accessor documentation and expands publish-method docstrings. |
Review effort: Balanced
Describe what state ProjectionEventProcessor actually passes, replace the 'reserved name' claim with the real handler-name clash behaviour, and link ProfileProjector back to the basic example.
Print the projected state inside main(), drop the easily misread projection-metadata type argument, explain structlog output and how to quieten it, and tidy formatting.
3 tasks
Contributor
Author
|
Closed in favour of #148, which combines the whole docs stack into one PR. |
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
Three commits, all docs-only:
store/store.py)README.md)README.md)Evidence
iter(category)works and accessors return "an event store"; README example prints nothing and logs to stdout.After:
All-or-nothing category publish is covered by the shared adapter tests
test_category_save_raises_if_any_*_condition_fails.ruff checkandruff format --checkpass onstore.pyand the README code blocks.Merge Danger
Door: two-way
Blast Radius: none
Docstrings and README only; no runtime change.
docs-starlight-sitewill need its Getting started / Finalising state pages updated on rebase, with the#basic-examplelink becoming../../getting-started/.