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

Implement Pocket sync #11

Merged
merged 8 commits into from
Mar 10, 2020
Merged

Implement Pocket sync #11

merged 8 commits into from
Mar 10, 2020

Conversation

rgardner
Copy link
Owner

@rgardner rgardner commented Mar 10, 2020

Adds ability to sync Pocket items from Pocket to a Postgres-based DB.

SavedItemMediator is responsible for getting the appropriate Pocket user token and last sync time, then downloading updated Pocket items via UserPocketManager to the database via SavedItemStore (which abstracts away the underlying database).

  • Adds migrations that should have been checked-in earlier
  • Adds excerpt and url to saved items
  • Fixes resolved title being empty, falling back to normal title
  • Pocket items are upserted into Postgres
  • Adds sync-saved-items [--user-id] subcommand

@todo
Copy link

todo bot commented Mar 10, 2020

consider replacing drain with into_iter().take(NUM_ITEMS_PER_TREND)

https://github.com/rgardner/pocket-cleaner/blob/9a7d71c8b794085134f3e1ff7d582aaeb9b1be8c/app/pocket_cleaner/src/bin/pc_send_digest_email.rs#L95-L98


This comment was generated by todo based on a TODO comment in 9a7d71c in #11. cc @rgardner.

@rgardner rgardner merged commit 6b2020e into master Mar 10, 2020
@rgardner rgardner deleted the pocket-sync branch March 10, 2020 04:00
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