Implement value search queries #32

Merged
JayKobe6k merged 11 commits from issue-14-search-value into main 2026-09-06 00:43:40 +00:00
Owner

Summary

  • add typed value-search filters, scope-aware results, grouping, ordering, and direct producer counts
  • query revision-scoped value definitions and uses through the production LadybugDB adapter
  • collapse the greenfield graph into one complete schema initializer with no migration or backfill path
  • preserve canonical types for operation-backed value uses

Closes #14

Tests

  • nix develop --command cargo fmt --all -- --check
  • nix develop --command cargo lint
  • nix develop --command cargo test --all-targets --all-features (278 passed)
  • nix develop --command cargo doc --no-deps --all-features
  • nix develop --command cargo check --target x86_64-pc-windows-gnu --all-targets --all-features
  • git diff --check
## Summary - add typed value-search filters, scope-aware results, grouping, ordering, and direct producer counts - query revision-scoped value definitions and uses through the production LadybugDB adapter - collapse the greenfield graph into one complete schema initializer with no migration or backfill path - preserve canonical types for operation-backed value uses Closes #14 ## Tests - `nix develop --command cargo fmt --all -- --check` - `nix develop --command cargo lint` - `nix develop --command cargo test --all-targets --all-features` (278 passed) - `nix develop --command cargo doc --no-deps --all-features` - `nix develop --command cargo check --target x86_64-pc-windows-gnu --all-targets --all-features` - `git diff --check`
Extends SearchField with value-only Identifier, SearchRequest and
PreparedSearchPlan with minimum upstream count, and SearchHit with
direct producer counts. Filtering is additive and no-ops when unset,
preserving sibling targets.
Keeps value filter semantics namespaced for concurrent sibling targets.
Maps identifier, translation-unit, function, name, struct regexes and
minimum upstream counts to shared requests with typed option errors.
Documents direct-producer counts and literal handling.
Adds SearchRepositoryPort for LadybugIndexRepository covering value
definitions and uses. Reuses revision-owned lineage queries for distinct
direct producers so origins count zero and literals stay source facts.
Other targets return empty for sibling work.
Remove historical schema labels
All checks were successful
Validate / Formatting, linting, and tests (push) Successful in 3m58s
Validate / Formatting, linting, and tests (pull_request) Successful in 4m0s
742e8339cf
Sign in to join this conversation.
No description provided.