From 5d6179278e09f29b26df53e4d9292d5cd2610740 Mon Sep 17 00:00:00 2001 From: Thomas Gauvin Date: Thu, 14 Nov 2024 10:25:15 +0000 Subject: [PATCH 1/6] thomasgauvin: add changelog entry for response bodies in bulk operations --- src/content/changelogs/kv.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/content/changelogs/kv.yaml b/src/content/changelogs/kv.yaml index 00627bf085ccf49..92eb02f950f33bd 100644 --- a/src/content/changelogs/kv.yaml +++ b/src/content/changelogs/kv.yaml @@ -5,6 +5,21 @@ productLink: "/kv/" productArea: Developer platform productAreaLink: /workers/platform/changelog/platform/ entries: + - publish_date: "2024-11-14" + title: Workers KV REST API bulk operations provide granular errors + description: |- + + The REST API endpoints for bulk operations ([write](/api/operations/workers-kv-namespace-write-multiple-key-value-pairs), [delete](workers-kv-namespace-delete-multiple-key-value-pairs)) now return the keys of operations that failed during the bulk operation. The updated response bodies are documented in the [REST API documentation](/api/operations/workers-kv-namespace-list-namespaces) and contain the following information: + + ``` + { + "successful_key_count": number, + "unsuccessful_keys": string[] + } + ``` + + The unsuccessful keys are an array of the keys that have unsuccessfully been written to all storage backends of Workers KV and should be retried. + - publish_date: "2024-08-08" title: New KV Analytics API description: |- From 7a0e77a015b4e367761e5bb33b454063e4722a20 Mon Sep 17 00:00:00 2001 From: Thomas Gauvin <35609369+thomasgauvin@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:29:42 +0000 Subject: [PATCH 2/6] Update src/content/changelogs/kv.yaml Co-authored-by: Rob Sutter --- src/content/changelogs/kv.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/changelogs/kv.yaml b/src/content/changelogs/kv.yaml index 92eb02f950f33bd..12bc0dfedea9006 100644 --- a/src/content/changelogs/kv.yaml +++ b/src/content/changelogs/kv.yaml @@ -18,7 +18,7 @@ entries: } ``` - The unsuccessful keys are an array of the keys that have unsuccessfully been written to all storage backends of Workers KV and should be retried. + The unsuccessful keys are an array of keys that were not written successfully to all storage backends and should be retried. - publish_date: "2024-08-08" title: New KV Analytics API From 3f92424ce6a05e632dc92bb4e2e8ec0541a395fa Mon Sep 17 00:00:00 2001 From: Jun Lee Date: Thu, 14 Nov 2024 10:40:16 +0000 Subject: [PATCH 3/6] Update src/content/changelogs/kv.yaml --- src/content/changelogs/kv.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/changelogs/kv.yaml b/src/content/changelogs/kv.yaml index 12bc0dfedea9006..0178ee6291d010d 100644 --- a/src/content/changelogs/kv.yaml +++ b/src/content/changelogs/kv.yaml @@ -18,7 +18,7 @@ entries: } ``` - The unsuccessful keys are an array of keys that were not written successfully to all storage backends and should be retried. + The unsuccessful keys are an array of keys that were not written successfully to all storage backends and therefore should be retried. - publish_date: "2024-08-08" title: New KV Analytics API From 4c67aef1ca8b5597783f2fe5598b5fd9fa13a925 Mon Sep 17 00:00:00 2001 From: Thomas Gauvin <35609369+thomasgauvin@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:40:31 +0000 Subject: [PATCH 4/6] Update src/content/changelogs/kv.yaml Co-authored-by: Jun Lee From 467ff6aa1e21dee8bd0dabf284944f9bda3c52c7 Mon Sep 17 00:00:00 2001 From: Jun Lee Date: Thu, 14 Nov 2024 10:40:45 +0000 Subject: [PATCH 5/6] Update src/content/changelogs/kv.yaml From 52b4ab086d247dee24c3276611c75591478f071c Mon Sep 17 00:00:00 2001 From: Thomas Gauvin <35609369+thomasgauvin@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:42:13 +0000 Subject: [PATCH 6/6] Update src/content/changelogs/kv.yaml --- src/content/changelogs/kv.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/changelogs/kv.yaml b/src/content/changelogs/kv.yaml index 0178ee6291d010d..24e9ccd16ff74dd 100644 --- a/src/content/changelogs/kv.yaml +++ b/src/content/changelogs/kv.yaml @@ -9,7 +9,7 @@ entries: title: Workers KV REST API bulk operations provide granular errors description: |- - The REST API endpoints for bulk operations ([write](/api/operations/workers-kv-namespace-write-multiple-key-value-pairs), [delete](workers-kv-namespace-delete-multiple-key-value-pairs)) now return the keys of operations that failed during the bulk operation. The updated response bodies are documented in the [REST API documentation](/api/operations/workers-kv-namespace-list-namespaces) and contain the following information: + The REST API endpoints for bulk operations ([write](/api/operations/workers-kv-namespace-write-multiple-key-value-pairs), [delete](workers-kv-namespace-delete-multiple-key-value-pairs)) now return the keys of operations that failed during the bulk operation. The updated response bodies are documented in the [REST API documentation](/api/operations/workers-kv-namespace-list-namespaces) and contain the following information in the `result` field: ``` {