You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Get Agency Dashboard Data with Smaller Fetch Request #296
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.
I'm going to lazy load this information, so it won't drag down the site performance. This isn't an urgent request.
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.
Activity
E01T commentedon Jan 12, 2019
Hello
I would like to help with this issue. Could you please provide me with some info?
jcastle-zz commentedon Jan 28, 2019
@DanielJDufour, can you assist here. Is this still needed? Thanks!
DanielJDufour commentedon Jan 28, 2019
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 :-)