Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getting progress when there are no strings #829

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexkiro
Copy link

@alexkiro alexkiro commented Oct 9, 2024

Unlike COUNT, SUM will actually return NULL not 0 when there are no rows, so we need to coalesce to 0 to avoid such cases.

This issued caused both the progress and status values to be incorrect for translations. Since 0 != None an empty page will have its translations marked as "waiting for translations."

Unlike COUNT, SUM will actually return NULL not 0 when there are no
rows, so we need to coalesce to 0 to avoid such cases.

This issued caused both the progress and status values to be incorrect
for translations. Since `0 != None` an empty page will have its
translations marked as "waiting for translations."
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.07%. Comparing base (caf14b8) to head (7c99102).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #829   +/-   ##
=======================================
  Coverage   93.07%   93.07%           
=======================================
  Files          47       47           
  Lines        4144     4145    +1     
  Branches      704      704           
=======================================
+ Hits         3857     3858    +1     
  Misses        173      173           
  Partials      114      114           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants