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

Dashboard: Friends #10

Open
2 tasks
dionew1 opened this issue Jul 21, 2020 · 0 comments
Open
2 tasks

Dashboard: Friends #10

dionew1 opened this issue Jul 21, 2020 · 0 comments
Labels
ActiveRecord Pertains to ActiveRecord Core Core project requirement paired commit This issue should be completed as a pair. solo spike first Should timebox to research individually before discussing with partner.

Comments

@dionew1
Copy link
Contributor

dionew1 commented Jul 21, 2020

As an authenticated user,
I see a section for friends,
In this section, there should be a text field to enter a friend's email and a button to "Add Friend"

Scenarios:

  1. If I have not added any friends there should be a message. "You currently have no friends".

  2. If I have added friends, I should see a list of all my friends.

Details: Users should be able to add a friend by their email address, as long as, the friend is a user of our application and exists in our database.

Example:
Bugs Bunny and Lola Bunny are users of our application, but Daffy Duck is not.

  1. When Bugs Bunny enters [email protected] to add friend it will be successful and Lola should show up as Bugs Bunny's friend.
  2. When Bugs Bunny enters [email protected] to add friend it should give an error message that the user does not exist.

Tips: You'll want to research self-referential has_many through. Here is a good starting point to understand the concept. You will probably need to do more googling but that's part of the fun ;)

  • Write a happy path test
  • Write a sad path test
@dionew1 dionew1 mentioned this issue Jul 21, 2020
4 tasks
@dionew1 dionew1 changed the title Friends Section Dashboard: Friends Jul 21, 2020
@dionew1 dionew1 added ActiveRecord Pertains to ActiveRecord paired commit This issue should be completed as a pair. solo spike first Should timebox to research individually before discussing with partner. Core Core project requirement labels Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ActiveRecord Pertains to ActiveRecord Core Core project requirement paired commit This issue should be completed as a pair. solo spike first Should timebox to research individually before discussing with partner.
Projects
None yet
Development

No branches or pull requests

1 participant