Ticket #636 (closed Enhancement: fixed)
Simplify format of create topic requests and declarative migrations
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.6 |
Component: | DeepaMehta Standard Distribution | Version: | 4.2 |
Keywords: | Cc: | dgf, Malte, JuergeN | |
Complexity: | 3 | Area: | Application Framework / API |
Module: | deepamehta-core |
Description (last modified by jri) (diff)
When creating composite topics the child topic's type_uri is implicit and should not be required to be specified.
Example:
{ type_uri: "my.parent.type" childs: { "my.child.type": { uri: "child.topic.uri", type_uri: "my.child.type", ### this line should not be required value: "Hi!" } } }
Note: in this example the child topic is supposed to get an explicit URI, that's why the canonic topic format (id, uri, type_uri, value, childs) must be used here. This ticket refers to the canonic topic format only.
Just to remember: if your application does not rely on specific topic URIs, the simplified topic format could be used anyway. In this case there is no redundant type_uri:
{ type_uri: "my.parent.type" childs: { "my.child.type": "Hi!" } }
This works for composite child topics as well:
{ type_uri: "dm4.contacts.person" childs: { "dm4.contacts.person_name": { "dm4.contacts.first_name": "Paul", "dm4.contacts.last_name": "Morrison" } } }
Change History
comment:3 Changed 10 years ago by jri
- Cc JuergeN added
- Description modified (diff)
- Milestone changed from Release 4.4 to Release 4.6
comment:5 Changed 10 years ago by jri
- Status changed from accepted to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.