Project

General

Profile

Actions

bug #9213

closed

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

Added by Andreas Kohlbecker about 3 years ago. Updated over 2 years ago.

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

100%

Estimated time:
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 FieldUnitClosedAndreas Kohlbecker

Actions
Related to EDIT - bug #9395: DerivedUnit.collectFieldUnits() and findFieldUnitDTOByAssociatedTaxon() and findByAccessionNumber() in OccurrenceService to return all root unitsClosedAndreas Kohlbecker

Actions
Actions #1

Updated by Andreas Kohlbecker about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Andreas Kohlbecker about 3 years 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)
Actions #3

Updated by Andreas Kohlbecker about 3 years ago

  • Description updated (diff)
Actions #4

Updated by Andreas Kohlbecker about 3 years 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.

Actions #5

Updated by Andreas Kohlbecker about 3 years 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 .....)

Actions #6

Updated by Andreas Kohlbecker about 3 years ago

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

Updated by Andreas Kohlbecker over 2 years ago

  • Target version changed from Release 5.18 to Release 5.19
Actions #8

Updated by Andreas Kohlbecker over 2 years ago

  • Target version changed from Release 5.19 to Release 5.21
Actions #9

Updated by Andreas Müller over 2 years ago

  • Target version changed from Release 5.21 to Release 5.22
Actions #10

Updated by Andreas Kohlbecker over 2 years ago

  • Description updated (diff)
Actions #11

Updated by Andreas Kohlbecker over 2 years ago

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

Updated by Andreas Kohlbecker over 2 years ago

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

Also available in: Atom PDF