Skip to:

Opened 9 years ago

Closed 8 years ago

#6670 closed defect (bug) (no action required)

The component of group activity comments is "activity"

Reported by: henrywright's profile henry.wright Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3.3
Component: Activity Keywords: dev-feedback 2nd-opinion


The component of group activity comments seems to be "activity". Should this be "groups" instead?

This is how it looks as things stand:

$activity = new BP_Activity_Activity( $activity_id );

// $activity_id is an activity update
echo $activity->component // activity

// $activity_id is an activity comment
echo $activity->component // activity

// $activity_id is a group activity update
echo $activity->component // groups

// $activity_id is a group activity comment
echo $activity->component // activity

Change History (7)

#1 @DJPaul
8 years ago

  • Keywords dev-feedback added
  • Milestone changed from Awaiting Review to Under Consideration

I think the default route for these is through bp_legacy_theme_new_activity_comment -> bp_activity_new_comment.
Whether it should be one or another -- I think we don't win anything from changing it, and I think because we're commenting on another *activity* item, I think activity is the correct component. Bit debatable though.

#2 @henry.wright
8 years ago

Changing it will allow you to determine if the activity item is associated with the Groups component. However, the workaround is to lookup the component of the root activity item (this will either be groups or activity).

#3 @DJPaul
8 years ago

  • Keywords 2nd-opinion added

#4 @r-a-y
8 years ago

I think changing the component of a group activity comment from 'activity' to 'groups' might have some implications with the way we query activity comments. Needs research.

It's probably better to add an activity meta entry to the activity comment to identify group activity comments instead.

Regardless, any change we make here would not take effect for older group activity comments unless we wrote a tool to backfill them.

#5 @henry.wright
8 years ago

After some additional thought, I also think changing this could cause problems elsewhere (such as in cases where "activity" is expected).

#6 @DJPaul
8 years ago

  • Milestone changed from Under Consideration to Awaiting Review

#7 @DJPaul
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

This report has insufficient traction or interest in the suggestion, so I'm closing it.

Note: See TracTickets for help on using tickets.