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

Add a new event type for course categories

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide
      Setup

      Download the smartdata.php script from https://github.com/andrewnicols/moodle-datagenerator

      This will create a pseudo-realistic course category structure with sample courses, user enrolments, role assignments, and a few events.

      Users are created with the password 'x'.
      Enrolments are as follows:

      Username Categories Courses
      adam 2017  
      bert FST  
      colin Chemistry  
      diane   CHEM101 (teacher), CHEM102 (teacher), Music Society
      emily   CHEM102 (teacher)
      fred Physics  
      gemma   PHYS101 (teacher)
      hannah   PHYS101 (teacher), PHYS102 (teacher)
      indianna FASS  
      james History  
      kenneth   HIST100 (teacher), Music Society
      lauren   HIST101 (teacher)
      mary Politics  
      niamh   POLI100 (teacher), Cinema
      oscar   PHIL100 (teacher), Cinema
      penny   CHEM100, CHEM101, Music Society (teacher)
      queenie   HIST100, HIST101, POLI100, Hiking Club
      rodney   PHYS101, PHYS101, CHEM101, Music Scoiety (teacher), Cinema
      sally   POLI100, PHIL100, HIST100, HIST101
      trevor   CHEM101, CHEM102, PHYS101, PHYS102
      una   CHEM101, CHEM102, POLI100, Music Society, Cinema (teacher)
      victor   PHYS101, PHYS102, POLI100, Hiking Club (teacher)
      william   HIST100, HIST101, POLI100, PHIL100, Hiking Club
      xanthia   POLI100, PHIL100, HIST100, Cinema
      yarloo   POLI100, PHIL100, HIST100, Music Society
      zain Students Union  

      Once this has finished, create some groups in a course.

      Event visibility test
      1. Login as bert (manager for the FST category)
      2. View the Calendar
      3. Create a new User Event
        1. Confirm it is shown in your calendar
      4. Create a new Category Event for the 'Faculty of Science and Technology'
        1. Confirm it is shown in your calendar
      5. Open the event summary
        1. Confirm that you can edit and delete the event
        2. Confirm that you are show the full path to the category
      6. Create a new Category Event for the Chemistry Department
        1. Confirm it is shown in your calendar
      7. Log off
      8. Login as indianna (manager for the FASS category)
      9. View the Calendar
      10. Confirm that you can't see Bert's events in your calendar
      11. Create a new User Event
        1. Confirm it is shown in your calendar
      12. Create a new Category Event for the 'Faculty of Arts and Social Sciences'
        1. Confirm it is shown in your calendar
      13. Create a new Category Event for the History Department
        1. Confirm it is shown in your calendar
      14. Log off
      15. Login as bert (manager for the FST category)
      16. View the Calendar
        1. Confirm that you only see your events, and the Category events that Bert created earlier
      17. Log off
      18. Login as diane (teacher in CHEM101/102)
      19. View the Calendar
        1. Confirm that you only see your events, and the Category events that Bert created earlier
      20. Open the summary for each of these events
        1. Confirm that you do not have the edit or delete buttons
        2. Confirm that you are show the full path to the category
      21. Select CHEM101 from the course dropdown at the top-left above the calendar
      22. Click on a day to create a new event on that day
        1. Confirm that the default event type is Course
        2. Confirm that the default course is CHEM101
      23. Open CHEM101
      24. Create a Choice activity - make some sensible availability dates
      25. View the calendar
        1. Confirm that you can see these dates
      26. Log off
      27. Login as gemma (teacher in PHYS101)
      28. View the Calendar
        1. Confirm that you do not see the events for the Chemistry Department
        2. Confirm that you see the event for the Faculty Induction in September
        3. Confirm that you don't see the choice events
      29. Open the summary for one of these events
        1. Confirm that you are show the full path to the category
        2. Confirm that you do not have the edit or delete buttons
      30. Log off
      31. Login as trevor (student CHEM101/102 PHYS101/102)
      32. View the Calendar
        1. Confirm that you see all of the Chemistry/Physics activity, course, and category events created so far
        2. Confirm that you don't see any of the other activities for the other categories
      33. Attempt to create a new event
        1. Confirm that you cannot create any events in any category
      34. Log off
      35. Login as penny (student CHEM101/102/PHIL100/POL100, teacher Music)
      36. View the Calendar
        1. Confirm that you see all of the Chemistry/Philisophy/Politics/Music activity, course, and category events created so far
        2. Confirm that you don't see any of the other activities for the other categories
        3. Confirm that you can't edit, or delete any of the events in the courses in which you are enrolled in as a student
      37. Create a new course event in the Music Society
      38. Open the new event
        1. Confirm that you have the edit/delete icons and that they are functional
        2. Confirm that you can't edit, or delete any other
      39. Log off
      40. Login as diane (teacher in CHEM101/102, student in Music society)
      41. View the Calendar
        1. Confirm that you can see the new Music Society event
        2. Confirm that you cannot edit, or delete the event
      UI tests
      1. Login as adam (2017-18 manager)
      2. View CHEM101 and navigate to the Chemistry Category from the breadcrumbs
      3. Turn Editing on
      4. Add the Calendar block
      5. Click on the month name to view the month view for the category
        1. Note: The course selector doesn't show categories (yet)
      6. Click on a day to create a new event on that day
        1. Confirm that the default event type is Category
        2. Confirm that the default category is Chemistry
      7. Cancel and navigate to the parent category (Faculty of Science and Technology)
      8. Add the Calendar block for the Faculty of Science and Technology category
      9. Navigate to the Faculty of Science and Technology's calendar
      10. Click on a day to create a new event on that day
        1. Confirm that the default event type is Category
        2. Confirm that the default category is Faculty of Science and Technology
      11. Log off
      12. Login as diane
      13. View the Calendar
      14. Use the previous/next buttons to navigate the months
        1. Confirm that the threemonth view updates and that only the relevant events are shown
      Further tests
      1. Create some user, group, course, category, and site events
        1. Confirm you can create them
        2. Confirm you can edit them
        3. Confirm you can delete them
      Additional

      Run a smoke test on category calendars and see that they work as you expect

      Show
      Setup Download the smartdata.php script from https://github.com/andrewnicols/moodle-datagenerator This will create a pseudo-realistic course category structure with sample courses, user enrolments, role assignments, and a few events. Users are created with the password ' x '. Enrolments are as follows: Username Categories Courses adam 2017   bert FST   colin Chemistry   diane   CHEM101 (teacher), CHEM102 (teacher), Music Society emily   CHEM102 (teacher) fred Physics   gemma   PHYS101 (teacher) hannah   PHYS101 (teacher), PHYS102 (teacher) indianna FASS   james History   kenneth   HIST100 (teacher), Music Society lauren   HIST101 (teacher) mary Politics   niamh   POLI100 (teacher), Cinema oscar   PHIL100 (teacher), Cinema penny   CHEM100, CHEM101, Music Society (teacher) queenie   HIST100, HIST101, POLI100, Hiking Club rodney   PHYS101, PHYS101, CHEM101, Music Scoiety (teacher), Cinema sally   POLI100, PHIL100, HIST100, HIST101 trevor   CHEM101, CHEM102, PHYS101, PHYS102 una   CHEM101, CHEM102, POLI100, Music Society, Cinema (teacher) victor   PHYS101, PHYS102, POLI100, Hiking Club (teacher) william   HIST100, HIST101, POLI100, PHIL100, Hiking Club xanthia   POLI100, PHIL100, HIST100, Cinema yarloo   POLI100, PHIL100, HIST100, Music Society zain Students Union   Once this has finished, create some groups in a course. Event visibility test Login as bert (manager for the FST category) View the Calendar Create a new User Event Confirm it is shown in your calendar Create a new Category Event for the 'Faculty of Science and Technology' Confirm it is shown in your calendar Open the event summary Confirm that you can edit and delete the event Confirm that you are show the full path to the category Create a new Category Event for the Chemistry Department Confirm it is shown in your calendar Log off Login as indianna (manager for the FASS category) View the Calendar Confirm that you can't see Bert's events in your calendar Create a new User Event Confirm it is shown in your calendar Create a new Category Event for the 'Faculty of Arts and Social Sciences' Confirm it is shown in your calendar Create a new Category Event for the History Department Confirm it is shown in your calendar Log off Login as bert (manager for the FST category) View the Calendar Confirm that you only see your events, and the Category events that Bert created earlier Log off Login as diane (teacher in CHEM101/102) View the Calendar Confirm that you only see your events, and the Category events that Bert created earlier Open the summary for each of these events Confirm that you do not have the edit or delete buttons Confirm that you are show the full path to the category Select CHEM101 from the course dropdown at the top-left above the calendar Click on a day to create a new event on that day Confirm that the default event type is Course Confirm that the default course is CHEM101 Open CHEM101 Create a Choice activity - make some sensible availability dates View the calendar Confirm that you can see these dates Log off Login as gemma (teacher in PHYS101) View the Calendar Confirm that you do not see the events for the Chemistry Department Confirm that you see the event for the Faculty Induction in September Confirm that you don't see the choice events Open the summary for one of these events Confirm that you are show the full path to the category Confirm that you do not have the edit or delete buttons Log off Login as trevor (student CHEM101/102 PHYS101/102) View the Calendar Confirm that you see all of the Chemistry/Physics activity, course, and category events created so far Confirm that you don't see any of the other activities for the other categories Attempt to create a new event Confirm that you cannot create any events in any category Log off Login as penny (student CHEM101/102/PHIL100/POL100, teacher Music) View the Calendar Confirm that you see all of the Chemistry/Philisophy/Politics/Music activity, course, and category events created so far Confirm that you don't see any of the other activities for the other categories Confirm that you can't edit, or delete any of the events in the courses in which you are enrolled in as a student Create a new course event in the Music Society Open the new event Confirm that you have the edit/delete icons and that they are functional Confirm that you can't edit, or delete any other Log off Login as diane (teacher in CHEM101/102, student in Music society) View the Calendar Confirm that you can see the new Music Society event Confirm that you cannot edit, or delete the event UI tests Login as adam (2017-18 manager) View CHEM101 and navigate to the Chemistry Category from the breadcrumbs Turn Editing on Add the Calendar block Click on the month name to view the month view for the category Note: The course selector doesn't show categories (yet) Click on a day to create a new event on that day Confirm that the default event type is Category Confirm that the default category is Chemistry Cancel and navigate to the parent category (Faculty of Science and Technology) Add the Calendar block for the Faculty of Science and Technology category Navigate to the Faculty of Science and Technology's calendar Click on a day to create a new event on that day Confirm that the default event type is Category Confirm that the default category is Faculty of Science and Technology Log off Login as diane View the Calendar Use the previous/next buttons to navigate the months Confirm that the threemonth view updates and that only the relevant events are shown Further tests Create some user, group, course, category, and site events Confirm you can create them Confirm you can edit them Confirm you can delete them Additional Run a smoke test on category calendars and see that they work as you expect
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-59890-master

      Description

      Add a new event type for course categories

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17