You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Harden node viewset to ensure missing data sets it incomplete #4173
There seemed to be a gap in our validation and viewset logic that allowed a node to be marked as complete, even though it did not have proper mastery criteria. This resulted in a failure during publishing #4163
Expected behavior
We harden the content node viewset to ensure that completion criteria sets the node incomplete when it's invalid.
User-facing consequences
Users don't have insight within the UI regarding which nodes are incomplete and won't be published
Activity
rtibbles commentedon Jul 16, 2024
Should make sure we are leveraging the mark_complete function here: https://github.com/learningequality/studio/blob/unstable/contentcuration/contentcuration/models.py#L1810, and that it is properly applying any updates (it's possible that the slightly over complicated logic in the viewset/serializer logic is not passing
completeas a field to be saved).