Fix Bug #20337 the searchById doesn't work anymore

This commit is contained in:
Massimiliano Assante 2020-12-14 18:28:48 +01:00
parent f47ec96983
commit 097e2aebdb
3 changed files with 8 additions and 7 deletions

View File

@ -4,6 +4,10 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v2.8.4-SNAPSHOT] - 2020-12-14
Fix Bug #20337 infrastructure-monitor: the searchById doesn't work anymore
## [v2.8.3] - 2020-09-25 ## [v2.8.3] - 2020-09-25
Ported to git and revised xqueries to support new Exists DB version Ported to git and revised xqueries to support new Exists DB version

View File

@ -11,7 +11,7 @@
<groupId>org.gcube.portlets.admin</groupId> <groupId>org.gcube.portlets.admin</groupId>
<artifactId>rmp-common-library</artifactId> <artifactId>rmp-common-library</artifactId>
<version>2.8.3</version> <version>2.8.4-SNAPSHOT</version>
<name>Resource Management Library</name> <name>Resource Management Library</name>
<description> <description>
gCube Resource Management Library is a common library containing shared code for Information System Operations gCube Resource Management Library is a common library containing shared code for Information System Operations

View File

@ -1,7 +1,4 @@
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
let $_res_type := '<RES_TYPE ISdefault ='' />' for $resource in collection('/db/Profiles/<RES_TYPE ISdefault ='' />')//Document/Data/ic:Profile/Resource
let $_res_id := '<RES_ID/>' where $resource/ID/string() eq '<RES_ID/>'
let $res_type := if (empty($_res_type)) then $_res_id else concat($_res_type, '/', $_res_id ) return $resource
let $res_docname := concat('/db/Profiles/',$res_type)
let $res := doc($res_docname)//Document/Data/ic:Profile/Resource
return $res