mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #18799
[Bug 1316324] Re: Add activity stream block
Sure, testing instructions (applicable to current version, but should
still be mostly applicable in the future):
In Setting -> Notificaitons, select Home stream for one or more activity
types. Currently only New page access and Feedback are enabled.
Add the Activity stream block to your dashboard, profile page and group
page. If you did a fresh install then these pages (and the template
pages) should already contain these, so you don't have to do it manually
(I'm not sure if I included it in the group page template). Before
merging to Mahara, we should put the templates back to normal (unless
you want to have AS included by default).
Perform some activities. Currently you're limited to changing the access
on a page and placing feedback on a page or artefact. To do any useful
testing, you'll need to add the AS blocks to other users' pages and
perform actions with multiple users.
Look at the AS content. It should reflect the activities you've
performed. It does some clever things like group the same activities on
the same objects, so it might say 'John and 2 others made 5 comments on
Lisa's page "Banana poem"'. Look out for any gramatical errors or links
that don't work.
There are a bunch of different criteria that determine what should be in
an AS. The paragraph at the start of the fist post gives a basic
overview of what should be where. Keep an eye out for anything that is
visible to a user who shouldn't be able to see it. You could also try
changing Notification settings to see that they correctly affect the
contents of only the dashboard AS. Changing sharing permissions on pages
and artefacts should change what a user sees when viewing another user's
profile or portfolio page AS.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1316324
Title:
Add activity stream block
Status in Mahara ePortfolio:
Confirmed
Bug description:
This is a bug to keep track of the Activity Stream block that we are
implementing.
The activity stream block which can be placed in any page and will display different content depending on the viewer and the type of the page:
- User dashboard: Show activities that are of interest to the user. Items shown here are affected by the user's Notification settings. Only items that the user has access to will be displayed.
- User page: Shows activities that the page owner has performed. The contents of this block are filtered by the sharing permissions of the items relative to the viewer. The owner will see all actions they have performed. Any other user will show the actions that the owner performed, but only for items that are shared with them.
- Group and Institution pages: Show activities that relate to the group or institution. The contents are filtered to only show items that are shared with the viewer. It assumes that the user viewing the stream has access to the group or institution.
This is a complicated patch, so here are some notes to help explain
things:
A 'homestream' notification plugin has been implemented. It is
basically a placeholder, as the processing of activities happens
within the activity stream block.
Activity types have to be updated to be able to be included in the
activity stream. We've got plans to implement a large set of new
activity types and refactor more of the existing activity types. This
first version (we intend to) only include refactors of two existing
activity types - "New page access" and "Feedback". Others will be
implemented after the initial patch is merged.
The code for selecting items to show in the activity streams is
complex and has been broken down into several smaller pieces to allow
for testing and easier maintenance. We've implemented a set of php
units tests to make sure that the correct activities are showing in
the correct streams. This testing is important because it ensures that
users will only see activities that they are entitled to see, to
maintain privacy.
All of the above is subject to change. Check the following comments.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1316324/+subscriptions
References