From d553fee2bbc315220b3869245f11cba6b3212e06 Mon Sep 17 00:00:00 2001 From: Sahiba Mittal Date: Tue, 29 Aug 2023 14:16:07 +0100 Subject: [PATCH] update repository_url to identifier Signed-off-by: mehab --- .../org/hyades/repointegrityanalysis/v1/integrity_check.proto | 4 ++-- .../java/org/hyades/processor/IntegrityAnalyzerProcessor.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proto/src/main/proto/org/hyades/repointegrityanalysis/v1/integrity_check.proto b/proto/src/main/proto/org/hyades/repointegrityanalysis/v1/integrity_check.proto index a7a0e784b..c4d77118a 100644 --- a/proto/src/main/proto/org/hyades/repointegrityanalysis/v1/integrity_check.proto +++ b/proto/src/main/proto/org/hyades/repointegrityanalysis/v1/integrity_check.proto @@ -18,8 +18,8 @@ message IntegrityResult { HashMatchStatus sha1_hash_match = 3; //sha256 hash match status of component HashMatchStatus sha256_hash_match = 4; - //URL of the repository with which the hashes were compared - string repository_url = 5; + //Identifier of the repository with which the hashes were compared + string repository_identifier = 5; // When was the integrity check updated google.protobuf.Timestamp updated = 6; } diff --git a/repository-meta-analyzer/src/main/java/org/hyades/processor/IntegrityAnalyzerProcessor.java b/repository-meta-analyzer/src/main/java/org/hyades/processor/IntegrityAnalyzerProcessor.java index 893d0198a..82ac004ca 100644 --- a/repository-meta-analyzer/src/main/java/org/hyades/processor/IntegrityAnalyzerProcessor.java +++ b/repository-meta-analyzer/src/main/java/org/hyades/processor/IntegrityAnalyzerProcessor.java @@ -72,7 +72,7 @@ public void process(FixedKeyRecord inputRecord) { .setComponent(component) .setSha1HashMatch(HashMatchStatus.HASH_MATCH_STATUS_COMPONENT_MISSING_HASH) .setSha256HashMatch(HashMatchStatus.HASH_MATCH_STATUS_COMPONENT_MISSING_HASH) - .setRepositoryUrl(repository.getIdentifier()); + .setRepositoryIdentifier(repository.getIdentifier()); result = resultBuilder.build(); } @@ -160,7 +160,7 @@ private IntegrityResult getIntegrityResult(Repository repository, IntegrityModel .setComponent(analyzerComponent) .setSha1HashMatch(integrityModel.getHashMatchStatusSha1()) .setSha256HashMatch(integrityModel.getHashMatchStatusSha256()) - .setRepositoryUrl(repository.getUrl()) + .setRepositoryIdentifier(repository.getIdentifier()) .setUpdated(Timestamp.newBuilder().setSeconds(Instant.now().getEpochSecond())); return resultBuilder.build(); }