Skip to content

feat(indexer): expose piece metadata endpoint - #57

Draft
Kubuxu wants to merge 1 commit into
mainfrom
feat/v0-piece-metadata-endpoint
Draft

feat(indexer): expose piece metadata endpoint#57
Kubuxu wants to merge 1 commit into
mainfrom
feat/v0-piece-metadata-endpoint

Conversation

@Kubuxu

@Kubuxu Kubuxu commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • expose indexed piece metadata at GET /index/v0/datasets/:dataSetId/pieces/:pieceId/metadata
  • validate IDs against PostgreSQL bigint bounds and mask internal errors
  • distinguish missing pieces from pieces with null metadata
  • align Ponder metadata types and query helpers

Verification

  • pnpm --filter @filoz/repair-ponder typecheck
  • pnpm --filter @filoz/repair-ponder test
  • pnpm exec biome check src/api test/index-api.test.ts

Add a read-only /index/v0 endpoint that returns the indexed piece metadata field with bounded ID validation and safe error responses.

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
@FilOzzy FilOzzy added this to FOC Aug 18, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Aug 18, 2026
@BigLep BigLep moved this from 📌 Triage to ⌨️ In Progress in FOC Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ⌨️ In Progress

Development

Successfully merging this pull request may close these issues.

3 participants