why do unloaded components have pending updates in RTC
Here is the situation. Stream has several components. Workspace1 includes all of the components. Workspace2 only includes a subset. Both WS flow from / to the stream. When I make changes to a component in WS1 that is missing in WS2 and deliver, I get updates notification in WS2 and acceptting those it adds the missing component. Which seems strange. I have also tried removing a component from a WS and that also affects the other WS. I am missing an action and if the above is correct, can anyone explain the thinking behind it. Is it because the stream has all of the components? Regards, John |
Accepted answer
By default, RTC SCM will synchronize the components, trying to keep the same components in the stream and in the workspaces that flow with that stream. If you add a component to your workspace, you can deliver that change to the stream, and the new component can then be accepted into other workspaces that flow with the stream. Likewise if you remove a component from your workspace, you can deliver that change to the stream, and others can accept that removal into their workspaces. This is the behavior that you are seeing, and it is expected.
But there is a way to override that behavior and to have workspaces with only a subset of the stream's components. If you want Workspace2 to have fewer components than the stream, then open the workspace definition, go to the flow targets section at the bottom of the editor, click on your flow target, click the Edit button, select "Flow only components checked below", and select only the components that you want to have in the workspace. Then you can safely remove the other components from the workspace without that removal being propagated to the stream and to other people's workspaces.
-- David Olsen, IBM Rational, Jazz Process Team
john norris selected this answer as the correct answer
Comments Thanks David, your last paragraph has identified the configuration change to solve an RTC3 build issue we have - with a dedicated Build Machine Workspace PER Component for a Development Stream, I was seeing RTC continually file-transfer & update (on Pending Changes) ALL components to ALL Workspace, despite me listing only the target Component in the Component List on each Workspace Definition - The implication from the Workflow Definition is only this single component should then be "flowed" but this doesn't work that way Until, as you point out, we also edit the Flow Target Stream to also only list the same matching single component...That's been a great help thankyou !
john norris
commented Aug 10 '12, 8:50 a.m.
David, thank you for your answer. That's great. Regards, John |
One other answer
Hi John,
this is because your stream has various components and it's the default Flow Target for your WS. For your WS (let's say WS1), the additional components is a difference in the configuration with its target stream: that's why you are seeing the incoming change to add the components. If you remove your component in a WS once you deliver this change, the other WS ("WS2") will be affected because the component no more exists in the flow target that both share. Hope this helps. Regards, Jorge. Comments Hi Jorge,
Hi John,
|
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.