adapt-security / adapt-authoring

A server-based user interface for authoring eLearning courses using the Adapt framework.
http://adaptlearning.org
10 stars 5 forks source link

adapt-authoring-adaptFramework - export, publish and build output is missing content. Schema question. #267

Closed deltanetdan closed 4 years ago

deltanetdan commented 4 years ago

Export, publish and build contain empty arrays in the contentobject, article and block JSON files.

This is probably because _courseId is not defined in any schema for these collections and is therefore added as a string rather than an objectId.

Adding a schema containing _courseId for these three collections could resolve the issue, if so where should this be added? In the framework schema (like config and components JSON) or in adapt-authoring-content selectively extending contentobjects, articles and blocks?

taylortom commented 4 years ago

Can I check you're pulling down my fork of the framework: https://github.com/adapt-security/adapt-authoring-adaptFramework/blob/master/package.json#L17

...which has a 'content' schema that includes the _courseId https://github.com/taylortom/adapt_framework/blob/master/src/core/schema/content.schema.json#L83-L90

taylortom commented 4 years ago

@deltanetdan can this one be closed now?

deltanetdan commented 4 years ago

Closing as fixed by using the framework fork mentioned above.