← Back to team overview

mahara-contributors team mailing list archive

[Bug 1999456] [NEW] Inconsistent loading of Views on Collections

 

Public bug reported:

While resolving a behat error I found that $collection->views was not
consistently populating.  It was also reliably not populating on the
same behat step.

When this is run outside of the Behat context this works fine.

We should figure out why this does not populate when being tested in
behat but does work when tested in a dev environment.

This has been resolved by checking for the views parameter being
populated and, if not, call the views() method to populate it.

The bandaid is located here:
https://reviews.mahara.org/c/mahara/+/13463/20/htdocs/lib/collection.php#1172

The behat step that was failing is this one:
https://git.mahara.org/mahara/mahara/-/blob/main/test/behat/features/site_content/group_view_block.feature#L259

** Affects: mahara
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1999456

Title:
  Inconsistent loading of Views on Collections

Status in Mahara:
  New

Bug description:
  While resolving a behat error I found that $collection->views was not
  consistently populating.  It was also reliably not populating on the
  same behat step.

  When this is run outside of the Behat context this works fine.

  We should figure out why this does not populate when being tested in
  behat but does work when tested in a dev environment.

  This has been resolved by checking for the views parameter being
  populated and, if not, call the views() method to populate it.

  The bandaid is located here:
  https://reviews.mahara.org/c/mahara/+/13463/20/htdocs/lib/collection.php#1172

  The behat step that was failing is this one:
  https://git.mahara.org/mahara/mahara/-/blob/main/test/behat/features/site_content/group_view_block.feature#L259

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1999456/+subscriptions



Follow ups