Project

General

Profile

Actions

bug #7340

closed

OderedVocabularies are initialised with DefinedTerms

Added by Patrick Plitzner almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Priority14
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:

Description

In Campanula production I tried adding a new term for all term vocabularies.
This fails for OrderTermVocabularies because the fallback, when creating a new term, is creating a DefinedTerm which results in a ClassCastException when adding to an OrderedTermVocabulary (TermType.getEmptyDefinedTermBase()).
This happens for:

  • DeterminationModifier:
  • Modifier:
  • Stage:
  • Sex:
  • Scope:

Additionally, in Campanula production, for the following term types a class cast exception happens because they are initialised with DefinedTerms although they are OrderedTermVocabularies:

  • Sex
  • Determination Modifier

Related issues

Related to EDIT - bug #6343: TermVocabularies of OrderedTerms must be OrderedVocabulariesIn ProgressAndreas Müller

Actions
Actions #1

Updated by Andreas Müller almost 6 years ago

  • Related to bug #6343: TermVocabularies of OrderedTerms must be OrderedVocabularies added
Actions #2

Updated by Andreas Müller almost 6 years ago

  • Status changed from New to Resolved
  • Assignee changed from Andreas Müller to Patrick Plitzner
  • Priority changed from New to Priority14
  • Target version changed from Unassigned CDM tickets to Release 5.1

By definition these terms and there vocabularies should not be ordered. The following attributes are all of type DefinedTerm and NOT DefinedTermBase and therefore are NOT ordered.

SpecimenOrObservationBase.sex
SpecimenOrObservationBase.lifeStage
DeterminationEvent.modifier
DescriptionElementBase.modifier
StateData.modifiers
StatisticalMeasurementValue.modifiers
IIdentificationKey.getScopeRestrictions
TaxonDescription.scopes

I did set all vocabularies and their terms to non-ordered on all DBs on production, test and integration. An according update script for other database will run within #6343. The according SQL statements to update local databases before can be found there.

The csv files for Sex and Determination Modifier needed to be updated (see changeset)

Actions #3

Updated by Andreas Müller almost 6 years ago

  • % Done changed from 0 to 50
Actions #4

Updated by Patrick Plitzner almost 6 years ago

  • Status changed from Resolved to Closed
  • Assignee changed from Patrick Plitzner to Andreas Müller
  • % Done changed from 50 to 100

I tried creating a new term for the above mentioned vocabularies and everything worked fine.

Actions

Also available in: Atom PDF