Project

General

Profile

bug #9213

specimen views 'compressed table' and 'derivate tree' fail when no fieldunits exists

Added by Andreas Kohlbecker 8 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Highest
Category:
cdm-dataportal
Target version:
Start date:
09/02/2020
Due date:
% Done:

100%

Severity:
critical
Found in Version:
Tags:

Description

Former Subject portal/taxon/{taxon_uuid}/associatedFieldUnits and taxon/{uuid}/fieldUnitDTOs.json return empty pager


At least for this request the web service returns no entires in the pager even if 8 specimens are found by other means in the data portal code compose_cdm_taxon_page_specimens($taxon)

http://api.cybertaxonomy.org/cichorieae/portal/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/associatedFieldUnits.json?pageNumber=0&pageSize=50 --> new URL: http://api.cybertaxonomy.org/cichorieae/portal/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/associatedRootUnits.json?pageNumber=0&pageSize=50(expecting 8 fieldunits in this case, see http://api.cybertaxonomy.org/cichorieae/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/specimensOrObservationsCount.json)

this is critical since it breaks existing portals which are using the compressed COMPRESSED SPECIMEN DERIVATE TABLE

same problem with http://api.cybertaxonomy.org/cichorieae/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/fieldUnitDTOs.json --> new URL http://api.cybertaxonomy.org/cichorieae/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/rootUnitDTOs.json

there is no error in the server log


Related issues

Related to Edit - feature request #7704: Dataportal specimen table should be able to show DerivedUnits without a FieldUnit Closed 08/30/2018
Related to Edit - bug #9395: DerivedUnit.collectFieldUnits() and findFieldUnitDTOByAssociatedTaxon() and findByAccessionNumber() in OccurrenceService to return all root units Closed 01/18/2021

History

#1 Updated by Andreas Kohlbecker 8 months ago

  • Description updated (diff)

#2 Updated by Andreas Kohlbecker 8 months ago

  • Subject changed from portal/taxon/{taxon_uuid}/associatedFieldUnits returns empty pager to portal/taxon/{taxon_uuid}/associatedFieldUnits and taxon/{uuid}/fieldUnitDTOs.json return empty pager
  • Description updated (diff)

#3 Updated by Andreas Kohlbecker 8 months ago

  • Description updated (diff)

#4 Updated by Andreas Kohlbecker 8 months ago

taxon/85176c77-e4b6-4899-a08b-e257ab09350a/fieldUnitDTOs seems to be broken due to problems in the method FieldUnitDTO findFieldUnitDTO(DerivateDTO derivedUnitDTO, Collection<FieldUnitDTO> fieldUnits,
HashMap<UUID, DerivateDTO> alreadyCollectedSpecimen)
which seems quite inconsistent: It returns only one FielsUnitDTO but internally the method attempts find multiple FieldUnits in order to add them to the Collection<FieldUnitDTO> fieldUnits but none FieldUnits are actually found.

#5 Updated by Andreas Kohlbecker 8 months ago

  • Tags set to specimen
  • Subject changed from portal/taxon/{taxon_uuid}/associatedFieldUnits and taxon/{uuid}/fieldUnitDTOs.json return empty pager to specimen views 'compressed table' and 'derivate tree' fail when no fieldunits exists
  • Description updated (diff)
  • Category changed from cdmlib-remote to cdm-dataportal

The real problem for the missing specimen information in the portal for Lactuca serriola in the Cichoriae portal is that the Specimens don't have an assocciated field unit. Both specimens views compressed table and derivate tree expect that a FieldUnit always exists.

(--> Changing the ticket subject accordingly .....)

#6 Updated by Andreas Kohlbecker 7 months ago

  • Related to feature request #7704: Dataportal specimen table should be able to show DerivedUnits without a FieldUnit added

#7 Updated by Andreas Kohlbecker 3 months ago

  • Target version changed from Release 5.18 to Release 5.19

#8 Updated by Andreas Kohlbecker 3 months ago

  • Target version changed from Release 5.19 to Release 5.21

#9 Updated by Andreas Müller about 1 month ago

  • Target version changed from Release 5.21 to Release 5.22

#10 Updated by Andreas Kohlbecker about 1 month ago

  • Description updated (diff)

#11 Updated by Andreas Kohlbecker about 1 month ago

  • Related to bug #9395: DerivedUnit.collectFieldUnits() and findFieldUnitDTOByAssociatedTaxon() and findByAccessionNumber() in OccurrenceService to return all root units added

#12 Updated by Andreas Kohlbecker about 1 month ago

  • Status changed from New to Closed
  • Target version changed from Release 5.22 to Release 5.19
  • % Done changed from 0 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)