Ticket #1060 (closed Defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Programmatically created types have no view config

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.8.6
Component: DeepaMehta Standard Distribution Version: 4.8.5
Keywords: Cc: dgf, Malte, JuergeN, robert.schuster
Complexity: 3 Area: Application Framework / API
Module: deepamehta-core

Description

... unless it is created via migration as well.

Change History

comment:1 Changed 8 years ago by jri

  • Milestone changed from Release 4.9 to Release 4.8.6

comment:2 Changed 8 years ago by jri

  • Status changed from new to accepted

comment:3 Changed 8 years ago by jri

  • Cc robert.schuster added

comment:4 Changed 8 years ago by jri

In https://github.com/jri/deepamehta/commit/a3a05b62b2e743596a71e96a9e047a78a49ce1bb

Webclient: every type gets a view config (#1060).

A programmatically created topic/assoc type gets a default view config in case no one is given in the migration.
The view config can be interactively edited by the user afterwards.

IMPORTANT

  • Creating the default view config is the responsibility of the Webclient plugin. So, if your plugin creates types via migration, and these types need a default view config, then you have to make sure your plugin is activated after the Webclient plugin. Do so by adding dm4.plugin.activate_after = de.deepamehta.webclient to your plugin.properties. Without that setting your types might get no default view config.
  • Remember that DM will not assign any workspace to your plugin's types (including their view config topics) if they are not part of the DM Standard Platform, that is if their URIs have a prefix other than dm4. (see #371). For non standard types you have to care about the workspace assignment yourself. Do so by using the workspace service's assignTypeToWorkspace() call. Without a workspace assignment your types (including their view config topics) will be not user editable.

See #1060.

comment:5 Changed 8 years ago by Jörg Richter <jri@…>

In c5f50309a0e628608f7c21da23c129279f4c0db1/deepamehta:

Webclient: add "View Config" migration (#1060).

Webclient migration #3 repairs types with missing "View Config" topics.

See #1060.

comment:6 Changed 8 years ago by Jörg Richter <jri@…>

comment:7 Changed 8 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.