Illustration of connected portfolio elements

Portfolios for your
learning community

Try out Mahara

Create portfolios

Using Mahara, students and staff create their personal learning stories by uploading evidence of activities they have participated in, and embedding publicly accessible content they have previously put online. They can write reflections on their experiences that frame this evidence, map it to competencies or registration requirements, and provide necessary context.

Mahara can be used for many different portfolio purposes, such as study, professional development, work-integrated learning, assessment, showcase and presentation, and employability.

Learn about the portfolio options

Illustration of a person with their portfolio
Illustration of a paper airplane representing sharing

Share work

Mahara allows portfolios to be shared flexibly with one person, a specific group of people, or the entire world. Access can be further restricted to a particular time frame or just within an assessment task.

Find out about sharing portfolios

Engage with others

Mahara makes it easy to comment and give feedback. Portfolios can also be submitted to learning management systems via LTI (Learning Tools Interoperability) for marking.

Groups in Mahara allow people to create portfolios collaboratively and engage in forum discussions.

Learn about collaborating in Mahara

Illustration of a group of people collaborating
Illustration of a podcast logo

Listen to portfolio stories

In our podcast 'Create. Share. Engage.' portfolio practitioners, researchers, learning designers, and portfolio authors share their journey. Learn how they navigate the many different facets of portfolios in general, and Mahara specifically.

Listen on the podcast website or in your favourite app

Mahara Community

Deleted Group: Missing content on restore

anonymous profile picture
Account deleted
Posts: 1
03 April 2014, 22:33

Hi all..

A user here deleted a group.

I've managed to re-enable it by modifying the 'deleted' field in the database table, however all the content has vanished!!..

I got an old copy of the database and restored all the rows for the 'artefact' table that related to that group ID, but still the group has no content in it :-/..

Anyone have any ideas? It's almost like I need to reload the cache or something I don't see why it's missing

Thank you in advance

Robert Lyon's profile picture
Robert Lyon
Posts: 822
07 April 2014, 10:42

Re: Deleted Group: Missing content on restore

Hi Adam,

When one deletes a group the following commands also happen (as well as updating the group to marked as deleted), so you will need to look in your old copy for rows in those tables relating to the id of the deleted group and add the missing data back in.


    delete_records('group_member_invite', 'group', $group->id);
    delete_records('group_member_request', 'group', $group->id);
    delete_records('view_access', 'group', $group->id);
 
    // Delete views owned by the group
    require_once(get_config('libroot') . 'view.php');
    foreach (get_column('view', 'id', 'group', $group->id) as $viewid) {
        $view = new View($viewid);
        $view->delete();
    }

    // Release views submitted to the group
    foreach (get_column('view', 'id', 'submittedgroup', $group->id) as $viewid) {
        $view = new View($viewid);
        $view->release();
    }

    // Delete artefacts
    require_once(get_config('docroot') . 'artefact/lib.php');
    ArtefactType::delete_by_artefacttype(get_column('artefact', 'id', 'group', $group->id));

    // Delete forums
    require_once(get_config('docroot') . 'interaction/lib.php');
    foreach (get_column('interaction_instance', 'id', 'group', $group->id) as $forumid) {
        $forum = interaction_instance_from_id($forumid);
        $forum->delete();
    }

Klaus Steitz's profile picture
Klaus Steitz
Posts: 18
23 April 2015, 20:02

Re: Deleted Group: Missing content on restore

Thanks for that information!

We got the same problem, group deleted by an user;
set the "deleted" field in database from "1" to "0", but all content is missing now.

Is there some kind of restore-script or something planned? Restoring all the content by hand according to the list posted here is a timekiller and in my mind unreasonable.

What´s about group-backups, like course-backups in Moodle (maybe even automated too)?

Thanks for answers!

Aaron Wells's profile picture
Aaron Wells
Posts: 896
24 April 2015, 11:11

Re: Deleted Group: Missing content on restore

There's a wishlist item for Backup & Restore of groups, but it's not in active development at the moment.

If you'd like to speed it up, you can click the "This bug affects me" link, and/or if you've got some budget, sponsor its development. https://bugs.launchpad.net/mahara/+bug/732971

Cheers,

Aaron