Skip to content

docs: complete the public API reference (ITL-1479) - #584

Merged
eywalker merged 5 commits into
mainfrom
eywalker/itl-1479-docs-complete-the-api-reference-add-an
Nov 28, 2026
Merged

eywalker merged 5 commits into
mainfrom
eywalker/itl-1479-docs-complete-the-api-reference-add-an

Conversation

@eywalker

@eywalker eywalker commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Fixes ITL-1479. This addresses the missing API and command references identified in ITL-1468.

  • Extend the API reference to cover public exports and add an Errors page for Orcapod exceptions and warnings.
  • List the public modules in the API overview and document orcapod warm-cache.
  • Guard coverage with a test that checks public export lists against API directives and reasoned exclusions.
  • from orcapod.types import * now imports only the documented names. Import anything else by name.
  • Mark ExtensionAwareDatabase provisional because closer integration with the underlying database classes may change its public form (ITL-1539).

Verified with the documentation tests, Ruff lint and formatting checks, basedpyright, the changelog check, and the Astro site build.

When PR 594 merges

Apply these edits in whichever of PR #584 and PR #594 lands second. In docs/reference/cli.md, under orcapod warm-cache, replace the entire “Use one hash algorithm per cache” warning with this note.

Cache entries are algorithm-specific. The cache keys entries by path, modification time, byte size, and algorithm. Hashes from several algorithms can coexist in one cache. To warm entries for your pipeline, use its file hash algorithm. The default is sha256.

In the same section, add this sentence after the paragraph that describes the scan and summary.

Outside --dry-run, orcapod warm-cache exits with status 1 if any file ends in an error, including a hash conflict during --force.

Posted by a Codex agent on behalf of @eywalker.

Summary by CodeRabbit

  • Documentation
    • Expanded the API reference to cover database connectors, pipeline tools, streams, sources, operators, types, and additional function pod features.
    • Added an API page describing exceptions and warnings.
    • Documented the orcapod warm-cache command, including options, examples, and usage guidance.
    • Clarified database connector capabilities, including which connectors support writes and which are read-only, and marked ExtensionAwareDatabase as provisional.
  • API Changes
    • Wildcard imports from orcapod.types now include only documented names; import other names explicitly.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The API reference adds coverage for public modules and objects, including errors. A test checks documented exports against module exports. The CLI reference documents orcapod warm-cache, and the changelog records these changes and the explicit wildcard exports from orcapod.types.

Changes: Public API reference

Layer / File(s) Summary
Document public API exports
docs/api/databases.md, docs/api/function-pods.md, docs/api/index.md, docs/api/operators.md, docs/api/pipeline.md, docs/api/sources.md, docs/api/streams.md, docs/api/types.md, site/astro.config.mjs, src/orcapod/databases/extension_aware_database.py, src/orcapod/types/__init__.py, tests/test_docs/test_api_reference.py, changelog.d/ITL-1479.md
The API reference adds entries for public modules, objects, types, and database connectors. The orcapod.types module defines __all__. A test checks documented exports and exclusion reasons. The database documentation and class docstring identify ExtensionAwareDatabase as provisional.
Document errors and warnings
docs/api/errors.md
The new errors page groups exception and warning directives by input and value validation, sources, pipeline execution, databases and connectors, and feature availability.

Warm-cache command documentation

Layer / File(s) Summary
Document the warm-cache command
docs/reference/cli.md, site/astro.config.mjs
The CLI reference describes orcapod warm-cache scanning, reporting, options, cache constraints, and examples. The sidebar links to the CLI reference.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to d8980

This is a documentation and export-list change with no runtime behavior change. The main consumer-visible effect is that wildcard imports from orcapod.types now expose only documented names, and the changelog records this. It looks safe to merge.

Security architecture risk: Minimal · up to d8980

Code that uses wildcard imports from orcapod.types may need to switch to named imports. The reviewed changes do not introduce new database access, cache behavior, or deployment requirements.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The changed library behavior affects the importing Python process's namespace. Publishing references for the existing database wrapper and CLI changes discoverability, but adds no invocation path or authority to reach a database or cache.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "docs: complete the public API reference (ITL-1479)" matches the main change. The PR completes the public API reference, adds an errors page, documents orcapod warm-cache, adds an export-cov…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs: complete the public API reference (ITL-1479)" matches the main change. The PR completes the public API reference, adds an errors page, documents orcapod warm-cache, adds an export-coverage test, and narrows the wildcard import in orcapod.types. The title is concise and uses a conventional commit prefix. It does not mention the code-level change to orcapod.types wildcard exports or the test, but it does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

Note

This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 531a2c8 and d898099.

Files selected for processing: 8

  • changelog.d/ITL-1479.md
  • docs/api/databases.md
  • docs/api/types.md
  • docs/reference/cli.md
  • site/astro.config.mjs
  • src/orcapod/databases/extension_aware_database.py
  • src/orcapod/types/__init__.py
  • tests/test_docs/test_api_reference.py
Files skipped from review as they are similar to previous changes: 3

  • changelog.d/ITL-1479.md
  • docs/api/databases.md
  • docs/api/types.md

Limit details: You’ve used the included review currently available. Your 96 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Recent review details

Context from checks skipped due to timeout: 1

  • GitHub Check: CodeRabbit
Additional context used

Code guidelines: 1

CLAUDE.md — auto-discovered
Path-based instructions: 2

Source excerpt: Every fenced `python` block in `README.md`, `docs/index.md`, `docs/getting-started.md`, `docs/troubleshooting.md`, `docs/concepts/`, `docs/reference/` and `docs/tutorial/` is executed by `tests/test_docs/test_doc_samples.py`...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/reference/cli.md
Use [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) Python docstrings everywhere.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/reference/cli.md
  • site/astro.config.mjs
  • src/orcapod/databases/extension_aware_database.py
  • src/orcapod/types/__init__.py
  • tests/test_docs/test_api_reference.py
Learnings: 1

Common learnings

Learnt from: CR
Repo: metamorphic-labs/orcapod-python

Timestamp: 2026-11-28T02:04:09.424Z
Learning: Source excerpt:
# Claude Code instructions for orcapod-python

## Lint, format and type checks

What runs where (developer, November 16, 2026; ITL-1181):

- New and changed code must be ruff-clean and ruff-formatted, and must add no
  basedpyright errors. Warnings are reported but do not fail the check
  (`failOnWarnings = false`); still do not add them needlessly. Run
  `uv run ruff format .` and `uv run ruff check .` before committing;
  `uv run pre-commit install` once per clone runs both on every commit.
LanguageTool

docs/reference/cli.md

[style] ~20-~20: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 394 characters long)
Context: !!! warning "Use one hash algorithm per cac...

(EN_EXCESSIVE_EXCLAMATION)

Additional comments: 2

docs/reference/cli.md: 2

20-25: Functional Correctness

The concern does not hold for the reviewed head. The cache identity is (path, mtime_ns, size), with no algorithm component. Entries from different hash algorithms can match and replace one another. The current warning in docs/reference/cli.md correctly tells users to use one algorithm per cache and to clear the cache when they change algorithms. The suggested premise that the cache already separates entries by algorithm is contradicted by src/orcapod/hashing/hash_cachers.py:202-208, so the proposed "warning is unnecessary" concern is refuted.

8-8: Functional Correctness

The reference page does not need an exit-status statement for this revision. The command returns the normal exit status after file errors, and the code does not set status 1 for them. The PR assigns the exit-status note to a follow-up that applies only after the related CLI change merges. Adding the note now would document behavior the code does not have.

@eywalker

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

Posted by a Claude Code agent on behalf of @eywalker.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. Your current included review allowance is based on your included PR review attempts over the past 7 days. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 11 minutes.

@eywalker

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

Posted by a Claude Code agent on behalf of @eywalker.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Action performed

Full review finished.

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/orcapod/databases/extension_aware_database.py 93.90% <ø> (ø)
src/orcapod/types/__init__.py 97.07% <100.00%> (+0.01%) ⬆️

... and 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@eywalker

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

The head has moved since your last review. Please review the current head.

Posted by a Claude Code agent on behalf of @eywalker.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@eywalker

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Posted by a Claude Code agent on behalf of @eywalker.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@eywalker
eywalker merged commit 67bc2f5 into main Nov 28, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant