Skip to content

feat(annotation-studio): rename a Tier B pair (PATCH /tier-b/pairs/{id})#89

Merged
joaocarvoli merged 2 commits into
mainfrom
feat/as-pair-rename
Jun 9, 2026
Merged

feat(annotation-studio): rename a Tier B pair (PATCH /tier-b/pairs/{id})#89
joaocarvoli merged 2 commits into
mainfrom
feat/as-pair-rename

Conversation

@joaocarvoli

Copy link
Copy Markdown
Member

Summary

Adds an update endpoint so Annotation Studio facilitators can rename a Tier B pair's twin notes after creation.

  • PATCH /tier-b/pairs/{pair_id} → returns the updated PairResponse.
  • New PairUpdate model (word_a_text / word_b_text).
  • tier_b_service.update_pair reuses _normalize_pair_text; access enforced via language_id_for_pair (mirrors delete_pair).

Frontend wiring (rename UI) is in the companion annotation-studio PR.

Verification

ruff + mypy clean on the changed files; tests/test_annotation_studio 22 passed.

🤖 Generated with Claude Code

joaocarvoli and others added 2 commits June 9, 2026 17:54
Adds an update endpoint so facilitators can rename a pair's twin notes after
creation (word_a_text / word_b_text). Mirrors the existing create/delete:
new PairUpdate model, tier_b_service.update_pair (reuses _normalize_pair_text),
and access checks via language_id_for_pair. Frontend wiring lives in the
annotation-studio repo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joaocarvoli joaocarvoli merged commit d669a56 into main Jun 9, 2026
4 checks passed
@joaocarvoli joaocarvoli deleted the feat/as-pair-rename branch June 9, 2026 23:30
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