Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VMS] Add a supporters array to nonprofit schema #368

Open
PC98 opened this issue Nov 5, 2020 · 0 comments
Open

[VMS] Add a supporters array to nonprofit schema #368

PC98 opened this issue Nov 5, 2020 · 0 comments
Labels
backend Involving backend development. blocked This task is blocked by another task VMS Tasks corresponding to Volunteer Management Solution

Comments

@PC98
Copy link
Collaborator

PC98 commented Nov 5, 2020

  • We want to keep track of who supports (users that have donated or volunteered at) a non-profit. We could get this information using the existing events and donations field of each non-profit, but it will be cumbersome to get unique user IDs from all events and donations of a non-profit. Before doing this task, if you can figure out an easy way to get unique user IDs from these two fields, lmk and we won't have to do this.
  • Add a supporters field - array of user IDs - to the non-profits schema. Write a migration script as well.
  • Modify the logDonation server action to check if the passed-in user ID is already a supporter for the non-profit. If it's not, add the user ID as a supporter.
@PC98 PC98 added backend Involving backend development. VMS Tasks corresponding to Volunteer Management Solution labels Nov 5, 2020
@PC98 PC98 added this to the Sprint 5 milestone Nov 5, 2020
@PC98 PC98 added the blocked This task is blocked by another task label Nov 5, 2020
@PC98 PC98 removed this from the Sprint 5 milestone Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Involving backend development. blocked This task is blocked by another task VMS Tasks corresponding to Volunteer Management Solution
Projects
None yet
Development

No branches or pull requests

2 participants