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: api batch with one invalid event could fail all #388

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

dav1do
Copy link
Contributor

@dav1do dav1do commented Jun 18, 2024

Previously, an API insert batch with a single event with invalid ordering could fail the entire set. It's still possible to "over fail" if something goes wrong somewhere (talking to the database or one of the events fails to parse), however both of those seem acceptable as the events are all parsed before being given to us so that should never happen. I'd like to change the signature to take an ceramic_event type in a follow up, but this is some progress in that direction. It builds on #390.

@dav1do dav1do temporarily deployed to github-tests-2024 June 18, 2024 00:16 — with GitHub Actions Inactive
@dav1do dav1do force-pushed the fix/aes-83-iod-long-streams branch from cfea650 to 41778d4 Compare June 18, 2024 16:52
@dav1do dav1do force-pushed the fix/api-batch-error branch from 56fc902 to b1d3f1a Compare June 18, 2024 17:02
@dav1do dav1do temporarily deployed to github-tests-2024 June 18, 2024 17:12 — with GitHub Actions Inactive
@dav1do dav1do force-pushed the fix/aes-83-iod-long-streams branch from 41778d4 to 4fed1e9 Compare June 18, 2024 17:12
@dav1do dav1do force-pushed the fix/api-batch-error branch from b1d3f1a to a7ac586 Compare June 18, 2024 17:13
@dav1do dav1do requested review from nathanielc and stbrody June 18, 2024 17:13
@dav1do dav1do force-pushed the fix/api-batch-error branch from a7ac586 to d29672b Compare June 18, 2024 17:14
@dav1do dav1do temporarily deployed to github-tests-2024 June 18, 2024 17:24 — with GitHub Actions Inactive
@dav1do dav1do force-pushed the fix/api-batch-error branch from d29672b to 6ca3ffc Compare June 18, 2024 19:30
@dav1do dav1do changed the base branch from fix/aes-83-iod-long-streams to main June 18, 2024 19:30
@dav1do dav1do force-pushed the fix/api-batch-error branch from 6ca3ffc to 9269898 Compare June 18, 2024 19:30
@dav1do dav1do enabled auto-merge June 18, 2024 19:31
@dav1do dav1do temporarily deployed to github-tests-2024 June 18, 2024 19:40 — with GitHub Actions Inactive
@dav1do dav1do added this pull request to the merge queue Jun 18, 2024
Merged via the queue into main with commit a9f355d Jun 18, 2024
6 checks passed
@dav1do dav1do deleted the fix/api-batch-error branch June 18, 2024 20:01
@smrz2001 smrz2001 mentioned this pull request Jun 24, 2024
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