Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5214

View patterns by view name (e.g. ##viewlink:<viewname>##) are not processed in acceptance tests.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.4, 2.7.1
    • 2.6.4, 2.7.1
    • Set: Dataform
    • None
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE

    Description

      View patterns by view name (e.g. ##viewlink:<viewname>##) are not processed in acceptance tests.

      Apparently this is because view_manager::get_views_menu() that is called for generating the patterns for all existing views, uses a static variable to store the menu, and since the acceptance test is essentially a run of one script, this static variable is set once empty on an earlier call and never get updated.

      A fix removes the static variable, to the effect that there is a DB access every time the view_manager::get_views_menu() is called. To reduce these DB accesses, simple caches should be implemented as needed where this method is called.

      Attachments

        Activity

          People

            itamart Itamar Tzadok
            itamart Itamar Tzadok
            Itamar Tzadok Itamar Tzadok
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Jul/14