Project

General

Profile

Actions

New OpenAtlas model

#1563

To do

  • Code adaptions for deleted web.form
  • New model, icons => get from and than remove mapping list from openatlas/api/v02/endpoints/content/class_mappings.py

Refactor

  • Join finds and artifacts to artifacts
  • Reverse types root id

Finishing

  • Build view for new class system (check translations)
  • Look into using openatlas_class.standard_type_id instead of getting it elsewhere (e.g. for forms). It seems at the moment it is only used to see if there is a standard type.
  • API, and what about class icons (Berni)
  • Check THANADOS scripts (Stefan)
  • Update manual

Done

Renaming

  • Table model.class -> model.cidoc_class
  • Table model.class_i18n -> model.cidoc_class_i18n
  • Table model.class_inheritance -> model.cidoc_class_inheritance
  • Field entity.class_code to cidoc_class_code
  • Field entity.system_class to openatlas_class_name

New table model.openatlas_class

  • id (pk)
  • name (unique)
  • cidoc_class_code (fk model.cidoc_class.code)
  • standard_type_id (fk model.entity.id)
  • alias_possible (bool)
  • write_access_group_name (fk web.group.name default = contributor)
  • layout_color (str) for network visualistation
  • layout_icon (str) for Bootstrap icons, see openatlas/api/v02/endpoints/content/class_mappings.py
  • New OpenAtlas classes: actor actor relation, actor function, involvement

New constraints

  • Unique key for name in web.group
  • Foreign key openatlas_class_name in model.entity (to model.openatlas_class name)

web.hierarchy

  • join standard, value_type and locked to category with possible values
    • standard
    • custom
    • value
    • system (e.g. external reference match)

web.hierarchy_form

  • rename to web.hierarchy_openatlas_class
  • rename field form_id to openatlas_class_id (pk mode.openatlas_class.id)
  • keep unique key hierarchy_id/openatlas_class_id
  • delete web.form

Updated by Alexander Watzinger about 7 hours ago · 25 revisions

Also available in: PDF HTML TXT