Project

General

Profile

Actions

Bug #3858

closed

Improved groupblog-RBE integration

Added by Matt Gold about 9 years ago. Updated about 5 years ago.

Status:
Duplicate
Priority name:
Normal
Assignee:
Category name:
Reply By Email
Target version:
Start date:
2015-02-27
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Please see the attached screenshot, which doesn't contain RBE options. Did someone on the team deactivate the plugin? If not, any idea why RBE options (reply above this line) aren't showing in the email notification?


Files


Related issues

Related to CUNY Academic Commons - Bug #8225: replies to a blog post activity itemResolvedRaymond Hoh2017-06-05

Actions
Actions #1

Updated by Matt Gold about 9 years ago

  • Category name set to Reply By Email
Actions #2

Updated by Matt Gold about 9 years ago

  • Status changed from Assigned to Rejected

Duh -- never mind. Somehow, she posted it to the blog instead of to the discussion forum. Apologies.

Actions #3

Updated by Raymond Hoh about 9 years ago

Somehow, she posted it to the blog instead of to the discussion forum. Apologies.

Yeah, that person posted a blog post on the groupblog instead of in the forum.


However, this does bring up a few issues:

1. The activity item was generated by BP Groupblog.
2. RBE doesn't appear to be network-activated, which is why the RBE options were not shown.

Should I look into supporting commenting to BP Groupblog posts (similar to how we added support for BP Docs)?

I also have to ensure that there are no conflicts when using RBE network-wide.

The bleeding version of RBE supports bbPress on non-BuddyPress forums now, so a potential conflict could arise if a sub-site has bbPress activated and when someone is trying to reply to a forum post from that sub-site.

I just checked and, at the moment, bbPress is only activated on the main Commons site, so there wouldn't be an issue currently with network-activating RBE, but it could exist in the future.

tl:dr:
  • Perhaps I should look into supporting BP Groupblog posts for RBE.
  • Make sure RBE will work in network-activated scenarios. (Mostly for bbPress.)
Actions #4

Updated by Matt Gold about 9 years ago

Should I look into supporting commenting to BP Groupblog posts (similar to how we added support for BP Docs)?

If you did, where would replies be posted? to the group activity feed or to the original blog post? If they would go to the original blog post, that would be cool, but if they go to the group activity feed (which may not be possible -- I think we may have turned off activity feed commenting), I guess I worry that we will confuse people.

I like the fact group blog posts show up in group activity feeds and create activity items/email notifications for group members, but I think we should center resulting conversations on the original blog post rather than moving them to the group. What do others think? (I've added a few others here as watchers)

Actions #5

Updated by Samantha Raddatz about 9 years ago

I re-typed my response to this 10 times, because I can really see this going either way. My gut says that keeping the conversations on the original blog post is the least confusing -- it creates a clearer delineation between conversations taking place in the group forums and those taking place on a group site.

I could see it being integrated into the group activity feed if we took the time to better display conversations there (i.e. showing responses directly connected to the original comment, similar to how Facebook displays conversations in the main feed). But, taking that on seems like overkill for this specific instance.

Actions #6

Updated by Boone Gorges about 9 years ago

Ray, correct me if I'm wrong, but the new activity comment/blog comment syncing stuff in BP should be able to handle most of this, right? It'd just be the groupblog stuff that'd need accounting for.

Actions #7

Updated by Raymond Hoh about 9 years ago

Ray, correct me if I'm wrong, but the new activity comment/blog comment syncing stuff in BP should be able to handle most of this, right? It'd just be the groupblog stuff that'd need accounting for.

Not exactly. BP has built-in support for the 'new_blog_post' type, however BP Groupblog changes this type to 'new_groupblog_post'. Currently, for the sync, BP checks explicitly for the 'new_blog_post' type. It's not filterable at the moment, so if we wanted to support comment syncing in the interim, we would have to duplicate a bunch of code from BP.

Another problem is BP Groupblog does not record groupblog post comments into the group activity stream, so BP Group Email Subscription will not be able to pick up the email and thus, BP Reply By Email will also not work.

The can of worms has been opened :)

Actions #8

Updated by Boone Gorges about 9 years ago

  • Subject changed from RBE turned off? to Improved groupblog-RBE integration
  • Status changed from Rejected to Assigned
  • Target version set to 1.8

It's not filterable at the moment, so if we wanted to support comment syncing in the interim, we would have to duplicate a bunch of code from BP.

Let's put a filter in. Self-serving? Perhaps. But this seems to me a legitimate use case :) Probably best to have a wrapper like `bp_blogs_activity_type_should_sync_to_post_comment()` or something like that?

Another problem is BP Groupblog does not record groupblog post comments into the group activity stream

Right. I can fix this.

so BP Group Email Subscription will not be able to pick up the email and thus, BP Reply By Email will also not work.

I assume that if the fix in bp-groupblog syncs blog comments to 'activity_comment' (rather than 'new_blog_comment'), then BPGES and RBE will automagically work?

Actions #9

Updated by Raymond Hoh about 9 years ago

Let's put a filter in.

Instead putting in a filter, looks like we have to make enhancements to syncing so it will support what imath did with custom post types in the activity stream. The monkey wrench is we want to modify an existing post type for use with BP Groupblog - 'new_blog_post' to 'new_groupblog_post'.

I assume that if the fix in bp-groupblog syncs blog comments to 'activity_comment' (rather than 'new_blog_comment'), then BPGES and RBE will automagically work?

I would rather go with 'new_blog_comment' (or 'new_groupblog_comment') while disabling comment syncing since that is guaranteed to be in BPGES.

At the moment, BPGES doesn't support 'activity_comment' recording effectively. Currently, there is only a check on `bp_is_groups_component()` to determine if an activity comment is being posted under a group activity update. This will not work for us.

Since activity comments are tied to the user and not groups, this makes things complicated. Perhaps we can hook into 'bp_activity_comment_posted' and look up the parent activity item. If the parent activity item is a group update and if group members are subscribed to "All Mail", BPGES can manually send these activity comments to group members. This will have to be a BPGES feature.

Actions #10

Updated by Boone Gorges about 9 years ago

The monkey wrench is we want to modify an existing post type for use with BP Groupblog - 'new_blog_post' to 'new_groupblog_post'.

Ah, I see what you mean. The "existing post type" is, of course, 'post' - we'll be switching the activity type. It looks like we could probably do this by filtering 'bp_activity_get_post_type_tracking_args': if post_type = 'post' && this_is_a_groupblog_post then futz_with_the_activity_args. I guess maybe this is something that should happen in bp-groupblog, though then there'll have to be compatibility for BP < 2.2. Does that seem right?

At the moment, BPGES doesn't support 'activity_comment' recording effectively. Currently, there is only a check on `bp_is_groups_component()` to determine if an activity comment is being posted under a group activity update. This will not work for us.

Yeah, I'm not super concerned about that though. We could put a filter in GES, something like 'ass_activity_is_associated_with_a_group'. We're already making an arbitrary decision in BPGES: if ( component=groups OR (bp_is_group_component && is activity_update) ). Adding a filter to it actually makes it more structured. Then we could use this filter in the manner you suggest in the last paragraph.

Actions #11

Updated by Boone Gorges about 9 years ago

Hey Ray - would you mind reviewing this conversation and giving some recommendations? It's not clear to me from the above what the best way forward is, and I want to gauge whether this improvement is feasible for 1.8. Thanks!

Actions #12

Updated by Boone Gorges almost 9 years ago

  • Target version changed from 1.8 to 1.9
Actions #13

Updated by Boone Gorges over 8 years ago

  • Target version changed from 1.9 to 1.10
Actions #14

Updated by Raymond Hoh over 7 years ago

  • Target version changed from 1.10 to Future release

I don't think I can get this done in time for 1.10.

Going to move to Future Release.

Actions #15

Updated by Raymond Hoh about 5 years ago

  • Status changed from Assigned to Duplicate

Addressed in #8225.

Actions #16

Updated by Raymond Hoh about 5 years ago

  • Related to Bug #8225: replies to a blog post activity item added
Actions

Also available in: Atom PDF