Project

General

Profile

feature request #8432

Improve "default" feature tree handling

Added by Patrick Plitzner about 2 months ago. Updated about 2 months ago.

Status:
In Progress
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
07/31/2019
Due date:
% Done:

0%

Severity:
normal

Description

Definitions:

  • default feature tree = term tree of type feature which holds all features in the database in a flat (and alphabetically sorted) way
  • simple feature tree = term tree of type feature which holds only the most often used features like distribution, habitat, description, common names, images and maybe some more

Open questions:

  • do we need a persisted default feature tree
  • can we remove FeatureTreeService.createTransientDefaultFeatureTree
  • TBC

TODOs:

  • remove createDefaultFeatureTree from TermTreeDao.load(uuid) !! Check if this is not used anymore, see code below

  • TBC

@Override
    public TermTree load(UUID uuid) {
        if (uuid.equals(DefaultFeatureTreeUuid) || count() == 0){
            return createDefaultFeatureTree();
        }
        return super.load(uuid);
    }

Related issues

Related to Edit - feature request #6794: Improve term structure In Progress 07/09/2017

Associated revisions

Revision 08f5d256 (diff)
Added by Andreas Müller about 1 month ago

ref #8432 adapt TermTreeDaoImpl.load such that default feature tree is only created and returned if the default feature tree uuid is passed to it

Revision b5de83c2 (diff)
Added by Andreas Müller about 1 month ago

ref #8432 adapt javadoc

History

#1 Updated by Andreas Müller about 2 months ago

  • Description updated (diff)

#2 Updated by Andreas Müller about 2 months ago

  • Target version changed from Unassigned CDM tickets to Release 5.10

#3 Updated by Andreas Müller about 2 months ago

  • Status changed from New to In Progress
  • Priority changed from New to Highest

#4 Updated by Andreas Kohlbecker about 2 months ago

  • Description updated (diff)

#5 Updated by Andreas Kohlbecker about 2 months ago

  • Description updated (diff)

#6 Updated by Andreas Kohlbecker about 2 months ago

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)