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

JSON download button #246

Open
openjck opened this issue Nov 9, 2018 · 0 comments
Open

JSON download button #246

openjck opened this issue Nov 9, 2018 · 0 comments

Comments

@openjck
Copy link
Contributor

openjck commented Nov 9, 2018

Provide a button which visitors could use to access/download the JSON that was used to build the dashboard.

The challenge here is that there is not one single JSON document which ensemble reads to build each dashboard. There are multiple: one JSON document which describes the dashboard itself (title, description, etc.) and one JSON document for each metric in each region.

So we may need to get creative here. Some options:

  • Provide one button for the dashboard JSON and one button for each metric's JSON
  • Provide one button for the raw JSON that ensemble-transposer ingests
    • Con: This wouldn't include metric titles, metric descriptions, or other metadata
  • Provide one button at the top of the page which downloads a .zip of all JSON documents
    • Con: This wouldn't be very convenient for developers
  • Build one aggregate JSON document which includes everything and offer that
    • Pro: We already build something like this in ensemble-transposer internally; we don't currently make it available over HTTP but we easily could
    • Con: Ensemble itself wouldn't use this document; we would need to maintain it and document its format separately
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