Skip to content
CAI
Software that uses CAICheck a score

wallanpsantos/ms-product-catalog

65.9

Adequate · 10 November 2026

2.6k

lines of production code

Java

primary language

9

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a product catalog service built on a hexagonal architecture with a CQRS-lite pattern, now persisted in PostgreSQL instead of MongoDB. It manages product lifecycles including creation, updates, deactivation, and search, with a domain layer that is decoupled from the underlying database technology. The codebase enforces architectural rules and includes comprehensive test coverage across unit, integration, and end-to-end scenarios.

Behavioural changes

Gradle wrapper updated to version 9.4.1

The Gradle wrapper has been upgraded from version 9.3.1 to 9.4.1, ensuring that the project uses the specified stable distribution for builds.

gradle · high confidence

Migrated persistence layer from MongoDB to PostgreSQL

The application's persistence layer has been migrated from MongoDB to PostgreSQL. This involves replacing the previous MongoDB-specific adapters (ProductMongoQueryAdapter, ProductMongoCommandAdapter) with new JPA-based implementations (ProductJpaQueryAdapter, ProductJpaCommandAdapter) and corresponding JPA entities and repositories. The domain layer was updated to use Java's \Instant\ instead of \LocalDateTime\ for timestamps, and the pagination mechanism was decoupled from Spring Data's \Pageable\/\Page\ in favor of domain-specific \Pagination\ and \SearchQuery\ records to ensure the core domain remains independent of the underlying database technology.

src/main · high confidence

Test coverage

Added architecture and unit test coverage for the catalog module; Added end-to-end tests for the product API; Added tests for ProductJpaEntity and its repository; Added tests for product JPA adapters; Added unit and integration tests for catalog application use cases; Added unit tests for domain validation and product logic; Configures Testcontainers for local Windows development; Updated test infrastructure to use PostgreSQL instead of MongoDB.

Dependencies

Upgrades to Spring Boot, Testcontainers, and build tooling

The project upgrades Spring Boot from version 4.0.3 to 4.0.5 and Testcontainers from 1.21.4 to 2.0.5. The Java toolchain target is raised from 21 to 25. The database dependency shifts from MongoDB to PostgreSQL (using spring-boot-starter-data-jpa and the PostgreSQL driver). Test dependencies are updated to use testcontainers for PostgreSQL and Kafka, and the JUnit platform is explicitly configured. Additionally, the build configuration enables Gradle's configuration cache, parallel execution, and daemon, while adding SonarQube integration and specific JaCoCo coverage exclusions.

(dependencies) · medium confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 63 → 66 (+3.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 75 → 75 (+0.0)
  • Architecture 87 → 87 (-0.3)
  • Maturity 61 → 70 (+9.3)
  • Readiness 56 → 57 (+0.3)
  • Security 72 → 78 (+6.0)
  • Domain Modelling 77 → 77 (+0.0)

Resolved (7)

  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
  • High secret: WD-SECRET-0005 (compose.yml)
  • High secret: WD-SECRET-0005 (compose.yml)
  • High secret: WD-SECRET-0005 (compose.yml)
  • Leaked secret: hardcoded-credential (compose.yml)
  • Leaked secret: hardcoded-credential (compose.yml)
  • Rotate the exposed credentials — git history can't be un-committed

New (231)

  • Outdated (compile): biz.aQute.bnd:biz.aQute.bnd.annotation
  • Outdated (compile): ch.qos.logback:logback-classic
  • Outdated (compile): ch.qos.logback:logback-core
  • Outdated (compile): com.fasterxml.jackson.core:jackson-annotations
  • Outdated (compile): com.fasterxml.jackson.core:jackson-core
  • Outdated (compile): com.fasterxml.jackson.core:jackson-databind
  • Outdated (compile): com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
  • Outdated (compile): com.fasterxml.jackson.datatype:jackson-datatype-jsr310
  • Outdated (compile): com.fasterxml.jackson:jackson-bom
  • Outdated (compile): com.fasterxml:classmate
  • Outdated (compile): com.github.jknack:handlebars
  • Outdated (compile): com.google.code.gson:gson
  • Outdated (compile): com.google.errorprone:error_prone_annotations
  • Outdated (compile): com.google.guava:guava
  • Outdated (compile): com.ibm.icu:icu4j
  • Outdated (compile): com.jayway.jsonpath:json-path
  • Outdated (compile): com.sun.istack:istack-commons-runtime
  • Outdated (compile): com.tngtech.archunit:archunit
  • Outdated (compile): com.tngtech.archunit:archunit-junit5
  • Outdated (compile): com.tngtech.archunit:archunit-junit5-api
  • …and 211 more

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

wallanpsantos/ms-product-catalog was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 10 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit b298b01c15adff097d96027b9e1a08ec26b5e470 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.4+preprod-464a0040a931.