syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò (JIRA) <>
Subject [jira] [Commented] (SYNCOPE-1138) Update RelationshipTO to also report the "left" end of a relationship
Date Wed, 05 Jul 2017 08:22:00 GMT


Francesco Chicchiriccò commented on SYNCOPE-1138:

a) Is left/right dependent on which object the relationship was initially defined on? In the
example above, does the PRINTER return a "right-key" for the relationship, and the DEVICE
a "left-key"?

That's my idea to improve the current implementation, yes.
To keep things simple, I would replace the {{rightKey}} field with {{otherKey}}.

b) How can I set the relationship on the other object? I tried in AnyObjectDataBinderImpl.create
doing something like "otherEnd.add(relationship);" after the ARelationship is set on "anyObject",
but I get an error

That's usually the trickiest part, I don't have any ready-to-cook recipe, I should take a
closer look. Maybe an idea to have a feature branch for this issue where we can commit our
partial work?

> Update RelationshipTO to also report the "left" end of a relationship
> ---------------------------------------------------------------------
>                 Key: SYNCOPE-1138
>                 URL:
>             Project: Syncope
>          Issue Type: Improvement
>          Components: common, console, core
>            Reporter: Colm O hEigeartaigh
>            Assignee: Colm O hEigeartaigh
>             Fix For: 2.0.5, 2.1.0
> Currently, the RelationshipTO object only reports the "right" end of a relationship.
However, as relationships in Syncope are bi-directional, we should also report the "left"
end of a relationship. This will make searching for AnyTypes a bit easier than it is at present.

This message was sent by Atlassian JIRA

View raw message