Skip to content

Courses, Units, Lessons, and KPUB#653

Open
rtibbles wants to merge 4 commits intolearningequality:mainfrom
rtibbles:of_course
Open

Courses, Units, Lessons, and KPUB#653
rtibbles wants to merge 4 commits intolearningequality:mainfrom
rtibbles:of_course

Conversation

@rtibbles
Copy link
Copy Markdown
Member

@rtibbles rtibbles commented Jan 20, 2026

Summary

Adds support for uploading KPUB files
Adds Courses, Units, and Lessons nodes with validation
Adds example courses script for two sample courses.

References

Fixes #638

Reviewer guidance

Copy link
Copy Markdown
Member

@bjester bjester left a comment

Choose a reason for hiding this comment

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

Needs to update the le_utils version

@rtibbles
Copy link
Copy Markdown
Member Author

rtibbles commented Feb 8, 2026

Updated!

@rtibbles rtibbles marked this pull request as ready for review March 20, 2026 22:53
@rtibbles
Copy link
Copy Markdown
Member Author

Have reworked and deduplicated the tests here.

Copy link
Copy Markdown
Member

@bjester bjester left a comment

Choose a reason for hiding this comment

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

Overall everything looks good enough for merge, but I think it'd be worthwhile to match exception messages in TestUnitNodeValidation considering the complexity of the validation. And so for that, at least, I'm requesting changes.

Comment on lines +1598 to +1600
Args:
node: LessonNode to add
learning_objectives: List of LearningObjective instances
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems ricecooker has inconsistent docstring styles...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, they're all over the shop - I think we should just decide what our standard is across our repos and then standardize.

rtibbles and others added 3 commits April 7, 2026 18:15
html5lib sets body.text to None when the body element starts with a
child element rather than text. Guard against this the same way as
KPUBConversionHandler.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rtibbles
Copy link
Copy Markdown
Member Author

rtibbles commented Apr 8, 2026

Updated!

Copy link
Copy Markdown
Member

@bjester bjester left a comment

Choose a reason for hiding this comment

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

Looks good to me. All previous code review items resolved.

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.

Add Node classes for Lessons, Units, and Courses

2 participants