Project

General

Profile

bug #9213

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

Added by Andreas Kohlbecker 16 days ago. Updated 16 days ago.

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

0%

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 (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

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 New 08/30/2018

History

#1 Updated by Andreas Kohlbecker 16 days ago

  • Description updated (diff)

#2 Updated by Andreas Kohlbecker 16 days 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 16 days ago

  • Description updated (diff)

#4 Updated by Andreas Kohlbecker 16 days 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 16 days 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 11 days ago

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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)