Skip to content

Commit

Permalink
removing old metrics client
Browse files Browse the repository at this point in the history
  • Loading branch information
fmendezh committed Mar 26, 2024
1 parent eefd90f commit 8f08f1a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
<gbif-download-query-tools.version>1.51.0</gbif-download-query-tools.version>
<gbif-httputils.version>0.10</gbif-httputils.version>
<gbif-metadata-profile.version>2.1</gbif-metadata-profile.version>
<gbif-metrics.version>1.2</gbif-metrics.version>
<gbif-parsers.version>0.60</gbif-parsers.version>
<gbif-postal-service.version>1.8.0</gbif-postal-service.version>
<xoai.version>4.1.0-gbif-4</xoai.version>
Expand Down Expand Up @@ -352,11 +351,6 @@
<artifactId>directory-ws-client</artifactId>
<version>${gbif-directory.version}</version>
</dependency>
<dependency>
<groupId>org.gbif.metrics</groupId>
<artifactId>metrics-ws-client</artifactId>
<version>${gbif-metrics.version}</version>
</dependency>
<dependency>
<groupId>org.gbif.occurrence</groupId>
<artifactId>occurrence-ws-client</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions registry-oaipmh/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
<groupId>org.gbif.registry</groupId>
<artifactId>registry-service</artifactId>
</dependency>
<dependency>
<groupId>org.gbif.metrics</groupId>
<artifactId>metrics-ws-client</artifactId>
</dependency>
<dependency>
<groupId>org.gbif</groupId>
<artifactId>gbif-metadata-profile-eml</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions registry-pipelines/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
<groupId>org.gbif</groupId>
<artifactId>gbif-api</artifactId>
</dependency>
<dependency>
<groupId>org.gbif.metrics</groupId>
<artifactId>metrics-ws-client</artifactId>
</dependency>
<dependency>
<groupId>org.gbif.occurrence</groupId>
<artifactId>occurrence-ws-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;

import org.springframework.util.LinkedMultiValueMap;

import static org.gbif.registry.pipelines.issues.GithubApiService.Issue;

@Component
Expand Down Expand Up @@ -190,7 +192,7 @@ private String buildIssueBody(
List<String> oldIds) {

long occCount =
cubeWsClient.count(Collections.singletonMap("datasetKey", datasetKey.toString()));
cubeWsClient.get(new LinkedMultiValueMap<>(Collections.singletonMap("datasetKey", Collections.singletonList(datasetKey.toString()))));

StringBuilder body = new StringBuilder();
body.append(intro)
Expand Down

0 comments on commit 8f08f1a

Please sign in to comment.