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

The GRADE_REPORT_AGGREGATION_VIEW constants seem to have no purpose

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.3
    • Component/s: Gradebook
    • Labels:
    • Database:
      Any
    • Testing Instructions:
      Hide

      Check that your site has debugging set to developer and is set to show error messages.

      In a course go to the grader, user and overview report. Check no errors are displayed.

      In the gradebook navigation go to My preferences > grader report.

      Alter "Show column averages" in some way and go back to the grader report. Check you are still getting no errors.

      Show
      Check that your site has debugging set to developer and is set to show error messages. In a course go to the grader, user and overview report. Check no errors are displayed. In the gradebook navigation go to My preferences > grader report. Alter "Show column averages" in some way and go back to the grader report. Check you are still getting no errors.
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
      MDL-31363_grade_constants

      Description

      Are they useless? If so remove them. They dont seem to be used anywhere.

      define('GRADE_REPORT_AGGREGATION_VIEW_FULL', 0);
      define('GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY', 1);
      define('GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY', 2);

        Gliffy Diagrams

          Activity

          Hide
          andyjdavis Andrew Davis added a comment -

          Adding a branch and test instructions.

          Although this a small change I feel like maybe it should only go into master. These constants are likely doing no harm in stable and there is a small chance that I'm wrong.

          Show
          andyjdavis Andrew Davis added a comment - Adding a branch and test instructions. Although this a small change I feel like maybe it should only go into master. These constants are likely doing no harm in stable and there is a small chance that I'm wrong.
          Hide
          poltawski Dan Poltawski added a comment -

          Agreed on the patch I can't see use indeed and your assessment for master only

          Show
          poltawski Dan Poltawski added a comment - Agreed on the patch I can't see use indeed and your assessment for master only
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Uhm, I've found some occurrences of those constants in contrib:

          • patches/LSU_gradebook
          • plugins/grade/report/stats
          • plugins/grade/report/visual

          But it seems to be outdated code, so applying this, thanks!

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Uhm, I've found some occurrences of those constants in contrib: patches/LSU_gradebook plugins/grade/report/stats plugins/grade/report/visual But it seems to be outdated code, so applying this, thanks!
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          lol, conflicting with yourself... np.. resolving...

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - lol, conflicting with yourself... np.. resolving...
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Integrated, thanks! (master only)

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Integrated, thanks! (master only)
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Passed based on followed testing instructions and in the no existence of uses across codebase. Ciao

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Passed based on followed testing instructions and in the no existence of uses across codebase. Ciao
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Well,

          I wish I said it every time
          you do the things you do.
          You always lend a helping hand,
          and I'm filled with gratitude.

          You are strong and generous
          for each and everyone one of us.
          I am eternally grateful,
          I cannot say thanks enough.

          Sorry for the (un)cool bit above, lol. Closing this as fixed. Ciao

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Well, I wish I said it every time you do the things you do. You always lend a helping hand, and I'm filled with gratitude. You are strong and generous for each and everyone one of us. I am eternally grateful, I cannot say thanks enough. Sorry for the (un)cool bit above, lol. Closing this as fixed. Ciao

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Jun/12