Skip to content

_completionCriteria._requireContentCompleted is not written to config.json #2842

@kaveritekawade

Description

@kaveritekawade

When a course uses the default completion criteria (_requireContentCompleted), this setting is not written to the exported config.json. Other completion criteria values are written correctly, but the default value is omitted.

This creates inconsistency in the exported configuration and makes it unclear whether completion criteria were intentionally configured or omitted.

Expected Behaviour

When _completionCriteria is set to _requireContentCompleted, it should be explicitly listed in config.json, the same way other _completionCriteria values are.

Example:
"_completionCriteria": {
"_requireContentCompleted": true
}

Actual Behaviour

If _completionCriteria is set to _requireContentCompleted (the default value), the _completionCriteria object is not included in config.json after export.
Other _completionCriteria options are written when selected.

Steps to Reproduce

  1. Create a new course in the Authoring Tool
  2. Leave _completionCriteria at its default value (_requireContentCompleted)
  3. Complete the course or export it
  4. Open the exported config.json
  5. Observe that _completionCriteria is missing

Versions

  • Authoring Tool Version: 0.11.5
  • Framework Version: 5.53.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions