Adjust Diagram operations
AC
-
Parameters dateTimeFrom
anddateTimeTo
are removed from diagram queries and mutations (only the criteria from underlyingfilter_history
will be applied (relative conditions will be implemented in FilterHistory later) -
persisted filter_history
is mandatory for diagram creation -
It is possible to generate diagram data "on the fly" - without having a diagram entity in the database. FilterHistory is also required here, and it is also a persisted FilterHistory from database -
field dateTimeFrom
is added to ObservationAggregate, and it is taken from related sectionEvent->Inspection->dateTimeFrom. This field is required because all date-based selections over observations must be created over related inspection.dateTimeFrom -
Date ranges are extracted from underlying FilterHistory: - for inspections date range is extracted from 'dateTimeFrom_gte' and 'dateTimeFrom_lte'
- for observations date ranfe is extracted from 'aggregate_dateTimeFrom_gte' and 'aggregate_dateTimeFrom_lte'
- if no date range is recognised from underlying filter, result set is limited to last 365 days
-
changes are applied to all implemented diagram types -
diagram types expect following FilterHistory types: -
CreatedInspections -> Inspection -
VisitedTransects -> Inspection -
CountSpecies -> Observation -
CountSpeciesBreakdown -> Observations -
ObservationIndex -> Observations
-
-
Tests
Review
-
Parameters dateTimeFrom
anddateTimeTo
are removed from diagram queries and mutations (only the criteria from underlyingfilter_history
will be applied (relative conditions will be implemented in FilterHistory later) -
persisted filter_history
is mandatory for diagram creation -
It is possible to generate diagram data "on the fly" - without having a diagram entity in the database. FilterHistory is also required here, and it is also a persisted FilterHistory from database -
field dateTimeFrom
is added to ObservationAggregate, and it is taken from related sectionEvent->Inspection->dateTimeFrom. This field is required because all date-based selections over observations must be created over related inspection.dateTimeFrom -
Date ranges are extracted from underlying FilterHistory: - for inspections date range is extracted from 'dateTimeFrom_gte' and 'dateTimeFrom_lte'
- for observations date ranfe is extracted from 'aggregate_dateTimeFrom_gte' and 'aggregate_dateTimeFrom_lte'
- if no date range is recognised from underlying filter, result set is limited to last 365 days
-
changes are applied to all implemented diagram types -
diagram types expect following FilterHistory types: -
CreatedInspections -> Inspection -
VisitedTransects -> Inspection -
CountSpecies -> Observation -
CountSpeciesBreakdown -> Observations -
ObservationIndex -> Observations
-
-
Tests
Edited by Michael Voigt