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

Convert the mod/data legacy filter to 2.0 one

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2
    • 2.2
    • Filters
    • None
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE
    • Hide

      NOTE: Testing this requires access to integration.git to switch/install from different branches.

      1) Install Moodle 2.1

      2) Enable the data filter @ admin (off but available) and set "Text cache lifetime" = No

      3a) Create one new course, one data activity (name and description, of type text and textarea, with the name linking option checked). Add 2-3 records.

      3b) Create one data activity @ front page (also name and description, with the name linking option checked). Add 2-3 records.

      4) Create one paragraph of text containing those words (name field).

      5) Put he paragraph in various places:

      • One forum post in the same course
      • One forum post in another course
      • One label in own course
      • One label in front page
      • In the own course intro
      • In own course category description

      6) TEST: Initially those words won't be linked (because @ 1) we have added the filter but off by default).

      7) Enable the data filter in the 6 places where you have created the paragraph. It's not important if the links start to work or no, some of them will and others won't you can ignore it in 2.1.

      8) Verify that there are 7 records in the filter_active table with mod/data

      9) Upgrade to master (integration.git)

      10) Verify that there are 7 records in the filter_active table with filter/data and 0 with the old mod/data

      11) Verify that the links to the records work as expected, with the 6 places linking properly to the record. Note that the records added to the course (3a) only will be linked from within the course, and not at category or frontpage contexts. In the other side the records added to the frontpage activity should be linked from everywhere (they are sort of global).

      12) Play disabling and enabling the filter at different contexts, filter does its job accordingly.

      Show
      NOTE: Testing this requires access to integration.git to switch/install from different branches. 1) Install Moodle 2.1 2) Enable the data filter @ admin (off but available) and set "Text cache lifetime" = No 3a) Create one new course, one data activity (name and description, of type text and textarea, with the name linking option checked). Add 2-3 records. 3b) Create one data activity @ front page (also name and description, with the name linking option checked). Add 2-3 records. 4) Create one paragraph of text containing those words (name field). 5) Put he paragraph in various places: One forum post in the same course One forum post in another course One label in own course One label in front page In the own course intro In own course category description 6) TEST: Initially those words won't be linked (because @ 1) we have added the filter but off by default). 7) Enable the data filter in the 6 places where you have created the paragraph. It's not important if the links start to work or no, some of them will and others won't you can ignore it in 2.1. 8) Verify that there are 7 records in the filter_active table with mod/data 9) Upgrade to master (integration.git) 10) Verify that there are 7 records in the filter_active table with filter/data and 0 with the old mod/data 11) Verify that the links to the records work as expected, with the 6 places linking properly to the record. Note that the records added to the course (3a) only will be linked from within the course, and not at category or frontpage contexts. In the other side the records added to the frontpage activity should be linked from everywhere (they are sort of global). 12) Play disabling and enabling the filter at different contexts, filter does its job accordingly.

      While we have been supporting legacy filters and legacy locations till 2.2, it's time convert the legacy core data filter to proper one. That will:

      • fix problems like MDL-27961
      • allow to deprecate, ban and cleanup (along 2.2, 2.3 and 2.4) all the old filters stuff

      Ciao

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Sam Hemelryk Sam Hemelryk
            Aparup Banerjee Aparup Banerjee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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