Skip to content

feat: admin/touch endpoint to backfill contentHash#14

Merged
dsghi merged 1 commit into
mainfrom
devbrain-v1.7-admin-touch
Apr 13, 2026
Merged

feat: admin/touch endpoint to backfill contentHash#14
dsghi merged 1 commit into
mainfrom
devbrain-v1.7-admin-touch

Conversation

@dsghi
Copy link
Copy Markdown
Contributor

@dsghi dsghi commented Apr 13, 2026

Summary

  • Adds POST /admin/touch HTTP endpoint (master key required, not MCP-exposed)
  • Re-upserts every document to trigger contentHash and contentLength computation
  • Idempotent — safe to run multiple times
  • Intended as a one-shot backfill after the v1.7.0 deploy so CompareDocument works accurately against pre-existing docs

Test plan

  • Deploy and call POST /admin/touch with master key
  • Verify response shows correct document count
  • Confirm GetDocumentMetadata now returns non-null contentHash for previously-stored docs

🤖 Generated with Claude Code

HTTP-triggered (POST /admin/touch), gated by Function App master key.
Reads every document and re-upserts it, which triggers the contentHash
and contentLength computation in UpsertAsync. Idempotent and safe to
run multiple times.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dsghi dsghi merged commit 5ccd552 into main Apr 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant