wallanpsantos/ms-product-catalog
72.1
Strong · 22 September 2026
2.6k
lines of production code
Java
primary language
6
measurements over time
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 watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 76 → 72 (-3.8)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 99 → 99 (-0.2)
- Architecture 100 → 79 (-21.2)
- Maturity 69 → 69 (+0.0)
- Readiness 76 → 73 (-3.1)
- Security 75 → 72 (-2.9)
- Domain Modelling 100 → 77 (-22.9)
Resolved (11)
- Coverage not included — suite not readable by the collector
- Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
- Duplicated block (12 lines × 3) (src/main/java/com/example/catalog/application/usecase/DefaultGetProductByIdUseCase.java)
- Duplicated block (7 lines × 2) (src/main/java/com/example/catalog/application/usecase/DefaultCreateProductBatchUseCase.java)
- Duplicated block (7 lines × 2) (src/main/java/com/example/catalog/application/usecase/DefaultUpdateProductBatchUseCase.java)
- Duplicated block (8 lines × 2) (src/main/java/com/example/catalog/infrastructure/adapter/output/gateway/ProductJpaCommandAdapter.java)
- No exposed public API
- Test reliability not included
- The CQS/CQRS guide is a standalone reference that is not linked from the main README, so readers must navigate to it separately. (docs/referencias/PATTERNS_CQS_CQRS.md)
- change coupling unreadable for .java — no production change history could be paired for this repository's own source
- single-maintainer — knowledge-concentration (bus factor) risk
New (40)
- Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
- Duplicated block (12 lines × 3) (src/main/java/com/example/catalog/application/usecase/DefaultGetProductByIdUseCase.java)
- Duplicated block (7 lines × 2) (src/main/java/com/example/catalog/application/usecase/DefaultCreateProductBatchUseCase.java)
- Duplicated block (7–9 lines × 2) (src/main/java/com/example/catalog/application/usecase/DefaultUpdateProductBatchUseCase.java)
- Duplicated block (8 lines × 2) (src/main/java/com/example/catalog/infrastructure/adapter/output/gateway/ProductJpaCommandAdapter.java)
- High IaC: WD-COMPOSE-0002 (compose.yml)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- Medium IaC: WD-COMPOSE-0002 (compose.yml)
- …and 20 more
Written by watchdog.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 22 September 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.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-821afab8930d.