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

Persistence of timelines #1

Merged
merged 8 commits into from Sep 25, 2016
Merged

Persistence of timelines #1

merged 8 commits into from Sep 25, 2016

Conversation

philss
Copy link
Owner

@philss philss commented Sep 23, 2016

This PR implements the persistence of timelines.

It uses the TweetBroadcaster in order to persist tweets in the users's timelines.

This is needed in order to display the tweets for a given user.
This is needed in order to turn the tweet available at the user's
timeline.
It was needed to remove the timestamps of `timelines` in order to avoid
to have to insert the timestamps at `Repo.insert_all`.

https://hexdocs.pm/ecto/Ecto.Repo.html#c:insert_all/3
It enables us to access a timeline from an user by the URL.
Example: localhost:4000/username
It queries the list of followers and check if the current user is
following that person.
A little hack was needed because I couldn't find a way to query using
"NOT IN" with Ecto.
It helps in the UX
@philss philss merged commit df4c039 into master Sep 25, 2016
@philss philss deleted the timeline branch September 25, 2016 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant