From 3b3ce0ce1e45c09b63c5e515f9f58054908c005c Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Fri, 9 Sep 2022 15:53:24 +0200 Subject: [PATCH 1/2] Return just latest versions in proxy mode /search --- search.go | 1 + 1 file changed, 1 insertion(+) diff --git a/search.go b/search.go index 6e67df451..68a54983a 100644 --- a/search.go +++ b/search.go @@ -53,6 +53,7 @@ func searchHandlerWithProxyMode(indexer Indexer, proxyMode *proxymode.ProxyMode, return } packages = packages.Join(proxiedPackages) + packages = latestPackagesVersion(packages) } data, err := getPackageOutput(r.Context(), packages) From a85713acdc85bdc05414b03c9c4db02abb3d3cc6 Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Fri, 9 Sep 2022 15:58:55 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05aa3c3be..4840233e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added * Update favicon to be the Elastic Package Registry logo. [#858](https://github.com/elastic/package-registry/pull/858) -* Implement proxy mode. [#860](https://github.com/elastic/package-registry/pull/860) [#871](https://github.com/elastic/package-registry/pull/871) +* Implement proxy mode. [#860](https://github.com/elastic/package-registry/pull/860) [#871](https://github.com/elastic/package-registry/pull/871) [#873](https://github.com/elastic/package-registry/pull/873) ### Deprecated