php-agentic/tests
darbs-claude 909c2da6df
Some checks failed
CI / PHP 8.4 (pull_request) Failing after 1m48s
CI / PHP 8.3 (pull_request) Failing after 2m0s
perf: replace N+1 find() with whereIn batch lookup in checkDependencies()
Resolves #23

- Replace per-dependency `AgentPhase::find()` loop with a single
  `AgentPhase::whereIn('id', $dependencies)->get()` call, reducing
  query count from N to 1 for any number of dependencies
- Short-circuit early when dependencies list is empty to avoid
  unnecessary query at all
- Add tests: empty deps, skipped-dep passthrough, single-query
  assertion, blocker shape validation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 10:40:00 +00:00
..
Feature perf: replace N+1 find() with whereIn batch lookup in checkDependencies() 2026-02-23 10:40:00 +00:00
Fixtures test: add Livewire component tests for all 12 admin components 2026-02-23 01:16:33 +00:00
Unit fix: use closure-based __get for mock property access 2026-02-23 07:02:04 +00:00
UseCase chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
views test: add Livewire component tests for all 12 admin components 2026-02-23 01:16:33 +00:00
Pest.php refactor(tests): convert AgentApiKey tests to Pest functional syntax 2026-01-29 18:42:56 +00:00
TestCase.php test: fix TestCase to use Orchestra Testbench for CI 2026-02-23 06:18:30 +00:00