Uh oh!
There was an error while loading. Please reload this page.
Separate out different categories of incomplete. - #2800
Conversation
Make chunk size customizable.
jayoshih
left a comment
There was a problem hiding this comment.
A few optimizations that might help speed things up
Uh oh!
There was an error while loading. Please reload this page.
| # Mark invalid licenses | ||
| licensestart = time.time() | ||
| logging.info('Marking blank licenses...') | ||
| count = ContentNode.objects.exclude(kind_id=content_kinds.TOPIC).filter(license__isnull=True).order_by().update(complete=False) |
There was a problem hiding this comment.
Since some might have both the title and license problem, could you use filter(complete=False) here and in other queries?
Uh oh!
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@## hotfixes #2800 +/- ##
============================================
+ Coverage 80.80% 84.81% +4.01%
============================================
Files 281 292 +11 Lines 12659 15298 +2639 ============================================
+ Hits 10229 12975 +2746 + Misses 2430 2323 -107
Continue to review full report at Codecov.
|
Uh oh!
There was an error while loading. Please reload this page.
Reinstate copyright holder check. Filter by complete=False.
Separate out exercises checks.
Uh oh!
There was an error while loading. Please reload this page.
bjester
left a comment
There was a problem hiding this comment.
Would suggest making the join type change, just in case, but looks good!
Description
Makes updates to the mark incomplete command to separate out different checks
Adds order_bys liberally to reduce scanning