diff options
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/IssueHandler.java')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/IssueHandler.java | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/IssueHandler.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/IssueHandler.java index 8123b6f2ce6..dc8b22ac32d 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/IssueHandler.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/IssueHandler.java @@ -2,13 +2,8 @@ package com.yahoo.vespa.hosted.controller.api.integration.organization; -import com.yahoo.vespa.hosted.controller.api.integration.jira.JiraIssue; - -import java.io.InputStream; import java.time.Duration; -import java.util.List; import java.util.Optional; -import java.util.function.Supplier; /** * @author jonmv @@ -24,22 +19,12 @@ public interface IssueHandler { IssueId file(Issue issue); /** - * Returns all open issues similar to the given. - * - * @param issue The issue to search for; relevant fields are the summary and the owner (propertyId). - * @return All open, similar issues. - */ - List<IssueInfo> findAllBySimilarity(Issue issue); - - /** * Returns the ID of this issue, if it exists and is open, based on a similarity search. * * @param issue The issue to search for; relevant fields are the summary and the owner (propertyId). * @return ID of the issue, if it is found. */ - default Optional<IssueId> findBySimilarity(Issue issue) { - return findAllBySimilarity(issue).stream().findFirst().map(IssueInfo::id); - } + Optional<IssueId> findBySimilarity(Issue issue); /** * Update the description of the issue with the given ID. @@ -123,8 +108,4 @@ public interface IssueHandler { * @throws RuntimeException exception if project not found */ ProjectInfo projectInfo(String projectKey); - - /** Upload an attachment to the issue, with indicated filename, from the given input stream. */ - void addAttachment(IssueId id, String filename, Supplier<InputStream> contentAsStream); - } |