Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

IBaselineHierarchyResult: Multiple parents for the same child?

Looking at the class IBaselineHierarchyResult and the method getChildToParentsMap() it seems that there can be multiple parents for one child.

Is that really possible?
If so in which situation?

Or (my assumption) is it there because this interface is also implemented by IComponentHierarchyResult and a component can have multiple parents (since in each stream there can be a different component hierarchy)?

Please help to understand the code.

Thank you

0 votes


Accepted answer

Permanent link

 At a logical level, yes, a particular child baseline can be referenced by an arbitrary number of parent baselines.

To do so, create stream X with baseline A.3 of component A and baseline B.5 of component B.
Then create stream Y with baseline C.4 of component C and baseline B.5 of component B.
In stream X, make B a child of A, and then baseline A, resulting in a new baseline of A whose child is baseline B.5
In stream Y, make B a child of C, and then baseline b, resulting in a new baseline of C whose child is baseline B.5.

Or did i misunderstand your question?

Marko Tomljenovic selected this answer as the correct answer

0 votes

Comments

Yes, Geoff, you are right.
I had the impression that the baselinehierarchyresult object is created in the context of one snapshot/stream. But it is not, it is global (whole repository).
And then a baseline can have of course multiple parents (each in different streams/snapshots).
Thank you

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,007

Question asked: May 24 '17, 11:15 a.m.

Question was seen: 1,510 times

Last updated: Jun 01 '17, 4:16 a.m.

Confirmation Cancel Confirm