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

Use IS NOT DISTINCT FROM for comparing rule eval status on upsert #799

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Aug 30, 2023

This fixes the upsert by using the IS NOT DISTINCT FROM postgres construct
when evaluating the conflict in the upsert call.

Closes: #798
Co-Authored-By: Jakub Hrozek jakub@stacklok.com

This fixes the upsert by using the `IS NOT DISTINCT FROM` postgres construct
when evaluating the conflict in the upsert call.

Closes: #798
Co-Authored-By: Jakub Hrozek <jakub@stacklok.com>
@JAORMX JAORMX requested a review from jhrozek August 30, 2023 12:44
@jhrozek
Copy link
Contributor

jhrozek commented Aug 30, 2023

We verified on a pair session that this fixes non-artifact rows where artifact_id is NULL, I'm going to test artifacts too.

Copy link
Contributor

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also verified on a pairing session that this doesn't break updating artifacts.

@jhrozek jhrozek merged commit 06a1729 into main Aug 30, 2023
13 checks passed
@jhrozek jhrozek deleted the fix-upsert branch August 30, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webhook no longer updates repository information
2 participants