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

Set default learning_activity based on node kind in TreeNode #496

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

nucleogenesis
Copy link
Member

Overview

In the TreeNode constructor, use kind_activity_map borrowed from Kolibri to map the node's kind to a particular learning activity.

If learning_activities is provided to the constructor, then that is used. However, if it's not provided or is empty, then we refer to the map to provide a default learning activity.

Closes #451

Reviewer guidance

Are the two little tests sufficient? Any possible regressions?

@nucleogenesis
Copy link
Member Author

nucleogenesis commented Apr 29, 2024

Would the mapping be worthwhile to put into LE Utils instead @rtibbles ?

Or -- maybe as a follow-up to put onto the list of things we'll do when we get around to reworking LE Utils down the road?

@nucleogenesis nucleogenesis force-pushed the set-learning-activities-by-default branch from ff0923c to 0aa2323 Compare April 29, 2024 23:33
@rtibbles rtibbles merged commit 942988e into develop Apr 30, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set default value for TreeNode.learning_activities when not set explicitly
2 participants