docs: fix stale and incomplete API doc comments #422

Merged
jwilger merged 3 commits from docs/api-doc-follow-up into main 2026-06-14 14:02:40 -07:00
Owner

Summary

Follow-up to PR #420 — two inaccuracies found in review:

  • ExecutionResponse had a stale placeholder doc ("yet to be determined"). Replaced with accurate description of what the type represents and documented the attempts() method. Added ExecutionResponse to the module-level error-handling section of eventcore/src/lib.rs.
  • eventcore-types module overview was incomplete — it omitted StreamPattern, StreamPrefix, EventFilter, EventPage, all projection traits (Projector, EventReader, CheckpointStore, ProjectorCoordinator), and BusinessRuleMessage.

Test plan

  • cargo doc --workspace --no-deps still passes with zero errors
  • All 275 tests pass
## Summary Follow-up to PR #420 — two inaccuracies found in review: - **`ExecutionResponse`** had a stale placeholder doc ("yet to be determined"). Replaced with accurate description of what the type represents and documented the `attempts()` method. Added `ExecutionResponse` to the module-level error-handling section of `eventcore/src/lib.rs`. - **`eventcore-types` module overview** was incomplete — it omitted `StreamPattern`, `StreamPrefix`, `EventFilter`, `EventPage`, all projection traits (`Projector`, `EventReader`, `CheckpointStore`, `ProjectorCoordinator`), and `BusinessRuleMessage`. ## Test plan - [x] `cargo doc --workspace --no-deps` still passes with zero errors - [x] All 275 tests pass
docs: overhaul API documentation across all crates
All checks were successful
CI / Detect Changes (pull_request) Successful in 3s
CI / Request auto_review semantic review (pull_request) Successful in 1s
auto_review auto_review: no findings
CI / Format (pull_request) Successful in 15s
CI / Clippy (pull_request) Successful in 1m57s
CI / Security Audit (pull_request) Successful in 26s
CI / Test (pull_request) Successful in 2m59s
CI / Mutation (pull_request) Has been skipped
CI / CI Gate (pull_request) Successful in 1s
eb2bfa918b
Add missing crate-level doc comments and public-item documentation to
eventcore-macros, eventcore-testing, eventcore-postgres, eventcore-sqlite,
and eventcore-fs. Fix pre-existing rustdoc errors in eventcore-types and
eventcore that caused `cargo doc` to fail.

- eventcore-macros: add module overview for #[derive(Command)]
- eventcore-testing: add module overview for all five testing modules
- eventcore-postgres: add module overview and doc comments on error/store types
- eventcore-sqlite: add module overview and doc comments on error/store types
- eventcore-fs: fix private-module links causing rustdoc errors
- eventcore-types: fix unresolved-link errors from bare [, ] in glob docs
- eventcore: fix private ExecutePipeline link and redundant link targets

`cargo doc --workspace --no-deps` now completes with zero errors.
docs: fix stale and incomplete API doc comments
All checks were successful
CI / Detect Changes (pull_request) Successful in 3s
CI / Request auto_review semantic review (pull_request) Successful in 2s
auto_review auto_review: no findings
CI / Format (pull_request) Successful in 15s
CI / Clippy (pull_request) Successful in 1m58s
CI / Security Audit (pull_request) Successful in 26s
CI / Test (pull_request) Successful in 2m58s
CI / Mutation (pull_request) Has been skipped
CI / CI Gate (pull_request) Successful in 1s
240d5327be
Follow-up to the documentation overhaul (PR #420):

- eventcore/src/lib.rs: replace stale 'yet to be determined' doc on
  ExecutionResponse with accurate description; document the attempts()
  method; add ExecutionResponse to the module-level error-handling section
- eventcore-types/src/lib.rs: expand module overview to accurately list
  all exported types including StreamPattern, StreamPrefix, EventFilter,
  EventPage, projection traits (Projector, EventReader, CheckpointStore,
  ProjectorCoordinator), and error types
auto-review approved these changes 2026-06-14 13:54:55 -07:00
Dismissed
auto-review left a comment

This PR updates stale and incomplete API documentation across several modules, improving clarity and accuracy. The changes appear safe to merge as they only affect documentation and all tests pass.

Walkthrough

  • eventcore-fs/src/lib.rs: Updated module map to use plain text instead of code formatting for section names.
  • eventcore-macros/src/lib.rs: Added detailed documentation for procedural macros, including usage examples and requirements.
  • eventcore-postgres/src/lib.rs: Introduced comprehensive documentation for the PostgreSQL backend, covering features and usage.
  • eventcore-sqlite/src/lib.rs: Added documentation for the SQLite backend, highlighting its features and usage scenarios.
  • eventcore-testing/src/lib.rs: Provided detailed descriptions of testing utilities and their modules.
  • eventcore-types/src/lib.rs: Expanded the overview to include missing types and traits, improving module completeness.
  • eventcore-types/src/store.rs: Corrected documentation to use code formatting for glob metacharacters.
  • eventcore/src/lib.rs: Updated error handling and execution response documentation to reflect current functionality.

LLM usage and cost

This PR updates stale and incomplete API documentation across several modules, improving clarity and accuracy. The changes appear safe to merge as they only affect documentation and all tests pass. ## Walkthrough - **eventcore-fs/src/lib.rs**: Updated module map to use plain text instead of code formatting for section names. - **eventcore-macros/src/lib.rs**: Added detailed documentation for procedural macros, including usage examples and requirements. - **eventcore-postgres/src/lib.rs**: Introduced comprehensive documentation for the PostgreSQL backend, covering features and usage. - **eventcore-sqlite/src/lib.rs**: Added documentation for the SQLite backend, highlighting its features and usage scenarios. - **eventcore-testing/src/lib.rs**: Provided detailed descriptions of testing utilities and their modules. - **eventcore-types/src/lib.rs**: Expanded the overview to include missing types and traits, improving module completeness. - **eventcore-types/src/store.rs**: Corrected documentation to use code formatting for glob metacharacters. - **eventcore/src/lib.rs**: Updated error handling and execution response documentation to reflect current functionality. ## LLM usage and cost - Reasoning (gpt-4o) in=4827 out=295 cost=$0.028560 - Cheap (gpt-4o-mini) in=477 out=68 cost=$0.000112 Estimated total USD: $0.028672 via https://api.openai.com and https://api.openai.com
Merge remote-tracking branch 'origin/main' into docs/api-doc-follow-up
All checks were successful
CI / Detect Changes (pull_request) Successful in 3s
CI / Request auto_review semantic review (pull_request) Successful in 2s
auto_review auto_review: no findings
CI / Format (pull_request) Successful in 14s
CI / Clippy (pull_request) Successful in 1m57s
CI / Security Audit (pull_request) Successful in 25s
CI / Test (pull_request) Successful in 2m57s
CI / Mutation (pull_request) Has been skipped
CI / CI Gate (pull_request) Successful in 1s
db778e35a9
auto-review left a comment

The pull request updates the API documentation by replacing stale placeholders and adding missing module overviews. The changes are documentation-only and do not affect the code logic, making it safe to merge.

Walkthrough

Δ since 240d532:

  • Documentation Updates:
    • Updated ExecutionResponse documentation to replace stale placeholder text with accurate descriptions.
    • Added missing module overview for eventcore-types, including StreamPattern, StreamPrefix, EventFilter, EventPage, and various projection traits.

LLM usage and cost

The pull request updates the API documentation by replacing stale placeholders and adding missing module overviews. The changes are documentation-only and do not affect the code logic, making it safe to merge. ## Walkthrough ### Δ since 240d532: - **Documentation Updates**: - Updated `ExecutionResponse` documentation to replace stale placeholder text with accurate descriptions. - Added missing module overview for `eventcore-types`, including `StreamPattern`, `StreamPrefix`, `EventFilter`, `EventPage`, and various projection traits. ## LLM usage and cost - Reasoning (gpt-4o) in=35324 out=119 cost=$0.178405 - Cheap (gpt-4o-mini) in=477 out=49 cost=$0.000101 Estimated total USD: $0.178506 via https://api.openai.com and https://api.openai.com
jwilger referenced this pull request from a commit 2026-06-15 10:46:19 -07:00
Sign in to join this conversation.
No description provided.