It's all about the answers!

Ask a question

Delivered changeset not visible in other configurations of a component.


1
1
Pavithra Shivalingappa (128218) | asked Jan 23 '20, 3:59 a.m.
Hello Team,

    Is there any way to identify to which stream the changeset belongs to?
We want the delivered changeset of one configuration  to be visible in all the configurations of a component.?

Currently we are facing 402 error while delivering an already delivered changeset  to another stream.

To create a dellivery session :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dng_config="http://jazz.net/ns/rm/dng/config#" xmlns:oslc="http://open-services.net/ns/core#">
<dng_config:DeliverySession>
<dng_config:source rdf:resource="https://localhost:9443/rm/cm/changeset/_aJngsDFg"/>
<dng_config:target rdf:resource="https://localhost:9443/rm/cm/stream/_cZRfb2sVQ"/>
<oslc:serviceProvider rdf:resource="https://localhost:9443/rm/oslc_rm/_q986Y83YA/services.xml"/>
</dng_config:DeliverySession>
</rdf:RDF>

source tag contains - changeset url
target tag contains. -- destination stream url.

Hint: This should work similar to deliver changes where we an option to select the change set that needs to be delivered.

Thanks and Regards,
Pavithra S



Comments
Ralph Schoon commented Jan 23 '20, 10:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This is only available for RTC/CCM.I do not know if the API or anything else provides this for DNG. However, from how it works for CCM, you can infer how complex and time/performance consuming this can be.


Pavithra Shivalingappa commented Jan 23 '20, 11:39 p.m.
i think the link which you have sent doesnot match to my question.

Am looking in DNG if there are any OSLC api's available to find the changeset that was created in parent stream in child streams.  Similar to "Deliver changes" functionality.

Please refer the attachment.


Thomas Kirstätter commented Jan 24 '20, 3:32 a.m. | edited Jan 24 '20, 3:34 a.m.

@Ralph Schoon: Thank you for your support.  I think what we struggle with is in the context of the DNG properties distribution. When we import an update to the properties in a CHangeSet on one DNG stream, we want to deliver exactly this changeSet to all the other streams and nothing else. So, what seems to miss on our side is the knowledge about the API to distinctly deliver one specific changeSet from streamA to streamB


Ralph Schoon commented Jan 24 '20, 6:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Thomas,

Steve answered below.

I looked into the API only in this contex: https://rsjazz.wordpress.com/2019/03/07/type-system-manager-part-2/ . My conclusion was that the public API was just barely usable for my purpose. But I also mentioned it lacks several desirable capabilities. There is no real error indicator e.g. I can not differentiate between error cases (e.g. change set already there).  So my knowledge is fairly limited here, unfortunately. 

One answer



permanent link
Steve Wood (1162) | answered Jan 24 '20, 5:36 a.m.
In DNG, you cannot directly deliver a completed/delivered change set to another stream in this way.  A change set URI can only be specified as the source in a deliver session if it is open and the target is its parent stream.

When delivering changes from one stream to another (that is delivered changes from one stream to another) the API only currently allows the delivery of all delivered change sets that are in the source stream but not the target. 

e.g. suppose we have two streams, Stream A and Stream B.  Into Stream A we deliver CS1, CS2 and CS3.  To get those change sets into Stream B you would need to create a delivery session where Stream A was the source and Stream B was the target, at this point there would be 3 deliverable change sets.  In the UI you can pick to deliver only one of those change sets (although others might be automatically selected if there are dependencies between them), but at present the API does not currently support this.

I hope this answers your question, all be it perhaps unsatisfactorily. 

Comments
Pavithra Shivalingappa commented Jan 24 '20, 6:16 a.m.
In  "Deliver Changes" functionality,  we have an option where we can select express, standard or custom type. In Custom , we have an option where we can select the changesets  that are available in the source stream (includes delivered changeset to the source stream)  that has to be delivered to target stream. 

Please do let me know whats the oslc api used here to view all the available changesets and how is the deliver changes working here?

Your answer


Register or 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.