Skip to content

Extensions go missing from components #2467

@dancgray

Description

@dancgray

Expected Behaviour

Components should always show the correct extension fields

Actual Behaviour

Component schema is cached causing extension information to not be displayed in some circumstances

Steps to Reproduce

  1. Create two dummy courses, Course A and Course B
  2. Add Page level progress extension to course A
  3. Add a text component to course A and edit (notice PLP extension is correctly shown) the text component clicking save
  4. Open course B and add a text component and edit the text component clicking save, notice no extensions are show (which is correct)
  5. Go back to edit the text component in course A, notice that the PLP form is missing as per image below:

Screenshot 2019-11-05 at 14 42 03

This is almost identical to #1215 except for components. We are still caching schemas that are not on a hard coded list. When adding components the type value is "text", isVolatileType is false and the last schema for in this case "text" is cached here.

Can we safely remove this schema cache from scaffold?

Versions

  • Authoring Tool Version: master branch
  • Framework Version: v2.4.0
  • Node.js Version: v12.11.1
  • MongoDB Version: v3.6
  • Operating System: MacOSX
  • Browser: Chrome 78

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: mergedCompleted, reviewed, and merged issuesT: bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions