mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #23908
[Bug 1401210] Re: Watching a page with a journal block
Testing instructions for these patches:
Basically, what these should do is ensure that you will receive a
watchlist notification if you are following a page containing a
"Journal", "Recent journal entries", or "Tagged journal entries" block,
and a journal entry displayed in one of those blocks is edited or a new
journal entry is published.
Here's what I did for testing:
1. In your config.php file, set "$CFG->watchlistnotification_delay=0;".
Otherwise, you'll have to wait 15 minutes for any watchlist
notifications to go out. (This was part of the bug fix to consolidate
multiple watchlist for the same page.)
2. Create an "author" user account, and a "watcher" user account. For
ease of testing, I like to log in as the "author" user and then launch a
Firefox "private" window to log in simultaneously as the "watcher"
account.
3. In the "watcher" user account, set Watchlist notifications to "Inbox"
instead of the default "Email". This will make them show up as "new" in
your inbox, which makes testing easier.
4. Log in as the author. Create 2 or 3 journals, each with 2 or 3
journal entries. Give the journal entries some overlapping tags as well.
This will provide data for testing the blocks.
5. Create a page with a "Journal" block. Create another page with a
"Recent journal entries" block, and another page with a "Tagged journal
entries" block.
6. Share these three pages with the "watcher" user.
7. Log in as the watcher. Add all three pages to your watchlist.
8. As the author, write a new blog entry which will show up in one or
more of the pages.
9. Run the watchlist_process_notifications cron task. This cron task is
scheduled to run once per minute, so if your cron is not actively
scheduled, just manually running the cron should do it. (To run it more
frequently, you'll need to go into your database and do "update cron set
nextrun=null where callfunction='watchlist_process_notification';"
before each cron run.)
10. Expected Result: As the watcher, you should see watchlist
notifications for the pages where the new blog entry shows up.
11. As the author, write a new blog entry which would show up in one or
more of the pages, BUT, make it a draft.
12. Run the watchlist_process_notifications cron task.
13. Expected Result: As the watcher, you should NOT see any new
watchlist notifications. Journal entries should not fire watchlist
notifications until they are published.
14. As the author, go to your Content -> Journal page, and click the
"Publish" button next to the draft journal entry.
15. Run the watchlist_process_notifications cron task
16. Expected Result: As the watcher, you should see
watchlist_notifications for the pages where the new blog entry shows up.
--
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/1401210
Title:
Watching a page with a journal block
Status in Mahara ePortfolio:
Confirmed
Bug description:
A page of user A is on the watchlist of user B.
The page contains a journal block. When user A updates is journal by
adding a new article, the new article is displayed in the page but
there is no notification to user B that user A has updated is journal.
This situation is the same with a journal block, a recent journal
entry block and tagged journal entry block.
It would be nice either to have the option to add the block to the
watchlist, specifically or to make sure that when a page is on a
watchlist all modifications including a new journal entry in a block
trigger a notification.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1401210/+subscriptions
References