Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
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

Open

Description

@DanielJDufour

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.

Activity

  1. pinned this issue on Dec 17, 2018
  2. E01T commented on Jan 12, 2019

    @E01T

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

  3. jcastle-zz commented on Jan 28, 2019

    @jcastle-zz
    Contributor

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

  4. DanielJDufour commented on Jan 28, 2019

    @DanielJDufour
    ContributorAuthor

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions