Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Add collItem get by artifact info method (#399)
Browse files Browse the repository at this point in the history
* Add audit report repo method for test result processin

* Remove unused method

* Increment core pom

* Add get coll item by artifact options
  • Loading branch information
tatlax3636 authored Jul 21, 2022
1 parent 4ccc7e5 commit 64a78dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<groupId>com.capitalone.dashboard</groupId>
<artifactId>core</artifactId>
<packaging>jar</packaging>
<version>3.15.39</version>
<version>3.15.40</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Core package shared by API layer and Microservices</description>
<url>https://github.com/Hygieia/hygieia-core</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public interface CollectorItemRepository extends BaseCollectorItemRepository<Col
@Query("{'collectorId' : ?0, 'options.jobUrl' : ?1}")
CollectorItem findByJobUrl(ObjectId collectorId , String jobUrl);

@Query("{'options.artifactName' : ?0, 'options.artifactVersion' : ?1, 'options.testResultsUrl' : ?2}")
CollectorItem findByArtifactNameAndArtifactVersionAndTestResultsUrl(String artifactName, String artifactVersion, String testResultsUrl);

default Iterable<CollectorItem> findAllByOptionNameValue(String optionName, String optionValue) {
PathBuilder<CollectorItem> path = new PathBuilder<>(CollectorItem.class, "collectorItem");
BooleanBuilder builder = new BooleanBuilder();
Expand Down

0 comments on commit 64a78dd

Please sign in to comment.