feat(nosql): add record creation - #208
Open
thomhurst wants to merge 2 commits into
Open
Conversation
Contributor
|
| Filename | Overview |
|---|---|
| packages/api/src/adapter-aws/AwsDynamoDbAdapter.ts | Adds key-schema-aware DynamoDB item creation and resolves the previously reported large numeric key precision issue. |
| packages/api/src/routes/clouds.ts | Adds the generic HTTP endpoint that dispatches NoSQL item creation through CloudProxyService. |
| packages/api/src/service/CloudProxyService.ts | Adds provider-neutral dispatch and unsupported-operation handling for NoSQL item creation. |
| packages/frontend/src/components/JsonRecordModal.tsx | Adds the shared JSON-object record creation dialog with parsing, pending-state, and error handling. |
| packages/frontend/src/components/DynamoDbTableExplorer.tsx | Integrates DynamoDB record creation with schema-derived key templates and query invalidation. |
| packages/frontend/src/components/CosmosNoSqlPanel.tsx | Moves Cosmos creation into the shared modal and prefills the document ID and partition-key structure. |
Sequence Diagram
sequenceDiagram
actor User
participant Modal as JSON Record Modal
participant Client as Cloud Proxy Client
participant Route as NoSQL Items Route
participant Service as CloudProxyService
participant Adapter as Provider Adapter
participant Store as DynamoDB or Cosmos DB
User->>Modal: Enter JSON record
Modal->>Modal: Parse and validate JSON object
Modal->>Client: Submit document
Client->>Route: POST /clouds/:cloud/services/nosql/resources/:id/items
Route->>Service: putNoSqlItem(cloud, resourceId, document)
Service->>Adapter: putNoSqlItem(resourceId, document)
Adapter->>Store: Create or upsert item
Store-->>Adapter: Stored item
Adapter-->>Modal: Normalized NoSqlItem
Modal-->>User: Close and refresh selection
Reviews (2): Last reviewed commit: "fix(dynamodb): reject unsafe numeric key..." | Re-trigger Greptile
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.
Summary
Add recordmodal for DynamoDB and Cosmos DB NoSQLPutItemadapter supportS,N, andBkeys while preserving large numeric keysTesting
pnpm lintpnpm type-checkpnpm buildpnpm test: 728 passed; 1 pre-existing Windows-only ZIP test failure from CRLF parsing ofunzip -Z1outputCloses #207