Repository navigation
Conversation
Summary
Errors per inputErrors in site/content_management/content_management_guide/index.html
Errors in site/ibexa_products/editions/index.html
Errors in site/ibexa_products/ibexa_commerce/index.html
Errors in site/ibexa_products/ibexa_experience/index.html
Errors in site/ibexa_products/ibexa_headless/index.html
Errors in site/multisite/languages/languages/index.html
Errors in site/translations_management/configure_translations_management/index.html
Errors in site/translations_management/extend_translations_management/index.html
Errors in site/translations_management/translations_management_api/index.html
Errors in site/translations_management/translations_management_guide/index.html
Redirects per inputRedirects in site/getting_started/install_with_ddev/index.htmlRedirects in site/ibexa_products/ibexa_commerce/index.htmlRedirects in site/ibexa_products/ibexa_experience/index.htmlRedirects in site/ibexa_products/ibexa_headless/index.htmlRedirects in site/infrastructure_and_maintenance/clustering/clustering_with_ddev/index.html
Redirects in site/release_notes/ibexa_dxp_v5.0/index.html
|
- Missing tab lists items without a published version in the target language - default provider when no language pair matches; jobs without a provider - keeping drafts when deleting an unfinished job - link permissions to the Translations hub section of the user documentation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Configuration (background worker, pagination, notifications) merged into Configure translations management; PHP API, REST API, and console commands in the new Translations management API page; events and notification types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ST API Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
047857c to
1feebf7
Compare
Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com>
e330a3e to
e0cec3b
Compare
code_samples/ change report
|
| ``` | ||
|
|
||
| If the worker doesn't run, new jobs stay in the "Pending" state. | ||
| Only one job per target language can be pending or in progress, therefore editors can't start another job for that language. |
There was a problem hiding this comment.
| Only one job per target language can be pending or in progress, therefore editors can't start another job for that language. | |
| A job can have one or more target languages; only one job per target language can be pending or in progress at a time. |
| | `GET` | `/job/{id}` | Get the summary of a job | | ||
| | `GET` | `/job/{id}/items` | List the items of a job | | ||
| | `POST` | `/job/{id}/retry` | Retry the failed items of a job | | ||
| | `DELETE` | `/job/{id}` | Remove a job | |
There was a problem hiding this comment.
| | `DELETE` | `/job/{id}` | Remove a job | | |
| DELETE /job/{id}?keepDrafts=true|false - keepDrafts=true only works for partially created jobs. |
| - `reviewBulkTranslationJobItems()` approves or rejects the translations of many job items at once | ||
| - `retryBulkTranslationJob()` translates the failed items of a finished job again | ||
| - `retranslateJobItem()` translates a single item of a finished job again, and removes its previous draft | ||
| - `removeBulkTranslationJob()` removes a job together with the drafts that it created, or cancels it first if it's pending or in progress |
There was a problem hiding this comment.
The method signature includes a second $keepDrafts argument.
Full deletion logs bulk_translation_removed, while partial deletion logs bulk_translation_part_removed with remainingItems.
The BulkTranslationJobRemovedEvent event also contains remainingItems.
What needs to be updated in the PR:
- Add the keepDrafts argument to the list of method arguments.
- In the Events section, mention that remainingItems = 0 indicates a full deletion.
|
|
||
| $jobs = $this->jobService->findBulkTranslationJobs(new JobQuery( | ||
| limit: 10, | ||
| statuses: [JobStatus::STATUS_FOR_REVIEW, JobStatus::STATUS_FAILED] |
There was a problem hiding this comment.
A job has one of the following statuses, defined in JobStatus: pending, in_progress, for_review, completed, failed, or cancelled.
A job is cancelled when you remove it while it's pending or in progress.
Items of a job use JobItemStatus: pending, in_progress, completed, failed, cancelled, or not_created.
|
|
||
| - `findBulkTranslationJobs()` and `countBulkTranslationJobs()` find jobs by status, target language, creator, or title, by using a [`JobQuery`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-TranslationsManagement-BulkTranslations-Values-JobQuery.html) | ||
| - `getBulkTranslationJob()` loads a job by its ID | ||
| - `findJobItems()` lists the items of a job, optionally filtered by item status, review status, target language, or content type, by using a [`JobItemQuery`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-TranslationsManagement-BulkTranslations-Values-JobItemQuery.html) |
There was a problem hiding this comment.
The backend has a published status, but published items are excluded from the For review and Translated queues. The published status is visible only in job/{id}/items.
What needs to be updated in the PR:
In the ReviewItemServiceInterface description, add:
Published translations are not returned.
| | `GET` | `/translated` | List accepted translations that aren't published yet | | ||
| | `GET` | `/translated/filters` | List the filter choices of the accepted translations list | | ||
| | `POST` | `/translated/bulk-delete` | Delete the drafts of many accepted translations | | ||
|
|
There was a problem hiding this comment.
The commands and REST API documentation do not currently describe the retranslate behavior.
What needs to be updated in the PR:
- In the REST table, add: 409 when the content is in the trash.
- In the retranslateJobItem() description, clarify: The job returns to the For review status.
| [[= include_file('code_samples/translations_management/src/Command/TranslationsHubOverviewCommand.php') =]] | ||
| ``` | ||
|
|
||
| ### Work with bulk translation jobs |
There was a problem hiding this comment.
Add a paragraph to Work with bulk translation jobs describing trashed item behavior:
- Trashed items do not count as failed or awaiting review.
- A job can reach completed even if it contains trashed items.
- Restoring an item from the trash triggers job recalculation.
- /job/{id}/items exposes removed and errorCode (content_removed or content_restored).
| @@ -0,0 +1,212 @@ | |||
| --- | |||
There was a problem hiding this comment.
Add please:
When an item fails, its reason is one of the TranslationFailureReason values, returned as errorCode by the REST API. It's the reason of the last attempt, and it stays until the item is retried. Whether the content item is in the trash now is a separate removed flag.
|
|
||
| ``` yaml | ||
| ibexa: | ||
| system: | ||
| admin_group: | ||
| translations_management: | ||
| bulk_translations: | ||
| pagination: | ||
| missing_limit: 25 | ||
| missing_allowed_limits: [25, 50, 100, 200] | ||
| ``` | ||
|
|
||
| The following settings are available, all with the default limit of 10 and the default allowed limits of 10, 25, 50, and 100: |
There was a problem hiding this comment.
The bug has been reported: https://ibexa.atlassian.net/jira/browse/IBX-13454
If the fix won't be included in this release, a note must be added to the docs:
The back office applies these settings only to the Missing tab; the REST API applies them to all lists.
KamilSznajdrowicz
left a comment
There was a problem hiding this comment.
With https://github.com/ibexa/translations-management/pull/556 (IBX-13425), the user who starts a bulk translation job also needs the content/versionread policy, including for jobs without a provider. Without it, every job item fails with "permission_denied", also for always-available content, which used to work on 6.0.
Please add content/versionread to the permissions required for Bulk translations.
Configuration (background worker, pagination, notifications)
Events, notification types limitations
PHP API, REST API, and console commands
Checklist