Skip to content

Add product groups to product info

David Hoese requested to merge feat-product-groups into main

This set of features addresses the backend side of the discussion in https://gitlab.ssec.wisc.edu/cspp_geo/geosphere/geosphere-client/-/issues/59 (CC @csuplinski). The basic idea is the public API now has a product_groups at the top level and each product has a group. The product_groups[product_info["group"]] contains one element long_name which is the name of the section to use in the client UI.

For @rayg and @wroberts: I have some design concerns about this in the YAML config. Previously I added a top level display: dict to the YAML which contained only animation: for replacing some configuration that Clayton used to have on the client side regarding how many frames could be loaded for a sector. Anyway...this MR adds product_groups at the same level as animation:

display:
  product_groups:
    l1b_bands:
      long_name: "Single-Band Imagery"
    l1b_composites:
      long_name: "Composite RGB Imagery"
    l2:
      long_name: "Level 2 Retrieved Geophysical Products"
  animation:
    60:
      max_frames: 720
      refresh: 30

This feels correct in the sense that right now this is information only used for display (the client), but at the same time it is very generic information related to the products. It makes me question whether product_groups should just be at the top level or even removing display and moving animation and product_groups to the top level. Any thoughts or feelings on this?

Merge request reports

Loading