def search_issues() -> ResultList: result = ResultList() for x in range(0, 10, 1): temp_issue = Issue(None, None) temp_issue.key = 'Test-{}'.format(x) temp_issue.updated = '2014-01-01 00:00:01' result.append(temp_issue) return result
def non_cached_issue(issue_key: str) -> 'JiraIssue': """ Used to represent a non-cached JiraIssue for use during dependency resolution storage / visualization :return: a JiraIssue w/out an active connection or any fields outside the issue key """ new_issue = Issue(None, None) new_issue.key = issue_key result = JiraIssue(None, new_issue) result['relationship'] = 'MISSING CHAIN' result['summary'] = 'BREAK IN CHAIN. Cache offline to see deps.' result.is_cached_offline = False # hard-code it to being open since we don't know result['resolution'] = None return result