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

Ensure that complete is not incorrectly set via the API #4627

Merged

Conversation

rtibbles
Copy link
Member

@rtibbles rtibbles commented Aug 8, 2024

Summary

Description of the change(s) you made

Update mark_complete to handle completion criteria for non-exercises.
Use the updated function to add verification when a contentnode is marked complete via the API.

Manual verification steps performed

Added regression tests for new mark_complete behaviour, and for an API call setting a node as complete when it is not.

Fixes #4173

@rtibbles rtibbles added this to the Studio: Q2-24 Release milestone Aug 8, 2024
Add verification when a contentnode is marked complete via the API.
@rtibbles rtibbles force-pushed the do_you_actually_complete_me branch from 4854369 to a97d34a Compare August 8, 2024 02:30
@akolson akolson self-requested a review August 9, 2024 12:05
Copy link
Member

@akolson akolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code seems to sense to me. Also, tests cover added functionality. Thanks @rtibbles

@rtibbles rtibbles merged commit 838fb3b into learningequality:unstable Aug 9, 2024
13 checks passed
@rtibbles rtibbles deleted the do_you_actually_complete_me branch August 9, 2024 14:11
@akolson akolson mentioned this pull request Aug 13, 2024
Copy link

sentry-io bot commented Aug 20, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ AttributeError: 'NoneType' object has no attribute 'get' apply_channel_changes View Issue

Did you find this useful? React with a 👍 or 👎

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

Successfully merging this pull request may close these issues.

Harden node viewset to ensure missing data sets it incomplete
2 participants