Closed DBatistaFerreira closed 5 years ago
Assigning this to me for now until we have plan it into a sprint
CC: @Clearedkinkajou
If someone retweets a tweet, should it be at the top of their feed on their own profile?
@Clearedkinkajou @TheGreatMarkus
@Pwnagebird @Clearedkinkajou We decided that we will create a new Model that is called Retweet. This model will have three fields:
The user will then have a new field: Retweets. This will be a list of Retweets. The relation between User and Retweet will be One-to-Many
Acceptance Testing for User Story BASK27
Action | Expected Result | Actual Result |
---|---|---|
Logged in as Markus | Redirected to the home page | Just as expected |
Looked at the feed of tweets on the home page | The tweet would be ordered from newest to oldest | After double-checking with the database, just as expected. |
Followed a user with tweets | Their tweets would appear on my home screen, sorted with the other tweets from my existing | Just as expected |
Unfollowed another user | Their tweets would disappear from my feed | Just as expected |
Retweeted a tweet as admin, to whom Markus is following | Markus should see the retweet as the first thing on his feed, regardless of the time stamp of the original tweet | |
Created a new tweet as Markus | This tweet should appear at the top of the feed | Just as expected |
Retweeted a tweet as Markus | This Retweet should appear at the top of the feed | Just as expected |
Tests passed.
USER STORY
What Needs To Be Done
As a customer, I would like to be able to retweet a tweet
Acceptance Criteria
When a user retweets a tweet, it should show up in their feed. In terms of order, a recent retweet should show up near the top of the feed for a user, regardless of when the tweet was made.
Technical Information