Issue Details (XML | Word | Printable)

Key: MDL-14394
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: Petr Škoda (skodak)
Votes: 6
Watchers: 10
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

bulk posting into all groups when forum in separate mode

Created: 17/Apr/08 04:17 AM   Updated: 26/Nov/08 08:35 PM
Component/s: Forum
Affects Version/s: 1.9
Fix Version/s: None

File Attachments: 1. File lib.diff (6 kB)
2. File lib.php (244 kB)
3. File post.diff (3 kB)
4. File post.php (33 kB)
5. File view.diff (2 kB)
6. File view.php (12 kB)

Issue Links:
Dependency
 
Duplicate
 
Relates
 

Participants: Martin Dougiamas, Matthew Davidson and Petr Škoda (skodak)
Security Level: None
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
The idea is to simplify the creation of posts in separate group mode forums.
it would require a new switch in post form, visible only when forum in "separate mode" && "has access to all groups" && "all participants selected"

The other related option could be - redirect to discussion view if only one present and not allowed to start new discussions - this would effectively make it a single simple discussion in separate mode, but the forum overview would be much more intuitive for teachers.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Škoda (skodak) added a comment - 17/Apr/08 04:30 AM
I think this could really work much better, Martin should I implement it?

Matthew Davidson added a comment - 17/Apr/08 04:30 AM
forum_user_can_see_post_origin() is already written in the lib.php file I sent in http://tracker.moodle.org/browse/MDL-14270

cron - the new function in forum/lib.php is the check to make sure that emails are sent only to the appropriate groups. This hasn't been done yet, but the check is there.

reply and unread count still work correctly

Recent activity needs the same check using the new function in forum/lib.php so that only the changes that the users group makes show up. Also the discuss.php hasn't been changed to disallow users, but again, this will use the same new function.


Petr Škoda (skodak) added a comment - 17/Apr/08 04:36 AM
forum_user_can_see_post_origin() does way too much db access (1 + 3per depth level) for each post, of course you could cache that but then it would eat a lot of memory
and it also relies on the current group membership which is different from what we have now

Petr Škoda (skodak) added a comment - 17/Apr/08 04:40 AM - edited
I can not review the code properly sorry
1/ it is not patch/diff format
2/ the whitespace is changed - my eclipse chokes during the diff and for some unknown reason the "ignore whitespace" option does not work

Petr Škoda (skodak) added a comment - 17/Apr/08 04:54 AM
managed to diff it - I do not like this modification,
I managed to remove old hacks and cleanup the forum code just recently and do not feel like adding exceptions only for single discussion again all over the place

The bonus of the proposed solution above is that it could be used in normal separate forums too - I think it might be useful more often to bulk post into all separate groups.