kobotoolbox / kpi

kpi is the (frontend) server for KoboToolbox. It includes an API for users to access data and manage their forms, question library, sharing settings, create reports, and export data.
https://www.kobotoolbox.org
GNU Affero General Public License v3.0
131 stars 177 forks source link

[WIP] Use operations api for async translations #4947

Closed LMNTL closed 2 months ago

LMNTL commented 4 months ago

Checklist

  1. [ ] If you've added code that should be tested, add tests
  2. [ ] If you've changed APIs, update (or create!) the documentation
  3. [ ] Ensure the tests pass
  4. [ ] Make sure that your code lints and that you've followed our coding style
  5. [X] Write a title and, if necessary, a description of your work suitable for publishing in our release notes
  6. [ ] Mention any related issues in this repository (as #ISSUE) and in other repositories (as kobotoolbox/other#ISSUE)
  7. [ ] Open an issue in the docs if there are UI/UX changes

Description

Fix some bugs preventing async automated translations with Google.

Notes

This is an incremental piece of of work in getting large/async automated translations fixed. A final piece of work should also change the SubmissionExtras structure (on the front and back ends) to save each translation as a separate key, so that translations to language A don't overwrite translations to language B. Translations should be tested to make sure they're still working correctly; they were tested after extracting the functionality from async translations to GoogleTransXEngine, but haven't been recently.

notion-workspace[bot] commented 2 months ago

Fix bug causing large asynchronous translations to fail