Skip to content

Enhance Handling of ERROR_CODE_UNIQUE_CONSTRAINT Error #530

@tolgaozen

Description

@tolgaozen

Permify to handle the ERROR_CODE_UNIQUE_CONSTRAINT error more gracefully. Instead of failing, Permify should proceed to add the relationships and return a new snapshot token. This way, we can maintain the integrity of our process, even in the event of a retry scenario.

This change will avoid the misleading notification to the other system and ensure more consistent and reliable operation.

Metadata

Metadata

Labels

area/databaseIssues related with database configurations

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions