feat: search endpoint (#1317)

* feat: search endpoint for parent issue selection

* feat: blocker and blocked by search endpoint

* refactor: blocker and blocked by components and types

* refactor: blocker and blocked by components, feeat: cycle and module new search endpoints

* chore: sub-issues param change

* style: show selected issues list
This commit is contained in:
Aaryan Khandelwal
2023-06-23 13:18:38 +05:30
committed by GitHub
parent 62392be5a3
commit 41b7544cfc
15 changed files with 584 additions and 880 deletions

View File

@@ -69,12 +69,8 @@ export interface IIssue {
assignees_list: string[];
attachment_count: number;
attachments: any[];
blocked_by_issue_details: any[];
blocked_issue_details: any[];
blocked_issues: BlockeIssue[];
blocked_list: string[];
blocker_issues: BlockeIssue[];
blockers: any[];
blockers_list: string[];
blocks_list: string[];
bridge_id?: string | null;
@@ -141,26 +137,14 @@ export interface ISubIssueResponse {
}
export interface BlockeIssue {
id: string;
blocked_issue_detail?: BlockeIssueDetail;
created_at: Date;
updated_at: Date;
created_by: string;
updated_by: string;
project: string;
workspace: string;
block: string;
blocked_by: string;
blocker_issue_detail?: BlockeIssueDetail;
}
export interface BlockeIssueDetail {
id: string;
name: string;
description: string;
priority: null;
start_date: null;
target_date: null;
sequence_id: number;
}
export interface IIssueComment {

View File

@@ -124,3 +124,25 @@ export interface GithubRepositoriesResponse {
repositories: IGithubRepository[];
total_count: number;
}
export type TProjectIssuesSearchParams = {
search: string;
parent?: boolean;
blocker_blocked_by?: boolean;
cycle?: boolean;
module?: boolean;
sub_issue?: boolean;
issue_id?: string;
};
export interface ISearchIssueResponse {
id: string;
name: string;
project_id: string;
project__identifier: string;
sequence_id: number;
state__color: string;
state__group: string;
state__name: string;
workspace__slug: string;
}