Closed abdullai-t closed 3 months ago
Attention: Patch coverage is 88.63636%
with 5 lines
in your changes missing coverage. Please review.
Project coverage is 56.08%. Comparing base (
b8aa4a5
) to head (7370fd4
). Report is 5 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
src/_main_/utils/translation/__init__.py | 85.71% | 5 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary / Highlights
This pull request introduces a caching layer to the
JsonTranslator
utility, enhancing the efficiency of translation API requests. When a translation request is made, the system first checks the database for a cached translation. If a cached translation is found, it is retrieved and used, avoiding the need for an API call to GCT. If no cached translation exists, the request is sent to GCT for translation. Once the translation is received, it is sent to a background function that saves the translation to the database for future use.Details (Give details about what this PR accomplishes, include any screenshots etc)
Testing Steps (Provide details on how your changes can be tested)
run
make test
Requirements (place an
x
in each[ ]
)Transparency (Project board)