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

Reduce redundancy related to climatic indicators #285

Open ricardogsilva opened 2 days ago

ricardogsilva commented 2 days ago

In the current version of the system we need to provide multiple details about the climatic indicator which is being used by both:

Information related to a climatic indicator is:

This information is currently duplicated in many different places (as instances of ConfigurationParameter, and as properties of CoverageConfiguration).

Let's refactor into a way that has less duplication.

ricardogsilva commented 2 days ago

After some thought, my current plan is to implement a ClimaticIdentifier model, which will have the following properties:

This new model will have a 1:N relationship with CoverageConfiguration. I also plan to use it in the future in the station observations. This will result in: