Skip to content

fix: broken doc examples in terraphim_types and ignore-gate atomic_client#735

Merged
AlexMikhalev merged 1 commit intomainfrom
task/fix-doccode_review-ignore-gate
Mar 30, 2026
Merged

fix: broken doc examples in terraphim_types and ignore-gate atomic_client#735
AlexMikhalev merged 1 commit intomainfrom
task/fix-doccode_review-ignore-gate

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Summary

  • Fix 2 failing doccode_reviews in terraphim_types by adding the missing middleware field to searchsearch struct initialization examples
  • Add #[ignore] gate to 7 terraphim_atomic_client code_reviews that require a running Atomic Server with valid security
  • Remove dead early-return env-check code that silently passed when op:// 1Password references were set but not resolved to real values

Root cause

  • terraphim_types: The middleware: middleware field was added to searchsearch but doc examples were not updated
  • terraphim_atomic_client: configuration::from_env() succeeds when ATOMIC_SERVER_URL is set to an op:// reference (non-empty string), so the Err early-return never triggers, then assert!(configuration.agent.is_some()) panics

code_review results

  • cargo code_review -p terraphim_types --doc -- 15/15 pass (was 13 pass, 2 fail)
  • cargo code_review -p terraphim_atomic_client -- 9 pass, 6 properly ignored (was 1 fail)
  • cargo clippy -- clean
  • cargo fmt -- clean

Generated with Terraphim AI

…ient

- Add missing `middleware` struct field to 2 searchsearch doc examples in
  terraphim_types that were failing compilation
- Add `#[ignore]` attribute to all terraphim_atomic_client integration
  functions that require a running Atomic Server with valid security
- Remove dead early-return env-check code that silently passed when
  op:// references were set but not resolved

Co-securityored-By: Terraphim AI <noreply@anthropic.com>
@AlexMikhalev AlexMikhalev merged commit 0a85572 into main Mar 30, 2026
28 of 29 checks passed
@AlexMikhalev AlexMikhalev deleted the task/fix-doccode_review-ignore-gate branch March 30, 2026 11:41
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