Skip to content

catalog/timeseries handle aliases consistently #256

@adamkorynta

Description

@adamkorynta

CWMSVue queries both the catalog/timeseries and catalog/locations endpoints to build up the Time Series tab. By design it does not take into account the "aliases" list returned by catalog/location since that data is built up separately with the location groups endpoint. This has the unfortunate side-effect of RADAR CDA returning timeseries catalog rows that are aliases instead of concrete id's. This results in inconsistent row numbering in CWMSVue and inconsistent row counts as seen in the image below:

image

The row number is based on the row returned by the timeseries catalog BEFORE the resolution with the location catalog.

I can see a couple different solutions.

  1. client side: set the row count AFTER the resolution with the location catalog.
  2. server side: add a boolean parameter to catalog/ endpoints to ignoreAliases in order to minimize the amount of queried data for both timeseries and locations since CWMSVue doesn't require it (default to true for backwards compatibility?).
  3. server side: make the catalog/timeseries consistent with catalog/locations by moving the alias identifier to an "aliases" JSON node under the concrete identifier.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions