Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-84347

Investigate if the course reactive state needs both cm.isoverallcomplete and cm.completionstate

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0
    • Course

      While fixing MDL-84243 I discover the course reactive state has two different attributes for the activity completion:

      • cm.isoverallcomplete (boolean): is contains a boolean indicating if the activity is completed
      • cm.completionstate (integer): it seems to be the database completion value

      I believe the front end may not require both values. I hypothesised that we initially used the completion state because it was quickly retrieved from the database. Still, I later realized it wasn't sufficient, leading us to add the second value instead of replacing it.

      This task is about:

      • Investigate the origin of both values
      • Decide if we can unify them
        • If so, create an issue to improve the current implementation.

       

            Unassigned Unassigned
            tusefomal Ferran Recio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.