• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agnaldo4j / kanban_vision_api_iex / d4581f974f60ac8fa59d3afe40d0bae8724d2dc0
88%

Build:
DEFAULT BRANCH: main
Ran 15 Feb 2026 05:14PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Feb 2026 05:13PM UTC coverage: 93.162% (+0.1%) from 93.013%
d4581f974f60ac8fa59d3afe40d0bae8724d2dc0

push

github

web-flow
Refactor: Apply best practices across domain, ports, and use cases (#12)

* Refactor: Implement explicit Use Cases with observability and validation

This commit applies architectural improvements to align with Platform
Engineering Standards and Clean Architecture principles.

- Created 8 dedicated Use Case modules (one per operation)
- Organizations: CreateOrganization, DeleteOrganization, GetOrganizationById,
  GetOrganizationByName, GetAllOrganizations
- Simulations: CreateSimulation, GetAllSimulations, GetSimulationByOrgAndName
- GenServers now only orchestrate; business logic moved to Use Cases

- Added structured logging with correlation_id to all Use Cases
- INFO logs for mutations (create, delete)
- DEBUG logs for queries
- ERROR logs for failures
- Telemetry events emitted after mutations: :organization_created,
  :organization_deleted, :simulation_created

- Commands/Queries now use factory functions with validation
- @enforce_keys for required fields
- Type and size validation in new/N functions
- Returns {:ok, cmd} | {:error, :invalid_*}

- Added OrganizationRepositoryContractTest
- Added SimulationRepositoryContractTest
- Verify Agents correctly implement Port behaviours
- Tagged with @integration (excluded by default)

- All tests adapted to use factory functions
- Added validation tests for Commands/Queries
- All tests passing (39 tests, 0 failures)

- README completely rewritten with new architecture
- Added "Architecture Evolution" section documenting changes
- Updated project structure showing Use Case modules
- Added Key Design Decisions section

- New: 8 Use Case modules in usecase/organizations/ and usecase/simulations/
- New: 2 contract test files
- New: docs/skills/definition-of-done.md
- Modified: Commands/Queries with validation
- Modified: GenServers to delegate to Use Cases
- Modified: All tests to use factory functions
- Modified: README with complete architecture update
- Modified: CLAUDE.md with additional standards

- 0 ... (continued)

218 of 234 relevant lines covered (93.16%)

3.1 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
78.57
-2.68% apps/usecase/lib/kanban_vision_api/usecase/organizations/delete_organization.ex
4
78.95
-2.01% apps/usecase/lib/kanban_vision_api/usecase/simulations/create_simulation.ex
Jobs
ID Job ID Ran Files Coverage
1 d4581f974f60ac8fa59d3afe40d0bae8724d2dc0.1 15 Feb 2026 05:14PM UTC 21
93.16
GitHub Action Run
Source Files on build d4581f974f60ac8fa59d3afe40d0bae8724d2dc0
  • Tree
  • List 21
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d4581f97 on github
  • Prev Build on main (#AF23E3D1...)
  • Next Build on main (#3EA7CA7F...)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc