Skip to content

Fix: exclude non-trackable models from checkCompletionStatusFor#532

Open
danielghost wants to merge 1 commit intomasterfrom
issue/526
Open

Fix: exclude non-trackable models from checkCompletionStatusFor#532
danielghost wants to merge 1 commit intomasterfrom
issue/526

Conversation

@danielghost
Copy link
Copy Markdown
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 label May 3, 2024
@danielghost danielghost self-assigned this May 3, 2024
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👀

Copy link
Copy Markdown
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
Copy Markdown
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

Projects

Development

Successfully merging this pull request may close these issues.

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

6 participants