akshayrai commented on a change in pull request #4814: [TE][notification] Minor
cleaning up of the jira related code
URL: https://github.com/apache/incubator-pinot/pull/4814#discussion_r345939518
##########
File path:
thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/notification/commons/ThirdEyeJiraClient.java
##########
@@ -61,30 +61,36 @@ private JiraRestClient
createJiraRestClient(JiraConfiguration jiraAdminConfig) {
jiraAdminConfig.getJiraPassword());
}
- /**
- * Search for all the existing jira tickets based on the filters
- */
- public List<Issue> getIssues(String project, List<String> labels, String
reporter, long lookBackMillis) {
- List<Issue> issues = new ArrayList<>();
-
+ private String buildQueryOnCreatedBy(long lookBackMillis) {
long lookBackDays = TimeUnit.MILLISECONDS.toDays(lookBackMillis);
String createdByQuery = "created";
- if (lookBackDays <= 0) {
+ if (lookBackDays < 0) {
Review comment:
lookBackDays is the number of days beyond which you shouldn't merger (reopen
and comment) on jira tickets.
```
=0 - means look back for 0 days which essentially means do not look back.
Keeping creating new jira tickets and do not merge.
>0 - means look back for specific number of days.
<0 - Any negative value is used to denote always merge (infinite lookback).
This is the default setting.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]