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

Global on/off switch for analytics

XMLWordPrintable

    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-65585_master
    • Hide
      1. Install a new site
      2. Log in as admin
      3. You SHOULD see an Analytics category under Site administration with three nodes below it Site information, Analytics settings and Analytics models
      4. Go to Site administration > Advanced features
      5. You SHOULD see a new Analytics option, with its default value to enabled.
      6. Disable Analytics and save the changes
      7. You SHOULD NOT see an Analytics category under Site administration
      8. Navigate to admin/tool/analytics/index.php typing the URL in the browser
      9. You SHOULD get a Section error! error
      10. Go to report/insights/insights.php?contextid=1
      11. You SHOULD get a Analytics is disabled. You can enable it in "Site administration > Advanced features". notification with a Continue button
      12. Go to CLI and execute php admin/tool/analytics/cli/evaluate_model.php
      13. You SHOULD get a Analytics is disabled. You can enable it in "Site administration > Advanced features". message
      14. Run the following commands in CLI, you SHOULD always get a Analytics is disabled. You can enable it in "Site administration > Advanced features for each of them.

        php admin/tool/task/cli/schedule_task.php --execute="\tool_analytics\task\predict_models"
        php admin/tool/task/cli/schedule_task.php --execute="\tool_analytics\task\train_models"
        php admin/tool/task/cli/schedule_task.php --execute="\core\task\analytics_cleanup_task"
        

      15. Enable analytics in Site administration > Advanced features
      16. Run the following commands in CLI, you SHOULD NOT get any Analytics is disabled. You can enable it in "Site administration > Advanced features" message.

        php admin/tool/task/cli/schedule_task.php --execute="\tool_analytics\task\predict_models"
        php admin/tool/task/cli/schedule_task.php --execute="\tool_analytics\task\train_models"
        php admin/tool/task/cli/schedule_task.php --execute="\core\task\analytics_cleanup_task"
        

      Show
      Install a new site Log in as admin You SHOULD see an Analytics category under Site administration with three nodes below it Site information , Analytics settings and Analytics models Go to Site administration > Advanced features You SHOULD see a new Analytics option, with its default value to enabled. Disable Analytics and save the changes You SHOULD NOT see an Analytics category under Site administration Navigate to admin/tool/analytics/index.php typing the URL in the browser You SHOULD get a Section error! error Go to report/insights/insights.php?contextid=1 You SHOULD get a Analytics is disabled. You can enable it in "Site administration > Advanced features". notification with a Continue button Go to CLI and execute php admin/tool/analytics/cli/evaluate_model.php You SHOULD get a Analytics is disabled. You can enable it in "Site administration > Advanced features". message Run the following commands in CLI, you SHOULD always get a Analytics is disabled. You can enable it in "Site administration > Advanced features for each of them. php admin/tool/task/cli/schedule_task.php --execute="\tool_analytics\task\predict_models" php admin/tool/task/cli/schedule_task.php --execute="\tool_analytics\task\train_models" php admin/tool/task/cli/schedule_task.php --execute="\core\task\analytics_cleanup_task" Enable analytics in Site administration > Advanced features Run the following commands in CLI, you SHOULD NOT get any Analytics is disabled. You can enable it in "Site administration > Advanced features" message. php admin/tool/task/cli/schedule_task.php --execute="\tool_analytics\task\predict_models" php admin/tool/task/cli/schedule_task.php --execute="\tool_analytics\task\train_models" php admin/tool/task/cli/schedule_task.php --execute="\core\task\analytics_cleanup_task"

      Analytics models work like scheduled tasks, they can be disabled manually. The tasks that execute analytics processes can also be disabled. A global on/off switch still seems needed for people that wants to completely switch them off.

            dmonllao David Monllaó
            dmonllao David Monllaó
            Luca Bösch Luca Bösch
            Jake Dallimore Jake Dallimore
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 45 minutes
                4h 45m

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