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

Charts - test using URL for time series path #46

Open
smalers opened this issue Jun 3, 2022 · 0 comments
Open

Charts - test using URL for time series path #46

smalers opened this issue Jun 3, 2022 · 0 comments
Assignees
Labels
critical Priority: highest priority enhancement New feature or request S Size: day or less

Comments

@smalers
Copy link
Contributor

smalers commented Jun 3, 2022

The following functionality needs to be tested, for example, by accessing time series data in a GitHub repository.

Now that the chart component is being used more, we need to ensure that it handles using a full URL for the time series file. This will allow InfoMapper configurations served on one URL (e.g., https://poudre.openwaterfoundation.org/) to access data on another URL (e.g., https://data.openwaterfoundation.org). There may be CORS issues if the domains are different but if all is being served from an OWF domain, we can avoid that issue for now. An example of a graph template file for a time series as follows:

      "data" : [ {
        "properties" : {
          "Color" : "#fffe31",
          "DataLabelFormat" : "",
          "DataLabelPosition" : "Right",
          "Enabled" : "True",
          "FlaggedDataSymbolStyle" : "",
          "GraphType" : "",
          "LegendFormat" : "Auto",
          "LineStyle" : "Solid",
          "LineWidth" : "0",
          "RasterGraphLegendPosition" : "Right",
          "SymbolSize" : "0",
          "SymbolStyle" : "None",
          "SymbolTablePath" : "",
          "TSAlias" : "10190007-USDM-D0",
          "TSID" : "10190007.USDM.D0.Day~DateValue~/dashboards/water-supply-basin/results/10190007-USDM-D0.dv",
          "XAxis" : "Bottom",
          "YAxis" : "Left"
        }
      },

The TSID property specifies a file path relative to the application root data. If the data were stored on another URL, the property might look like the following. This can be tested by saving a data file in GitHub and testing using that URL.

"TSID" : "10190007.USDM.D0.Day~DateValue~https://data.openwaterfoundation.org/datasets/ts/usdm/huc/10190007-USDM-D0.dv",

Enhancement

The following enhancements would provide more flexibility.

If application properties are added (define a property in the InfoMapper configuration), it would be possible to do something like the following:

"TSID" : "10190007.USDM.D0.Day~DateValue~${dataserver}/datasets/ts/usdm/huc/10190007-USDM-D0.dv",

If dashboard properties are added (define a property in the dashboard configuration), it would be possible to do something like the following:

"TSID" : "10190007.USDM.D0.Day~DateValue~${dashboard:datapath}/datasets/ts/usdm/huc/10190007-USDM-D0.dv",
@smalers smalers added enhancement New feature or request critical Priority: highest priority S Size: day or less labels Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical Priority: highest priority enhancement New feature or request S Size: day or less
Projects
None yet
Development

No branches or pull requests

2 participants