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: exclude non-trackable models from checkCompletionStatusFor #532

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

Conversation

danielghost
Copy link
Contributor

Fixes #526.

Fix

  • Exclude non-trackable models from checkCompletionStatusFor.

New

  • Added getAvailableTrackableChildModels to return only _isAvailable: true and _isTrackable !== false models.

@danielghost danielghost added the bug Something isn't working label May 3, 2024
@danielghost danielghost self-assigned this May 3, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

Copy link
Contributor

@joe-allen-89 joe-allen-89 left a comment

Choose a reason for hiding this comment

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

👍

@oliverfoster
Copy link
Member

oliverfoster commented Jun 2, 2024

_isTrackable should not be intertwined with completion or optionality, please fix this in trickle rather than core.

Whether something is saved to the lms or not has nothing to do with whether it's complete or optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

checkCompletionStatusFor doesn't complete if model and its children are optional and trickled
5 participants