Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Add convenience methods for group memberships #123

Open
rdegges opened this issue Dec 9, 2014 · 4 comments
Open

Add convenience methods for group memberships #123

rdegges opened this issue Dec 9, 2014 · 4 comments

Comments

@rdegges
Copy link
Contributor

rdegges commented Dec 9, 2014

We should add Account.removeGroup() and Group.removeAccount() stuff to make things nicer for users =)

@robertjd robertjd changed the title Add Convenience Methods Add convenience methods for group memberships Dec 30, 2014
@luyizhao
Copy link

+1. Very useful if you're using webhooks to manage account groups.

@robertjd
Copy link
Member

Agreed! Hey @luyizhao, I'd love to hear how you're using webhooks with Stormpath!

@luyizhao
Copy link

Mainly Stripe events which dictate the groups users should live in. Updating customData upon events is a decent workaround, although sometimes it's still better to roll your own removeGroup() functions to bypass caching with customData :) ... (Sidenote, interested in seeing how future cache-handling for groups develops as referenced here!)

@robertjd
Copy link
Member

I agree that we should add these methods, but what should the inputs be to these functions? An already-constructed Account or Group object? That makes the most sense, but what if I have just an href or name? We have to define these different options

@robertjd robertjd added this to the 0.16.0 milestone Oct 12, 2015
@robertjd robertjd removed this from the 0.16.0 milestone Jan 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants