Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions taosmd/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@
content_rowid='id',
tokenize='porter unicode61'
);

CREATE TABLE IF NOT EXISTS archive_import (

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Import endpoint remains unavailable 🐞 Bug ≡ Correctness

The change only creates the archive_import table and does not register or implement `POST
/a2a/import`. Requests reaching the HTTP server therefore fall through to the unknown-route response
and return 404, leaving the PR's primary import capability unavailable.
Agent Prompt
## Issue description

The PR creates import bookkeeping storage but does not expose `POST /a2a/import`, so requests return 404 instead of performing the intended import.

## Issue Context

Add the service operation and HTTP handler, register the route, classify it as an admin route, use `archive_import` for idempotency, and add endpoint tests covering authorization, batch processing, duplicate source IDs, and historical timestamps.

## Fix Focus Areas

- taosmd/archive.py[83-88]
- taosmd/http_server.py[725-753]
- taosmd/http_server.py[948-1056]
- taosmd/service.py[344-410]
- tests/test_http_server.py[1-1]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

source TEXT NOT NULL,
source_id TEXT NOT NULL,
row_id INTEGER NOT NULL,
PRIMARY KEY (source, source_id)
);
"""


Expand Down