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

DataProviders should have a common lifecycle #19

Open
jdjkelly opened this issue Jan 17, 2014 · 1 comment
Open

DataProviders should have a common lifecycle #19

jdjkelly opened this issue Jan 17, 2014 · 1 comment

Comments

@jdjkelly
Copy link
Owner

I want authenticated API sources flow through the Warden + Devise + Omniauth provider. They should have a common lifecycle.

On initial authentication, all historical data should be downloaded from the provider (if possible). Then, a synced_at attribute should be set with the current time stamp.

Data should be stored with any uniquely identifiable information from the API. This data should be indexed.

Subsequent requests should:

  • only request data after the synced_at date
  • use the stored ids as a uniqueness constraint
  • be performed without the need of scheduling (assuming they aren't web-hook style)
@jdjkelly
Copy link
Owner Author

Progress made in these PRs:

#20
#22

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

No branches or pull requests

1 participant