feat(policy): add immutable versioned product policy store

This commit is contained in:
shira committed 2026-10-06 01:52:39 +03:00
1 parent 0e2a3b02ab
commit 7a5105acc7
30 files changed
+3893 -37

No files matched your search

@@ -18,3 +18,11 @@ func TransactionForIntegrationTest(unit outbound.UnitOfWork) (pgx.Tx, bool) {
}
return postgresUnit.tx, true
}
// MapPolicyErrorForIntegrationTest applies the policy error mapping to an
// error from a raw statement, so integration tests can prove that the
// database refusal of a policy change becomes the port sentinel. It is
// compiled only with the integration build tag.
func MapPolicyErrorForIntegrationTest(err error) error {
return mapPolicyError(err)
}