mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
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:
committed by
GitHub
parent
62392be5a3
commit
41b7544cfc
18
apps/app/types/issues.d.ts
vendored
18
apps/app/types/issues.d.ts
vendored
@@ -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 {
|
||||
|
||||
22
apps/app/types/projects.d.ts
vendored
22
apps/app/types/projects.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user