All notable changes related to LandGriffon API will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Added LANDGRIF-874 Accept a optional Scenario id for all the smart filters returning a hierarchical response
Fixes a issue where the Canceled Sourcing Locations would have a default 'unknown' location type, as the query for filtering the original ones at the beginning of the intervention creation didn't have a select for this field, therefore the instance prop was null, and the DB persist it of the default enumerable value, 'unknown'
Added a guard in GeoRegion Service to try find either a previously created Point or Radius geometry in case some coordinates are sent for a intervention, and said coordinates had been used previously (on a intervention or import process) to create a GeoRegion Avoiding to create a new one Also after creating or getting a previously generated georegion, we try to validate that the provided country matches the coordinate/address information. If not, we delete the created georegion but after checking that said georegion is not already included in sourcing locations
Added LANDGRIF-813 Adds endpoint to retrieve location types supported by the platform Refactor recursive sql query to be implemented in ExtendedTreeRepository, which is extended by all the required entity repositories, minor improves on naming and readability
Added LANDGRIF-778 Adds a CachedData Entity for use on Indicator Record calculations to improve performance.
Added LANDGRIF-722 Added support for Contextual Layer data with 2 endpoints to serve contextual layers and their H3 Data
Added LANDGRIF-697 Added class with custom chunk save method for large inserts to avoid blocking event loop
Fixed LANDGRIF-656 Refactors code in order to allow indicator calculations to be treated more easily and in a modular way
Fixed LANDGRIF-713 Filter available years for a impact layer by the received Material Id's children
LANDGRIF-683 Add new Entity: ContextualLayers to keep track of magic h3 tables representing contextual layers. Related N to 1 to H3Data (H3 Master table)
LANDGRIF-705 Add endpoint for location types with smart filters. Add location types options to other smart filter endpoints.
Fixed Impact table - fix filters when retrieving 'group by' entities for table skeleton
Updated Creating Scenario Intervention can cover only 1 material, business units and admin regions filters are not obligatory
Fixed Impact years endpoint - returns years for which sourcing record volumes are not 0
Fixed Update entity methods that build trees - filters descendants search moved to calling functions
Fixed Scenario Interventions - when creating new intervention of type new supplier location, replacing SLs with identical entities relations are grouped into one with tonnage accumulated
Fixed Scenario Interventions - fix conditional validations of inputs
Fixed Indicator record calculations - if production and harvest area values are less than 1, related impact values are set to 0
Added Contextual Layers - Added different types of aggregation for Contextual Layers' H3 info depending on metadata
Fixed Scenario Interventions - comparison vs actual data, if year earlier than intervention start year is selected, returninh 0 values for that year instead of error
Fixed Scenario Interventions - status of intervetion can be updated, startYear is returned as part of get response
Fixed Entity trees - when there is no data in the Database, entity entity tree endpoint will return empty array instead of 404 error