Actions
feature request #10474
openImprove occurrence loading for taxon page
Start date:
Due date:
% Done:
0%
Estimated time:
Severity:
normal
Description
This is strongly related to #10322. There we already split SpecimenOrObservationBaseDTO and subtype DTOs into relatively pure DTOs and loader classes. But there are still a couple of issues left.
sort order for derivatives=> implemented for sort on the short label- loading of the instances still partly takes place in the service classes, therefore some of the computing steps (computing summary label, boolean hasXXX values and updating the data after adding a derivative, ...) still takes place in the DTO but should be triggered by the loader class
- for map computation there is still a separate call to separate remote method taxonOccurrencesFor which internally does the call to the loader again.
We need some similar structure as distributionInfoForwhich combines DTO base values as well as map parameters => wrapping occurrenceInfoDto implemented, but not yet including map parameters - do load not via model objects
- adapt DTOs so that they work with jackson (see #note-5, see also #6992)
- remove all model classes from DTOs (...) => this is mostly done, are there stillopen issues?
- implement paging (exists for model objects in OccurrenceService.pageRootUnitsByAssociatedTaxon() maybe used in old derivate path view in dataportal and (without paging) in TaxEditor
- create tests for DTO loading
Related issues
Updated by Andreas Müller 3 months ago
- Related to feature request #10322: Use DTOs for portal taxon page (cont.) added
Updated by Andreas Müller 3 months ago
- Related to task #4911: improve performance of distributionInfoFor service added
Updated by Andreas Müller 3 months ago
- Related to task #3336: Improve overall dataportal page loading performance added
Updated by Andreas Müller 3 months ago
- Description updated (diff)
Joda time does not work with jackson yet:
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Joda date/time type `org.joda.time.DateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-joda" to enable handling (through reference chain: eu.etaxonomy.cdm.api.dto.portal.TaxonPageDto["rootSpecimens"]->java.util.ArrayList[0]->eu.etaxonomy.cdm.api.dto.FieldUnitDTO["derivatives"]->java.util.HashSet[0]->eu.etaxonomy.cdm.api.dto.DerivedUnitDTO["kindOfUnit"]->eu.etaxonomy.cdm.model.term.DefinedTerm["created"])
Updated by Andreas Müller 3 months ago
Test page is: https://int.e-taxonomy.eu/dataportal/integration/reference/cdm_dataportal/taxon/d245083e-3bda-435f-9bb3-bdc2249ff23c/specimens
Test webservice is: https://int.e-taxonomy.eu/cdmserver/integration_reference/portal/taxon/d245083e-3bda-435f-9bb3-bdc2249ff23c/rootUnitDTOs.json?taxOccRelFilter=IA%2CTD%2CDET%2CCDET
Updated by Andreas Müller about 2 months ago
- Related to task #6992: Refactor and modernize REST web service API added
Actions