If there were a FeedsMessageProcessor, it would be possible to use the Message module as the basis for a leaner ActivityStream or syndicating user activities across a multi-site installation.

Comments

amitaibu’s picture

Can you explain the workflow of this?

Grayside’s picture

Issue tags: +Feeds

A Feeds Processor plugin for Message would look vaguely like the Taxonomy Processor.

Additional pieces I missed before thinking this through further--a Message Argument Mapper and a Message Feeds Source Realm plugin.

Here's what I imagine the backbone of an ActivityStream-like use case to be:

  • A module sets up a message type plugin for each desired source.
  • Feeds pulls the RSS feed for each source. The source URL is used to route to the message type.
  • A new Feeds Mapper extracts values parsed from the Feed and assigns them as message arguments. A callback hook simplifies this, as argument mapping is a fairly standardized mapping to pursue.
  • Realm is set to User & Source.
  • Processor saves the message based on the mapped message object.

To truly match ActivityStream, you would also want Feeds to have a user-friendly interface for users to sign up for a Feed via their account page. IIRC, the current options are to be a Feeds administrator or create a node.

Is this any clearer?

amitaibu’s picture

hardcore!
I've haven't used feeds yet, but it sounds interesting. I'll tell also fago about it, as he helps with the D7 port + has usually good ideas about everything/ web-services :)

fago’s picture

makes much sense, with d7 feeds processors are very entity centric anyway so that shouldn't be hard in d7 as messages are entities too. I guess then that all could easily go into a feature too.

Integrating http://activitystrea.ms/ streams would be neat too.

For collecting activity streams of multiple drupal (7) sites, I plan to use rules web hooks which is not ready for prime-time yet.

Grayside’s picture

Assigned: Unassigned » Grayside

I'm working through the creation of an initial processor. I haven't looked at Entities or the new DB layer yet, so it's a bit slow going.

I'm having a little trouble understanding what's become of Realms and how to play with this, an update to the example module (in the 7.x branch but still 6.x code) would be helpful.

fago’s picture

For 7.x have a look at #1033202: [Meta] Generic entity processor, which should do it for messages too.

Grayside’s picture

I looked over there, and that is clearly the right approach to take for Message. As I posted though, it doesn't seem to work for me.

bluegeek9’s picture

Assigned: Grayside » Unassigned
Issue summary: View changes
Status: Active » Closed (won't fix)