Skip to content

MAINT: Update Registry APIs - #2550

Open
Richard Lundeen (rlundeen2) wants to merge 5 commits into
microsoft:mainfrom
rlundeen2:rlundeen2-registry-api-foundation
Open

MAINT: Update Registry APIs#2550
Richard Lundeen (rlundeen2) wants to merge 5 commits into
microsoft:mainfrom
rlundeen2:rlundeen2-registry-api-foundation

Conversation

@rlundeen2

Copy link
Copy Markdown
Contributor

Summary

  • make component registries own named construction, instance storage, lookup, duplicate and reserved-name validation, and removal
  • add registry-backed converter lifecycle and /api/converters/types APIs, plus the target registry consistency needed by later stack layers
  • support pathlib.Path constructor metadata and uploaded data-URI persistence without exposing server paths
  • keep /api/converters/catalog and /api/targets/catalog as temporary compatibility projections for the unchanged main UI; the higher chat-migration layer will remove them

Validation

  • UV_NO_SYNC=1 uv run pytest --quiet tests\unit\models\test_parameter.py tests\unit\registry\test_instance_registry.py tests\unit\registry\test_converter_registry.py tests\unit\registry\test_target_registry.py tests\unit\registry\test_scorer_registry.py tests\unit\backend\test_converter_service.py tests\unit\backend\test_target_service.py tests\unit\backend\test_api_routes.py tests\unit\backend\test_mappers.py tests\unit\backend\test_target_types_concurrency.py tests\unit\setup\test_targets_initializer.py tests\unit\setup\test_scorer_initializer.py (776 passed, 4 skipped)
  • UV_NO_SYNC=1 uv run pre-commit run --all-files

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c9eafadc-3a00-471b-b61b-68ba4d656577
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c9eafadc-3a00-471c-a08b-28df698d8109
Type converter file inputs as Path instead of special-casing strings in the
backend: AddImageVideoConverter.video_path is now a Path, so the registry
describes it as an input file and REST treats it as an upload like every other
Path parameter.

Drop the per-parameter MIME/signature allowlist. Uploads are stored verbatim
because any file type is a legitimate payload; the generated file name means a
declared MIME type only picks an extension. Content restrictions now live only
in the media route, which serves active document types as neutralized downloads
without renaming stored files.

Mark the temporary catalog projections consistently so reviewers can see the
whole concept is deleted once the UI moves to /types.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c9eafadc-3a00-471b-b61b-68ba4d656577
@rlundeen2 Richard Lundeen (rlundeen2) changed the title Add registry API foundation MAINT: Update Registry APIs Sep 3, 2026
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