Skip to content

JSON download button #246

Open
Open

Description

@openjck

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions