Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Add state machine to Membership to handle membership status #98

Open
2 tasks
Tracked by #91
alexfinnarn opened this issue Jul 19, 2021 · 0 comments
Open
2 tasks
Tracked by #91

Add state machine to Membership to handle membership status #98

alexfinnarn opened this issue Jul 19, 2021 · 0 comments

Comments

@alexfinnarn
Copy link
Contributor

alexfinnarn commented Jul 19, 2021

It makes sense to play around with the concept of state machines with membership statuses.

https://github.com/aasm/aasm

Possible states:

  • pending/invited
  • active
  • inactive
  • banned/blocked

AC:

  • Add aasm to Gemfile
  • Add to code already in the membership model
  • Add permissions based on status
  • Write tests administering states

Next Steps

  • It would be nice to "invite" users to a space, but that should be worked on in another issue.
  • Add state machine to the Fund model.
@alexfinnarn alexfinnarn changed the title Add state machine to Membership to handle membership status - https://github.com/aasm/aasm Add state machine to Membership to handle membership status Jul 19, 2021
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

1 participant