Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of NULL caveats in Postgres watch #1668

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

josephschorr
Copy link
Member

Normally, the Postgres driver sets the caveat name column to empty string when no caveat is present. However, the field IS nullable and bulk import can set it to a NULL instead.

The watch API code therefore needs to support this scenario

Normally, the Postgres driver sets the caveat name column to empty string when no caveat is present. However, the field IS nullable and bulk import can set it to a NULL instead.

The watch API code therefore needs to support this scenario
@josephschorr josephschorr requested review from vroldanbet and a team November 30, 2023 21:05
@github-actions github-actions bot added area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Nov 30, 2023
@vroldanbet vroldanbet added this pull request to the merge queue Dec 1, 2023
Merged via the queue into authzed:main with commit ada2eca Dec 1, 2023
20 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2023
@josephschorr josephschorr deleted the pg-null-caveat branch December 1, 2023 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants