Skip to content

Commit

Permalink
Bugfix/330 add dss datatype id to product payload (#426)
Browse files Browse the repository at this point in the history
* add dss_datatype_id to sql select statement

* add dss_datatype_id to v_product
  • Loading branch information
adamscarberry authored Sep 6, 2023
1 parent 6ff817c commit b630d7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/models/products.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (
)

var listProductsSQL = `SELECT id, slug, name, label, tags, temporal_resolution, temporal_duration,
parameter_id, parameter, unit_id, unit, dss_fpart, dss_datatype, description,
suite_id, suite, after, before, productfile_count, last_forecast_version
parameter_id, parameter, unit_id, unit, dss_fpart, dss_datatype_id,
dss_datatype, description, suite_id, suite, after, before,
productfile_count, last_forecast_version
FROM v_product`

// ProductInfo holds information required to create a product
Expand Down
1 change: 1 addition & 0 deletions sql/common/R__04_views_products.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ CREATE OR REPLACE VIEW v_product AS (
a.label AS label,
a.temporal_resolution AS temporal_resolution,
a.temporal_duration AS temporal_duration,
d.id AS dss_datatype_id,
d.name AS dss_datatype,
a.dss_fpart AS dss_fpart,
a.description AS description,
Expand Down

0 comments on commit b630d7f

Please sign in to comment.