feat: add pre_translation_batch_operations method#249
Merged
andrii-bodnar merged 2 commits intomainfrom Mar 13, 2026
Merged
Conversation
Co-authored-by: andrii-bodnar <29282228+andrii-bodnar@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for Pre-Translation Batch Operations
feat: add Mar 13, 2026
pre_translation_batch_operations method
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #249 +/- ##
==========================================
+ Coverage 99.40% 99.40% +0.01%
==========================================
Files 182 182
Lines 8596 8606 +10
Branches 191 191
==========================================
+ Hits 8544 8554 +10
Misses 36 36
Partials 16 16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exposes the
PATCH /projects/{projectId}/pre-translationsendpoint, which applies a JSON Patch document (RFC 6902) to update multiple pre-translations in a single request (e.g. bulkstatus/prioritychanges).This is distinct from the existing
edit_pre_translation, which targets a single resource at…/pre-translations/{preTranslationId}.Changes
translations/resource.py— addedpre_translation_batch_operations(data, projectId)methodtests/test_translations_resources.py— added corresponding unit testUsage
Reuses the existing
EditPreTranslationSchemetype — no new types or enums required.Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.