You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(migration): files phase end-to-end + report quieting + tool_instance NOT FOUND
Multiple fixes uncovered by the first local-stack run:
client.py
- list_prompt_documents: mount under prompt-studio/ prefix
(BE include in urls_v2.py).
- download_prompt_file: use ?document_id=, matching
fetch_contents_ide serializer (was ?file_name=, BE ignored it
and returned 400 ValidationError).
- upload_prompt_file: drop trailing slash, BE pattern is
prompt-studio/file/<uuid:pk> with no slash so POST 404'd.
- add get_custom_tool / update_custom_tool for default-doc PATCH.
phases/files.py
- After upload loop per tool, mirror source's CustomTool.output
by filename so FE auto-selects on load. Fall back to first
target doc. Preserve any existing target output (operator
may have already picked manually on a re-run).
phases/tool_instance.py
- Detect source serializer sentinels ([X NOT FOUND],
[DELETED ADAPTER ...], [NEEDS UPDATE]) in stored metadata and
skip the PATCH instead of round-tripping a broken adapter
reference. ToolInstance row exists with backend defaults;
operator re-binds in UI.
report.py
- Drop the full source->target UUID map from rendered output
(noisy on large migrations). Print per-entity counts only;
full map still in as_dict() and at DEBUG log level.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments