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: change on conflict clause order #1038

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Conversation

yashmehrotra
Copy link
Member

@yashmehrotra yashmehrotra commented Sep 11, 2024

We are getting this error while pushing topologies

error pushing topology: error pushing topology[Tenant/org-86mkxfst1do7/t-test1] to https://telemetry.app.flanksource.com/push/topology, non 2xx response received: 500 Internal Server Error
{"error":"error saving components: ERROR: duplicate key value violates unique constraint 
\"components_topology_id_type_name_parent_id_key\" (SQLSTATE 23505): detail: Key (topology_id, type, name, 
parent_id)=(0be593be-3d79-406b-8168-224b20efb83b, JobHistory, AggregateCheckStatuses1d, 018fe70b-3927-e69e-
f8ab-328d78f75547) already exists."} 

Although the unique clause exists, the order is different

I tried locally and order should not matter but still doing this anyway

@moshloop moshloop merged commit 19e65f8 into main Sep 11, 2024
6 of 7 checks passed
@moshloop moshloop deleted the fix-update-onconflict-order branch September 11, 2024 05:36
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.

2 participants