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

Show the site models list if no modelid is set in admin/tool/analytics/cli/evaluate_model.php

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5
    • Component/s: Analytics
    • Labels:
    • Testing Instructions:
      Hide

      1. Run

      php admin/tool/analytics/cli/evaluate_model.php

      make sure you get a list of models with status.

      2. Run

      php admin/tool/analytics/cli/evaluate_model.php --list

      result should be same.

      3. Run

      php admin/tool/analytics/cli/evaluate_model.php --modelid=2

      you should no longer get the models list.

      4. Run

      php admin/tool/analytics/cli/evaluate_model.php --help

      make sure a help string is printed.

      5. Run

      php admin/tool/analytics/cli/enable_model.php

      make sure you get a list of models with status.

      6. Run

      php admin/tool/analytics/cli/enable_model.php --list

      result should be same.

      7. Run

      php admin/tool/analytics/cli/enable_model.php --modelid=1 --timesplitting="\core\analytics\time_splitting\quarters"

      you should only see a success message.

      8. Run

      php admin/tool/analytics/cli/enable_model.php --help

      make sure a help string is printed.

      Show
      1. Run php admin/tool/analytics/cli/evaluate_model.php make sure you get a list of models with status. 2. Run php admin/tool/analytics/cli/evaluate_model.php --list result should be same. 3. Run php admin/tool/analytics/cli/evaluate_model.php --modelid= 2 you should no longer get the models list. 4. Run php admin/tool/analytics/cli/evaluate_model.php --help make sure a help string is printed. 5. Run php admin/tool/analytics/cli/enable_model.php make sure you get a list of models with status. 6. Run php admin/tool/analytics/cli/enable_model.php --list result should be same. 7. Run php admin/tool/analytics/cli/enable_model.php --modelid= 1 --timesplitting= "\core\analytics\time_splitting\quarters" you should only see a success message. 8. Run php admin/tool/analytics/cli/enable_model.php --help make sure a help string is printed.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull Master Branch:
      MDL-59574-master

      Description

      As suggested by Andrew in MDL-57791 review we could show the list of models if no model is specified.

        Attachments

          Activity

            People

            Assignee:
            ankit_frenz Ankit Agarwal
            Reporter:
            dmonllao David Monllaó
            Peer reviewer:
            David Monllaó
            Integrator:
            Jun Pataleta
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Elizabeth Dalton, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/May/18