feat(postgres): replace CouchDB with PostgreSQL - #294
Open
rramos-xx wants to merge 1 commit into
Open
Conversation
Contributor
Test Results349 tests +10 349 ✅ +10 40s ⏱️ -6s Results for commit 324d71f. ± Comparison against base commit 4a4c55a. This pull request removes 6 and adds 16 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Contributor
|
rramos-xx
requested review from
DevPhilB,
bendo-eXX,
domachine and
rainer-exxcellent
September 1, 2026 15:15
rramos-xx
force-pushed
the
feat/couchdb-to-postgres-migration
branch
from
September 5, 2026 09:58
18dc637 to
cc4f10a
Compare
Contributor
|
Replaces the CouchDB datastore with PostgreSQL, accessed via Spring Data JPA with Flyway-managed schema migrations. - Schema: one table per former CouchDB document type (advisories, advisory_versions, comments, audit_trail_documents, audit_trail_workflows, audit_trail_comments, counters), with the CSAF document itself kept as a JSONB column (src/main/resources/db/migration/V1__initial_schema.sql) - Entities: one JPA entity per table - Repositories: one Spring Data repository per entity, wrapped by PostgresRepositoryService - Service layer: AdvisoryService rewritten against PostgresRepositoryService; CouchDB Mango-selector building in AdvisorySearchUtil was removed in favor of in-application CSAF JSON filter evaluation in AdvisoryService, and AdvisoryWorkflowUtil had its now-unused CouchDB-querying methods removed - Configuration: Flyway owns the schema, Hibernate runs validation-only - Tests: data-layer tests now run against a disposable PostgreSQL testcontainer (PostgreSQLExtension) instead of a CouchDB one - Cleanup: removed CouchDbService, CouchDBFilterCreator and the CouchDB test extension; dependency swapped from the Cloudant SDK to spring-boot-starter-data-jpa, the PostgreSQL driver and Flyway See documents/couchdb-to-postgres-migration.md for the full write-up.
rramos-xx
force-pushed
the
feat/couchdb-to-postgres-migration
branch
from
September 8, 2026 13:19
cc4f10a to
324d71f
Compare
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the CouchDB datastore with PostgreSQL, accessed via Spring Data JPA with Flyway-managed schema migrations.
See documents/couchdb-to-postgres-migration.md for the full write-up.