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

Functionality: When a logged-in user clicks on a 'request' button, add that entry ID to the preferences list #20

Open
lpatmo opened this issue Feb 4, 2019 · 3 comments
Assignees
Labels
help wanted We'd really like some extra help with this issue [priority] high High-priority issues [state] in-discussion This issue is being considered and we'd welcome your thoughts and ideas [tech] meteorjs Resolution is likely to require basic understanding of MeteorJS [tech] react Resolution is likely to involve ReactJS [type] feature A new feature or significant change to site functionality
Milestone

Comments

@lpatmo
Copy link
Member

lpatmo commented Feb 4, 2019

image
image
image

@lpatmo lpatmo added the help wanted We'd really like some extra help with this issue label Feb 4, 2019
@angelocordon angelocordon added this to the MVP v1.0.0 milestone Apr 6, 2019
@angelocordon angelocordon added [state] in-discussion This issue is being considered and we'd welcome your thoughts and ideas [tech] meteorjs Resolution is likely to require basic understanding of MeteorJS [tech] react Resolution is likely to involve ReactJS [type] feature A new feature or significant change to site functionality labels Apr 6, 2019
@lpatmo lpatmo changed the title Functionality: When a logged-in user clicks on a heart on the board, add that entry ID to their "preferences" list Functionality: When a logged-in user clicks on a 'request' button, add that entry ID to the list of preferences Apr 6, 2019
@lpatmo lpatmo changed the title Functionality: When a logged-in user clicks on a 'request' button, add that entry ID to the list of preferences Functionality: When a logged-in user clicks on a 'request' button, add that entry ID to the preferences list Apr 6, 2019
@lpatmo
Copy link
Member Author

lpatmo commented Apr 6, 2019

Two tasks:

  • When a logged-in user clicks on a 'request' button, add that entry ID to the preferences list inside the user's entry.
  • Add the entry ID associated with the user to the other entry's requested list.
  "_id": "spx2LvuC7ZjYgexir",
  "userId": "bMnnxiN8QB3w9nAsZ",
  "category": {
    "id": "1",
    "title": "Accountability Partner"
  }, 
   ...
  "preferences": ["Abx2LvuC7ZjYgex1s"], //entries this entry is interested in
  "requesters": ["SCx2Lvua9ZjYgex23"], //entries that want to be matched with this entry
  "createdAt": "2019-04-04T02:05:43.061Z"
}

@angelocordon
Copy link
Contributor

Should also note that user can only submit an entry for a card once (prevent user from clicking request on the same card multiple times and having duplicated values of the user's ID in the preferences column (array)

@lpatmo lpatmo added the [priority] high High-priority issues label Apr 9, 2019
@lpatmo
Copy link
Member Author

lpatmo commented Apr 27, 2019

I'm tackling this now!

@lpatmo lpatmo self-assigned this Apr 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We'd really like some extra help with this issue [priority] high High-priority issues [state] in-discussion This issue is being considered and we'd welcome your thoughts and ideas [tech] meteorjs Resolution is likely to require basic understanding of MeteorJS [tech] react Resolution is likely to involve ReactJS [type] feature A new feature or significant change to site functionality
Projects
None yet
Development

No branches or pull requests

2 participants