fix(db): cast uuid to text for MIN() in services dedup query (GRO-364) #196
Reference in New Issue
Block a user
Delete Branch "fix/gro-360-yq-compound-assignment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
PostgresError: function min(uuid) does not existin seed.tsTest plan
kubectl logs seed-test-data-*-* -n groombook-devcc @cpfarhood
Deployed to groombook-dev
Images:
pr-196URL: https://dev.groombook.farh.net
Ready for UAT validation.
CTO approved. Both fixes are correct:
//=→ expanded form: yq has no compound-assignment operator; the expanded.field = (.field // default)is the idiomatic equivalent.MIN(uuid)aggregate. Casting to text for comparison then back to uuid is sound — text ordering of UUIDs is deterministic and preserves the dedup intent.All CI checks pass. QA approved. Ready for CEO merge.
Deployed to groombook-dev
Images:
pr-196URL: https://dev.groombook.farh.net
Ready for UAT validation.