Repository navigation
docs: KVStore's 409 and local data file, AppSetting's data file, and RawRoute params locally - #1509
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: d1049fa The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
3 tasks done
2 of 3 tasks
3 tasks done
xyos
marked this pull request as ready for review
November 16, 2026 14:56
VarshithaPamisetty
previously approved these changes
Nov 17, 2026
This was referenced Nov 17, 2026
xyos
force-pushed
the
docs/atomic-writes-local-behaviour
branch
2 times, most recently
from
November 17, 2026 22:18
193f599 to
9932ce3
Compare
…RawRoute params locally Main now documents atomic conditional writes and the dev server's 502 (#1498), so this keeps what it still lacks: - KVStore: a failed condition is status 409 in the JSON-RPC error (HTTP 409 only with httpErrorStatus: true); the mock reads store.json only when it constructs the store, so two processes can overwrite. - AppSetting: the mock's data lives in .bb-data/settings.json. - core: RawRoute params are the same locally and deployed.
VarshithaPamisetty
approved these changes
Nov 18, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A few Building Block docs were silent or inaccurate on behaviour users ask about: which status a failed
KVStorecondition reaches the client with, what happens when two processes share a store's local data file, howRawRoutefillsparamslocally, and whereAppSetting's mock keeps its values.Issue #, if available: none
Stack: 1 of 5, the bottom PR (base
main). The PRs above it document thebb-authpassword policy (#1510), add thecdk-blocks docscommand (#1511), point the scaffolded docs at it (#1512) and add--output json(#1521). This PR stands alone: it changes no code.Rebased on
mainafter #1453 (KVStore consolidation), #1498 (findable docs) and #1608 (KVStore docs).DistributedTableis now folded intoKVStore, so its README edit is gone. #1498 already documents atomic conditional writes and the dev server'sFrontend server unavailable(502), so this PR no longer adds them; it keeps whatmainstill lacks.Changes
Docs only (
bb-kv-store,bb-app-setting,core, patch):KVStore: a failed condition is status 409 in the JSON-RPC error, and HTTP 409 only when the namespace setshttpErrorStatus: true(the error table said "Status 409"). The Local development section says that the mock readsstore.jsononly when it constructs the store, so two processes on one.bb-datafolder (two dev servers, or a script beside the dev server) don't see each other's writes and can overwrite them.core: aRawRoutefillsparamsthe same way undernpm run devand deployed.AppSetting: its mock keeps values in the shared.bb-data/settings.json, not.bb-data/settings/{fullId}/value.json.No breaking change.
Validation
Run locally at the stack top (
f05527191, onmainat03778d9f6) with Node 22.23.1 (.nvmrc):npm run build,npm run lint(warnings only),npm run lint:deps: exit 0.node --test scripts/sink-guards/*.test.mjs): 35 pass, 0 fail (ci(kotlin): pass the emulator script path through env #1603 fixed the workflows site from ci(kotlin): retry the Android e2e leg when the device drops out #1600).cdk-blocks docstests (docs,bin,parse,help) with@aws-blocks/blocks'docs-pointers.test.js: 110 pass, 0 fail;@aws-blocks/create-blocks-app'sdocs-pointers.test.js: 5 pass;@aws-blocks/bb-auth'sreadme-recipes.test.js: 8 pass.The full suites ran on the previous head (
b8a78177a, onmainatd01c34c96), Node 22.23.1, before this rebase onto nine moremaincommits; the rebase changed onlybb-kv-store/README.md(a conflict with #1608) in this stack's own diff:npm run test:e2e:local: exit 0; 580 tests, 574 pass, 0 fail, 6 skipped.npm test: 13,802 tests, 13,767 pass, 21 fail, 10 skipped. Every failure is a dev-server, signal or file-watcher test incore,hostingorblocks'cli/context.test.js(none incdk-blocks docs,bb-auth,bb-kv-storeorcreate-blocks-app), and the log has 46EMFILEerrors fromfs.watch: this machine'sfs.inotify.max_user_instances(128) was used up by other processes. CI runs these suites.No new tests: the change is documentation only. No sandbox run: nothing here changes deployed behaviour or serialization.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.