amitaibu / og

A fork to work on OG8
https://github.com/Gizra/og
29 stars 16 forks source link

Add OgMembership views data handler #239

Closed damiankloip closed 8 years ago

damiankloip commented 8 years ago

Currently the OG Membership has no views integration, you just get the 'rendered entity' item added by views, not even the individual og membership fields yet. The core EntityViewsData will give us a nice start and at least expose the fields. We can then start porting the actual handlers one by one. This keeps it manageable.

I also added one relationship from user to og_membership, as that is simple, but very useful and the existing relationship handler will work fine for that.

I don't really think this needs tests yet, as core already has a lot of tests for the EntityViewsData class and the generic views table definitions it provides. The tests will likely come with the individual OG specific handlers.

amitaibu commented 8 years ago

Thanks.