Changes between Initial Version and Version 2 of Ticket #1067


Ignore:
Timestamp:
26.02.2017 17:16:54 (5 years ago)
Author:
jri
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1067

    • Property Status changed from new to accepted
  • Ticket #1067 – Description

    initial v2  
    1 Needed for #1060 
     1Needed for #1060. 
     2 
     3Background: since DM 4.8.4 when creating a type the core passes a sole `TopicModel` to the `preCreateTopic()` listener (instead a `TypeModel`). This is a consequence of 4.8.4's "Non-shared type extensions" feature (#1021). So, in the `preCreateTopic()` listener a plugin can't no longer cast the passed topic model into `TypeModel` in case it want operate on the type-specific parts. The solution is to introduce `preCreateTopicType()` and `preCreateAssociationType()` listeners which receive explicit topic/assoc type models.