Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Get Agency Dashboard Data with Smaller Fetch Request #296

Open
DanielJDufour opened this issue Nov 3, 2018 · 3 comments
Open

Get Agency Dashboard Data with Smaller Fetch Request #296

DanielJDufour opened this issue Nov 3, 2018 · 3 comments

Comments

@DanielJDufour
Copy link
Contributor

DanielJDufour commented Nov 3, 2018

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It appears that the dashboard is populated by data from this endpoint: https://api.code.gov/status.json, which amounts to over 100kb

Describe the solution you'd like
A clear and concise description of what you want to happen.
I'd like to receive the information to populate the dashboard and only that information. It seems that the status.json returns information about errors, too. Perhaps, there can be a new /dashboard.json endpoint that only returns the required information?

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I could parse the return and create a static json file that I put it in the code-gov-data repo. The front-end site would then fetch that parsed json file, rather than the original from the status.json endpoint.

Additional context
Add any other context or screenshots about the feature request here.
image

I'm going to lazy load this information, so it won't drag down the site performance. This isn't an urgent request.

@E01T
Copy link

E01T commented Jan 12, 2019

Hello
I would like to help with this issue. Could you please provide me with some info?

@jcastle-zz
Copy link
Contributor

@DanielJDufour, can you assist here. Is this still needed? Thanks!

@DanielJDufour
Copy link
Contributor Author

Hi, @E01T. Happy to provide some answers to you =) Basically, we need someone to create a new API endpoint using our current framework (express) that returns a trimmed down version of the status.json endpoint filtering out unnecessary information for display purposes.

This provides a good example of the data required by the dashboard web component.

https://github.com/GSA/compliance-dashboard-web-component/blob/master/example-data.json

Let me know if you have any more questions :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants