Skip to content

Conversation

@alexkiro
Copy link
Contributor

@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.

@zerolab zerolab merged commit 7445433 into wagtail:main Dec 20, 2024
10 checks passed
@zerolab
Copy link
Collaborator

zerolab commented Dec 20, 2024

Thank you @alexkiro

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