geobeyond / Arpav-PPCV-backend

Backend di Piattaforma Proiezioni Climatiche per il Nord-Est.
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

Added `data_precision` as a new property to coverage configurations #280

Closed ricardogsilva closed 1 month ago

ricardogsilva commented 1 month ago

This PR adds a new data_precision property to coverage configurations. This property's purpose is to let the frontend know how many decimal places to use when displaying data values for the respective coverage configuration.

This property can be set on a per coverage configuration basis on the admin section and is exposed as an additional property in the API at the /api/v2/coverages/coverage-configurations/{coverage_configuration_id} endpoint.

Image of this new property's editable form in the admin:

image

And as included in the API:

image