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

New callback to override data for timeline classification

    XMLWordPrintable

Details

    • Improvement
    • Status: Waiting for feedback
    • Minor
    • Resolution: Unresolved
    • 4.0
    • None
    • Course
    • MOODLE_400_STABLE
    • MDL-72905-master
    • Hide
      1. Install helper plugin:

        git clone git@github.com:golenkovm/moodle-local_mdl_helper.git local/mdl_helper/
        

      2. Create two users,
      3. Create a role with shortname paststudent and Student archetype,
      4. Create Course 1,
      5. Enrol User 1 with Student role,
      6. Enrol user 2 with Past student role,
      7. Navigate to /my/indexsys.php page,
      8. Add Course overview block,
      9. Click Reset dashboard for all users,
      10. Login as User 1,
      11. Confirm, that Course 1 is displayed under In progress Course overview filter,
      12. Confirm, that Course 1 is not displayed under Past filter,
      13. Login as User 2,
      14. Confirm, that Course 1 is not displayed under In progress Course overview filter,
      15. Confirm, that Course 1 is displayed under Past filter.
      Show
      Install helper plugin: git clone git @github .com:golenkovm/moodle-local_mdl_helper.git local/mdl_helper/ Create two users, Create a role with shortname paststudent and Student archetype, Create Course 1, Enrol User 1 with Student role, Enrol user 2 with Past student role, Navigate to /my/indexsys.php page, Add Course overview block, Click Reset dashboard for all users , Login as User 1, Confirm , that Course 1 is displayed under In progress Course overview filter, Confirm , that Course 1 is not displayed under Past filter, Login as User 2, Confirm , that Course 1 is not displayed under In progress Course overview filter, Confirm , that Course 1 is displayed under Past filter.

    Description

      Some universities have their own vision on how to consider courses to be Past courses or Future courses.
      To be able to meet their requirements it would be good to implement a new callback for course_classify_for_timeline() function so plugins could override some course or completion data.

      Attachments

        Activity

          People

            mikhailgolenkov Misha Golenkov
            mikhailgolenkov Misha Golenkov
            Dmitrii Metelkin Dmitrii Metelkin
            Ilya Tregubov Ilya Tregubov
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m