From 0af142749e7a88e22358fc8736397e557d87920f Mon Sep 17 00:00:00 2001 From: Nikolay Solovyev Date: Tue, 11 May 2021 10:48:18 +0300 Subject: [PATCH 1/2] fix show description --- src/cls/ZPM/Package.cls | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cls/ZPM/Package.cls b/src/cls/ZPM/Package.cls index 8683d5f..a2a45ff 100644 --- a/src/cls/ZPM/Package.cls +++ b/src/cls/ZPM/Package.cls @@ -512,11 +512,10 @@ ClassMethod GetLatest(searchTerms As %DynamicArray = "", Output pStatus As %Stat } Set searchCondition = searchCondition_ " ) " } - set sql = "SELECT name, repository, description, "_ - " ( SELECT TOP 1 version FROM ZPM.Package p2 WHERE p1.name=p2.name ORDER BY versionMajor DESC, versionMinor DESC, versionPatch DESC, versionPrerelease DESC, versionBuildmetadata DESC ) version " _ + set sql = "SELECT name, repository, description, version "_ " FROM ZPM.Package p1 "_ - " WHERE "_searchCondition_" "_ - " GROUP BY name ORDER BY name" + " WHERE "_searchCondition_" "_ + " AND p1.version = ( SELECT TOP 1 version FROM ZPM.Package p2 WHERE p1.name=p2.name ORDER BY versionMajor DESC, versionMinor DESC, versionPatch DESC, versionPrerelease DESC, versionBuildmetadata DESC ) " Set tStatement = ##class(%SQL.Statement).%New() Set tStatus = tStatement.%Prepare(sql) From 2f87ef76362d183a389341ccf504541f731b89e8 Mon Sep 17 00:00:00 2001 From: Nikolay Solovyev Date: Tue, 11 May 2021 10:50:14 +0300 Subject: [PATCH 2/2] version --- module.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.xml b/module.xml index 5f94134..87081d1 100644 --- a/module.xml +++ b/module.xml @@ -4,7 +4,7 @@ zpm-registry Registry server for ZPM - 1.1.3 + 1.1.4 module