-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during query with satisfies links #47
Comments
Hi The UUIDs are different because each binding (use of an artifact in a module) has a different UUID. The ID is the same because the bindings are referring to the same core/base artifact. There's a limitation of oslcquery that it doesn't know how to recognise the same type in different components (i.e. in a GC). Defining URIs on the type in each component and oslcquery using the URI is how it should work, I think, but I don't have time to implement that ATM. You should anyway be defining URIs because Report Builder needs these to match the types up too. However the issue you're seeing seems different. |
Thanks for your reply barny, Yes from now on we are defining URIs for every element, but we cannot do it for some already baselined streams. Anyway, I finally I did a workaround by doing one oslcquery for every component (with local configurations) and then combined them in my side. With that I were able to take the satisfies links with the uuids and relate them in this way. For now I'm manually taking the local config stream/baseline uri of every module which take part in a global stream and using them for all the extractions I need. In this way I avoid any errors which gc usage may suppose but I cannot ensure that the local stream/baseline is still in that gc. So my idea now is to automatically extract all the streams/baselines that are inside a gc stream to avoid introducing this data manually at some constants (as this changes during the project development). Probably it can be done somehow with oslcquery or with some simple API requests but I still need to work on it. Thank you for your advice! |
That sounds like a pragmatic approach :-) FYI GCM has documented APIs on https://YOURSERVER:PORT/gc/doc/scenarios There's an API call to get the contributions to a GC hierarchy see https://jazz.net/gc/doc/scenario?id=GetFlatListOfContributionsForGcHiearchy |
There's existing code in oslcquery.py which is an example of getting and processing all the RM contributions to a gc - look for You might want to try the |
Thanks - next release will remove the hard limit 1000, will simply iterate incrementing until it finds a unique new prefix. |
Hello,
I have been using the oslc query for retrieving artifacts attribute from DNG /rm.
When using global configuration, I am executing a query to retrieve artifacts with links of type 'Satisfies'.
To do that I execute a query as the following one:
With this, I am getting the following error:
And actually, after checking, is true that with the given URI(if I check at navigator) there is no artifact with that URI UUID among that global configuration.
So checking further, in previous gc streams it was and I detected the id(and the requirement itself) is in the stream I'm looking for, but the URI UUID seems that changed between gc streams. So it is something like this status:
At GC stream 2.0 -> ID: 356124 || UUID: BI_Jj_gc4qEEe2X94hUXsF8pw
At GC stream 3.0 -> ID: 356124 || UUID: BI_XBPSkwM_Ee6lBfMIxW_p0w
I do not know, if for this change at the uri UUID it might be problems when quering, I have cheked the link at doors and it is okey, even tried removing link and adding again.
So I'd like to ask if you think this could be the reason why this error is appearing or you would know an approach to solve it, as when the error appears no results gets generated, so I cannot check for other values if are being properly processed(I guess yes), But I used similar queries for other projects and worked pretty fine.
--
Also, I am not querying here by any artifact type because the ones i need to look for, has same name in different components of the project but some of them have URIs defined and others not and I cannot change as some are already baselined (Querying by the artifact type name within global configuration do not return the needed result).
Thanks a lot in advance.
Regards!
The text was updated successfully, but these errors were encountered: