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

Improve Batch Set error lil bit #297

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Improve Batch Set error lil bit #297

merged 1 commit into from
Oct 25, 2024

Conversation

DZakh
Copy link
Member

@DZakh DZakh commented Oct 25, 2024

It became:
image

Instead of:
image

Still not perfect, but much better than before.

I think after the rescript-schema v9 release, we'll be able to improve it even more. It'll allow run serializing with type validation, so if we catch this null constraint error from pg, we can run the serializing with type validation and get the index of the entity where it fails. If we include it in the error, it should definitely help with debugging. Unfortunately adding the event id is difficult here.

@DZakh
Copy link
Member Author

DZakh commented Oct 25, 2024

Fixes #283

Copy link
Collaborator

@JonoPrest JonoPrest left a comment

Choose a reason for hiding this comment

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

Awesome thank you! Much better error for sure 👍🏼

@DZakh DZakh merged commit e9b03a0 into main Oct 25, 2024
1 check passed
@DZakh DZakh deleted the dz/improve-batch-set-lil-bit branch October 25, 2024 13:16
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