Be able to copy a group

Bug #1594579 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

Allow group/site admins to be able to copy a group.

The things to copy should be:

1) The group settings of the original group.
- Will need to adjust the group name similarly to the way copying a page works to avoid duplicate group names.

2) Pages/collections in group.
- Will need to be done the same way copying a page/collection works now so that any copied files end up in a 'viewfiles' folder in the Files section.

3) Copying journals like we currently do when they are placed into a page.
- If a journal is placed into two pages that are copied, it's only copied once.

4) Copying of the old group homepage will need to be done instead of using the default homepage created via template.

5) Copying files like we currently do when they are placed into a page.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/6607

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "master" branch: https://reviews.mahara.org/6608

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/6607
Committed: https://git.mahara.org/mahara/mahara/commit/33b484bf7207f99e7bd3c35e8a4a3bd498dc66f2
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 33b484bf7207f99e7bd3c35e8a4a3bd498dc66f2
Author: Robert Lyon <email address hidden>
Date: Wed May 4 14:47:56 2016 +1200

Bug 1594579: Allowing a group to be duplicated

This patch does the copying of:

- The group settings - and renames the group to a new unique name
- Views/collections - the same way we copy them now so that copied files
end up in 'viewfiles' folder.
- The group homepage by copying the old homepage like a normal
page then move the blocks from it to the new homepage and then deleting the
duplicated homepage.
- Adding copy buttons to the admin/groups list, the my groups list,
and group homepage.

Still to do:

Make sure we don't duplicate more than one copy of a journal if the
journal is within more than one page/block

behatnotneeded - behat file to come later

Change-Id: Ibd74d1bdf76c3488d4af3735dba9c7b5f773e2f7
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/6608
Committed: https://git.mahara.org/mahara/mahara/commit/baac44f1edfb55136d7a2d06d49533235e4e71ba
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit baac44f1edfb55136d7a2d06d49533235e4e71ba
Author: Robert Lyon <email address hidden>
Date: Tue Jun 21 11:26:45 2016 +1200

Bug 1594579: Copy view artefacts only once

Rather than copy the same artefact once per page we should only copy
it once per copy of page(s) transaction. Eg if we are to copy a
collection of 5 pages and they all have a block pointing to the same
image we should copy that image only once not 5 times.

behatnotneeded - behat file to come

Change-Id: Iecdde53515cdd9d5ee02918252b486aa0f662fab
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Thanks to PH Bern and SWITCHportfolio for this new feature.

tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.