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
- Create two dummy courses, Course A and Course B
- Add Page level progress extension to course A
- Add a text component to course A and edit (notice PLP extension is correctly shown) the text component clicking save
- Open course B and add a text component and edit the text component clicking save, notice no extensions are show (which is correct)
- Go back to edit the text component in course A, notice that the PLP form is missing as per image below:

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
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
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
typevalue 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