Skip to content

(#43) Complete new-spec lesson-metadata migration in resource pipeline#64

Draft
alexsdev91 wants to merge 1 commit into
masterfrom
43-fix-lesson-metadata-specs
Draft

(#43) Complete new-spec lesson-metadata migration in resource pipeline#64
alexsdev91 wants to merge 1 commit into
masterfrom
43-fix-lesson-metadata-specs

Conversation

@alexsdev91
Copy link
Copy Markdown
Contributor

Summary

Lesson imports under the new metadata spec (#43) were crashing with undefined method 'children' for nil because the resource-building pipeline still consumed the legacy unit/section/lesson keys. Also adds the missing [material: ID] inline tag and accepts the spec's bracketed [lms-materials] table header.

Changes

  • Lt::Lcms::Metadata::Context: read unit-id, section-number,
    lesson-number; raise on unsupported subject; guard nil parent in
    set_lesson_position; consistent all-string keys.
  • UnitResourceUpsertService / SectionResourceUpsertService: pass
    new-spec keys to Context.
  • Document#clean_curriculum_metadata: drop dead legacy lesson
    normalization.
  • DocTemplate::Tables::LmsMaterials: match bracketed header
    ([lms-materials]) via substring, consistent with lesson-prep /
    lesson-metadata.
  • New DocTemplate::Tags::MaterialTag: resolves [material: ID] to a
    link; renders a red badge in place when the identifier is unknown.

@alexsdev91 alexsdev91 force-pushed the 43-fix-lesson-metadata-specs branch from e5be30e to e1f8c98 Compare May 21, 2026 19:07
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.

1 participant