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

Handle fetching and storing metric data in data store instead of Metric content model class #560

Open
terryttsai opened this issue May 4, 2022 · 0 comments

Comments

@terryttsai
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Right now in our content models we have a bunch of metric classes that handle fetching and storing its own data. The issue with these classes is that we now have to connect them to our userStore so that they can get the auth token from the userStore. So right now we have to pass in a reference to that userStore to each generated metric content model.

Describe the solution you'd like
One idea is that we should match the pattern in case-triage and justice-counts where we have a separate API datastore that handles fetching and storing data. We might want to use our content model classes to generate the type of data we want to fetch, then use our API store to handle fetching and storing data?

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