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

Is this allowed in Global Configurations?

 Hi, 


Is the same RM component allowed to appear in a Global Congifuration twice, but with different "Streams" or local configurations?

i.e. lets say we have a component called "Generator" and a Global Configuration called "Vessel 1"

If Generator has two streams, Generator Port and Generator Starboard, can both of these streams appear under the same "Vessel 1" global configuration?

Vessel 1
> Generator Port
>> (from "Generator" RM component)
> Generator Starboard
>> (from "Generator" RM component)

0 votes


Accepted answer

Permanent link

 As Thomas mentions above, having two or more different configurations of the same component in a GC hierarchy is allowed, but it creates a condition called "component skew". Component skew affects which configuration is used to resolve an artifact version. The ambiguity of component skew is resolved using the order of the configurations in the hierarchy, with the first one (by a depth-first search traversal) being given precedence.


The GC tree will show a warning when component skew is present. Skew is not necessarily wrong, but it may be if done unintentionally. If the skewed components are in different parts of the tree, then setting your configuration context (in DOORS Next or ETM) to something more specific (a node that isn't a common ancestor) is one way to eliminate the ambiguity of skew. The skew resolution rules based on order does ensure you have consistent behavior, but it may not be obvious to a user who isn't aware of the skew. Opening the configuration context menu in the banner of RM will reveal which local configuration (Generate Port or Generator Starboard) was actually selected for the GC.

You may want to consult the following topic:

Glyn Costello selected this answer as the correct answer

0 votes

Comments

 Ok, this makes sense and I have tried it in the test area. So basically, if a user was viewing the Motor component's RM artifacts in the context of the "Vessel 1" the local RM config would be selected based on skew resolution rules (because it can't show the artifact content for both Port side and Starboard side motors). 

 Glyn, I'm not sure where the motor component fits in as I don't see it represented in the original hierarchy you shared.


But if Vessel 1 is the context GC, then Generator Port would be the chosen local configuration per skew resolution, because it appears before the other candidate, Generator Starboard. Therefore the RM artifacts you see would be from Generator Port.

You can try this clicking setting the RM configuration context to Vessel 1. Then, expand the configuration context menu and see the local configuration that was chosen (Generator Port).

Also, from the GC hierarchy in GCM, try clicking each of the RM contributions. If you click the non-preferred one, a disambiguation dialog will appear prior to navigating you to RM. If you proceed with the non-preferred selection, RM will be opened in the context of that local configuration only, with no GC. That's because showing the GC in this case would be misleading - any links for the GC would be with respect to the preferred configuration (Generator Port), not Generator Starboard.

I agree with all of Tom's comments, except for the "skew is not necessarily wrong" comment.   I believe that using a GC with skew will virtually always result in significant user confusion, and very likely significant errors (for the reason TomK identifies in his answer).   I believe the only purpose of skew is to allow you to temporarily be in a skewed state as you transition to a new configuration, but that you should never leave a configuration in a skewed state.   If you need to have two "variants" of a component in the same system, I recommend having a separate component for each variant.


One other answer

Permanent link
Hello,
as per my knowledge, this will cause "Component Skew" with a corresponding warning in the GC.
It is possible to have the same configuration of a contribution twice in a GC (same BL or same Stream) but 2 different configurations of the same component will result in skew.

The impact afaik is e.g.:
- Link resolution will not work as expected
- reporting may not work as expected.

0 votes

Comments

 Is it still "Skew" if they were under their own global configuration in the GC hierarchy?


i.e. 

GC: Vessel 1
> GC: Generator Port
>> RM: Generator Port
> GC: Generator STBD
>> RM: Generator STBD

this does not make a difference.

It's still skew if you're using the same root GC, Vessel 1, because the two configurations of the same component have a common ancestor. But, if each of your skewed RM configurations had their own GC, and you set your RM context to one of those GCs, then there would be no skew at that level of the hierarchy. That is, if the you narrow the scope of your context, you may be able to eliminate skew in that context.


For instance, if you select "GC: Generator STBD" in the GC hierarchy from GCM and choose the action "Show as root", the component skew notification will go away, because "RM: Generator Port" doesn't exist in that context.

So, if you have skew at the top level of the hierarchy, but still want users to be able to work on a non-preferred local configuration in some (narrower) GC context, introducing an intermediate GC like "GC: Generator STBD" is a way to achieve this. That makes the most sense if you have other contributions in that same narrower context, such as a QM configuration with test cases for that RM configuration's requirements. As long as you use "GC: Generator STBD" as your GC context in RM, links between those RM and QM contributions will be resolved within that narrower context, which is what you want.

But, if you try to resolve such links in a broader context (say Vessel 1), then the skew resolution rules are going to use "RM: Generator Port" rather than "RM: Generator STBD". 

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
× 7,495
× 6,121
× 1,325

Question asked: Sep 20 '21, 8:59 a.m.

Question was seen: 1,439 times

Last updated: Oct 08 '21, 12:14 a.m.

Confirmation Cancel Confirm