Conversation
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.
Employees can draft and submit GBP expenses; managers can approve or reject submitted requests. The API derives ownership from demo bearer-token identities, prevents self-decisions, and requires an expected version on each write. Spring transactions and JPA
@Versionensure competing edits or decisions produce one commit and one HTTP 409.Flyway uses an explicit migration entry point and schema-owner credential. Runtime validates the schema, uses restricted CRUD privileges, and verifies the Cloud CA and hostname. The README shows visible Cloud setup, role/bootstrap/migration/grants/seed steps, HTTP usage and dedicated-service cleanup. CI checks the Java 21 build and domain tests without Cloud credentials.
Validation on 2 October 2026, native Ubuntu VM, Spring Boot 4.1.1 and Postgres 18.6 in ClickHouse Cloud:
./mvnw -B verify: 4 domain tests passed and packaged jar built../mvnw -B -Pcloud verify: 5 Cloud tests passed, including a barrier-coordinated JPA race, rollback after flush, runtime permission denials, malformed decision rows, and wrong-CA certificate failure with positive connection control.python3 scripts/acceptance.py: validation/forged-owner rejection, cross-user access, status filtering, role and self-decision checks passed. Three edit/submit and three manager-decision races each returned one 200 and one 409. Production jar restart retained the persisted request and version.Bounded demo: GBP only, at most 100 visible rows, no pagination, audit events, payments or token-issuance service. Companion article and private evidence remain outside this PR.