massenergize / api

Backend Code for Massenergize Portal. This provides the API to the backend database, and is shared by the various front-end portal projects.
MIT License
5 stars 8 forks source link

feat: add task to translate db contents #1124

Closed abdullai-t closed 2 months ago

abdullai-t commented 2 months ago

Summary / Highlights

This pull request introduces a new task to translate database contents. It depends on PR 1119 for the implementation of the SupportedLanguage model and TranslationsCache.

Details (Give details about what this PR accomplishes, include any screenshots etc)

Testing Steps (Provide details on how your changes can be tested).

The tests in this PR fails because of the model it depends on which are in another PR.

Requirements (place an x in each [ ])

Transparency (Project board)
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 85.85859% with 14 lines in your changes missing coverage. Please review.

Project coverage is 55.58%. Comparing base (a425829) to head (3ae5d4d).

Files Patch % Lines
.../task_queue/database_tasks/translate_db_content.py 77.55% 11 Missing :warning:
src/_main_/utils/utils.py 89.47% 2 Missing :warning:
...api/tests/unit/tasks/test_translate_db_contents.py 95.65% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1124 +/- ## ========================================== + Coverage 55.51% 55.58% +0.07% ========================================== Files 442 444 +2 Lines 32861 32954 +93 ========================================== + Hits 18242 18318 +76 - Misses 14619 14636 +17 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.