Mercurial > gemma
view client/src/components/paneSetups.js @ 3264:9ae43313b463
Handle some possibly missing elements in NtS response
The NtS XSD does not guarantee that value, value_min and value_max
are present in a response. This led to circumventing the NOT NULL
constraint for the waterlevel value by silently persisting missing
values as zero and filling up missing confidence interval values
especially for measurements with zeros.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 15 May 2019 12:31:57 +0200 |
parents | 5ec34e08b01d |
children | fa7dc3f31ef3 |
line wrap: on
line source
const main = { id: "main", component: "Map" }; export const DEFAULT = { main }; export const COMPARESURVEYS = { main, compare: { id: "compare-survey", component: "Map" } }; export const FAIRWAYPROFILE = { main, fairwayprofile: { id: "fairwayprofile", component: "Fairwayprofile" } }; export const AVAILABLEFAIRWAYDEPTH = { main, availablefairwaydepth: { id: "availablefairwaydepth", component: "AvailableFairwayDepth" } }; export const COMPARESURVEYS_FAIRWAYPROFILE = { main, compare: { id: "compare-survey", component: "Map" }, fairwayprofile: { id: "fairwayprofile", component: "Fairwayprofile" } }; export const GAUGE_WATERLEVEL = { main, waterlevel: { id: "gauge-waterlevel", component: "Waterlevel" } }; export const GAUGE_HYDROLOGICALCONDITIONS = { main, hydrological: { id: "gauge-hydrologicalconditions", component: "HydrologicalConditions" } }; export const GAUGE_WATERLEVEL_HYDROLOGICALCONDITIONS = { main, waterlevel: { id: "gauge-waterlevel", component: "Waterlevel" }, hydrological: { id: "gauge-hydrologicalconditions", component: "HydrologicalConditions" } };