github DaviReisVieira/stackport v0.2.5

3 hours ago

What's new

DynamoDB — Item CRUD with JSON editor (#69)

Full item management for DynamoDB tables — create, edit, delete, bulk import, and bulk delete with a built-in JSON editor.

Backend — 3 new endpoints:

  • POST/PUT /api/dynamodb/tables/{name}/items — create or replace an item (plain JSON or DynamoDB attribute-value format)
  • DELETE /api/dynamodb/tables/{name}/items — delete item by key
  • POST /api/dynamodb/tables/{name}/items/batch — batch write (up to 25 put/delete operations)
  • Key attribute validation against table schema before writes
  • Cache invalidation after successful writes (including partial batch success)
  • ReadOnlyMiddleware fix: item write POSTs are now correctly blocked when STACKPORT_ALLOW_WRITES=false

Frontend — DynamoDB browser write UI:

  • "New item" button with JSON editor modal and auto-populated key fields
  • Edit/Delete actions per row and in the item detail sheet
  • Plain JSON ↔ DynamoDB JSON toggle with live conversion
  • Bulk import via JSON array paste (chunked by 25)
  • Checkbox row selection with bulk delete
  • Warning toasts when batch operations have unprocessed items
  • Write actions hidden when STACKPORT_ALLOW_WRITES=false (via useHealth)

Tests:

  • Backend: put (typed + plain), missing key validation, delete, batch write, partial batch cache invalidation, middleware blocking
  • Frontend: API client tests, marshal round-trip tests, countUnprocessed helper tests

Contributors

Full Changelog: v0.2.4...v0.2.5

Don't miss a new stackport release

NewReleases is sending notifications on new releases.