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

A prediction can be flagged more than once

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      Firstly, you will need to generate some insights for a certain model.

      1. Login as Admin.
      2. Setup  your timezone correctly, if it is not already (Site administration > Location > Location settings)
      3. Set "Debug messages" = "DEVELOPER ..." (Site administration > Development > Debugging)
      4. Create a M size test Course (Site administration > Development > Make test course)
      5. Go to Site administration > Analytics > Analytics settings
        1. Set "Analytics processes execution via command line only" = "No"
        2. Save changes.
      6. Go to Site administration > Analytics > Analytics models
      7. Edit the "Students who have not accessed the course yet" model
        1. Set Analysis interval = 10% after start
        2. Save changes go back to Analytics models page (do not close this browser tab)
      8. Open a new tab and go to the Course
      9. Edit the course
        1. Set the course start date to one minute ago
        2. Set the course end date to five minutes in the future
      10. Go back to the Analytics models page tab
      11. In the actions menu for "Students who have not accessed the course yet" click on "Execute scheduled analysis"
      12. Create a new user and give manager permission as site level in Site administration > Permissions > Assign system roles

      Test

      1. Go to the Site administration > Analytics > Analytics models.
      2. In "Students who have not accessed the course yet" choose the new course option from the "Insight" drop down.
      3. Choose one of the students in the list and open 'View details' link from 'Actions' column. Remember the name of this student.
      4. Check the student and flag as 'Accept', 'Not applicable' or 'Incorrectly flagged'
      5. Confirm your action.
      6. Confirm the student chosen in step 3 is not listed any more.
      7. Choose another student in the list and open 'View details' link from 'Actions' column in a different tab. Save the URL of that link and student's name.
      8. Go back to Insights list report.
      9. Check the student chosen in step 7. 
      10. Confirm your action.
      11. Confirm the student chosen in step 7 is not listed any more.
      12. Go back to URL opened in step 7. Reload the page.
      13. Confirm there is no checkbox to check the student.
      14. Log out as admin and log in as manager. 
      15. Go to the Site administration > Analytics > Analytics models.
      16. In "Students who have not accessed the course yet" choose the new course option from the "Insight" drop down.
      17. Confirm both students chosen in steps 3 and 7 are listed in the report.
      Show
      Setup Firstly, you will need to generate some insights for a certain model. Login as Admin. Setup  your timezone correctly, if it is not already (Site administration > Location > Location settings) Set "Debug messages" = "DEVELOPER ..." (Site administration > Development > Debugging) Create a M size test Course (Site administration > Development > Make test course) Go to Site administration > Analytics > Analytics settings Set "Analytics processes execution via command line only" = "No" Save changes. Go to Site administration > Analytics > Analytics models Edit the "Students who have not accessed the course yet" model Set Analysis interval = 10% after start Save changes go back to Analytics models page (do not close this browser tab) Open a new tab and go to the Course Edit the course Set the course start date to one minute ago Set the course end date to five minutes in the future Go back to the Analytics models page tab In the actions menu for "Students who have not accessed the course yet" click on "Execute scheduled analysis" Create a new user and give manager permission as site level in Site administration > Permissions > Assign system roles Test Go to the Site administration > Analytics > Analytics models. In "Students who have not accessed the course yet" choose the new course option from the "Insight" drop down. Choose one of the students in the list and open 'View details' link from 'Actions' column. Remember the name of this student. Check the student and flag as 'Accept', 'Not applicable' or 'Incorrectly flagged' Confirm your action. Confirm the student chosen in step 3 is not listed any more. Choose another student in the list and open 'View details' link from 'Actions' column in a different tab. Save the URL of that link and student's name. Go back to Insights list report. Check the student chosen in step 7.  Confirm your action. Confirm the student chosen in step 7 is not listed any more. Go back to URL opened in step 7. Reload the page. Confirm there is no checkbox to check the student. Log out as admin and log in as manager.  Go to the Site administration > Analytics > Analytics models. In "Students who have not accessed the course yet" choose the new course option from the "Insight" drop down. Confirm both students chosen in steps 3 and 7 are listed in the report.
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-65553-310
    • Pull 3.11 Branch:
      MDL-65553-311
    • Pull Master Branch:
      MDL-65553-master
    • Sprint:
      Moppies Kanban

      Description

      On the predictions list page and on the prediction details page, you can flag a prediction as Not useful/Acknowledged. This action hides the prediction on the predictions list page and creates a record in the analytics_prediction_actions that could be used to refine future predictions, as stated in MDL-58835.

      However, it is possible to load the prediction details page by entering directly the URL (report/insights/prediction.php?id=prediction_id) into the browser and flagging the same prediction again. It is necessary to ensure that a prediction can be flagged only once.

        Attachments

          Activity

            People

            Assignee:
            amaia Amaia Anabitarte
            Reporter:
            vmdef Víctor Déniz Falcón
            Peer reviewer:
            Carlos Escobedo Carlos Escobedo
            Integrator:
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Tester:
            Gladys Basiana Gladys Basiana
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/May/21

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 5 hours, 15 minutes
                3d 5h 15m