Comment 5 for bug 1396565

Revision history for this message
Eduardo (o-eduardo) wrote : Re: Error when adding a Group pages bloc onto a group home page

Robert fixed it so that you can only add 1 block to the group homepage. If you upgraded your site from pre 1.10, the upgrade script will look at the settings of all the group pages blocks that were on the group homepage and merges their settings.

Therefore, there are a few different test scenarios to test:

1. Fresh Mahara install: You can only add one "Group pages" block to the group homepage. (also Behat test)

2. Fresh Mahara install: Check that you can't add a second "Group pages" block to the group pages template page in Administration -> Configure site -> Pages.

3. Upgrade from Mahara 1.9 to 15.04 master with only one "Group pages" block on the group homepage.
- choose some non-default settings
- have 5 pages shared with the group by another user
- ensure that the chosen settings are still applied after the upgrade
- check that you can only add one "Group pages" block to the group homepage after the upgrade
- after the upgrade, change the "Entries per page" setting to 3 and check that the paginator works.

4. Upgrade from Mahara 1.9 to 15.04 with a minimum of "Group pages" blocks on the group homepage (there are 3 possible combinations that make sense: Yes - No, No - Yes, Yes - Yes) . Set up 3 different groups to test various combinations of the settings and also choose different group types (1 open, 1 controlledallowing submissions, 1 request). Do a 4th test where one block is set to No-No and another to either Yes-No or No-Yes just to check the negative works as well.
- have 5 pages by another user shared with the group and 5 pages submitted to the group if it is a group that allows submissions
- ensure that the chosen settings are merged after the upgrade. Note down which settings result so it can be double-checked that this is the expected behavior.
- check that you can only add one "Group pages" block to the group homepage after the upgrade
- after the upgrade, change the "Entries per page" setting to 3 and check that the paginator works and that all the pages that were displayed before the upgrade still show up after in their respective categories. Also log in as the other user in the group that allowed submissions to also check that you can only see any pages that have been shared with the group but not ones that have been submitted.