chore: replaced v3 issues endpoints (#2945)
* chore: removed v3 endpoints * chore: replace v3 issues to normal issues endpoints * build-error: Bulid error is new issue structure --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
This commit is contained in:
parent
b2a948dcae
commit
804313413b
29 changed files with 47 additions and 552 deletions
|
|
@ -159,7 +159,7 @@ export class GlobalIssuesStore extends IssueBaseStore implements IGlobalIssuesSt
|
|||
else if (this.currentUserIssueTab === "subscribed")
|
||||
params = params ? { ...params, subscriber: userId } : { subscriber: userId };
|
||||
|
||||
const response = await this.userService.getV3UserProfileIssues(workspaceSlug, userId, params);
|
||||
const response = await this.userService.getUserProfileIssues(workspaceSlug, userId, params);
|
||||
|
||||
if (!this.currentUserIssueTab) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ export class ProfileIssuesStore extends IssueBaseStore implements IProfileIssues
|
|||
else if (this.currentUserIssueTab === "subscribed")
|
||||
params = params ? { ...params, subscriber: userId } : { subscriber: userId };
|
||||
|
||||
const response = await this.userService.getV3UserProfileIssues(workspaceSlug, userId, params);
|
||||
const response = await this.userService.getUserProfileIssues(workspaceSlug, userId, params);
|
||||
|
||||
if (!this.currentUserIssueTab) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ export class ProjectArchivedIssuesStore extends IssueBaseStore implements IProje
|
|||
this.loader = loadType;
|
||||
|
||||
const params = this.rootStore?.projectArchivedIssuesFilter?.appliedFilters;
|
||||
const response = await this.archivedIssueService.getV3ArchivedIssues(workspaceSlug, projectId, params);
|
||||
const response = await this.archivedIssueService.getArchivedIssues(workspaceSlug, projectId, params);
|
||||
|
||||
const _issues = { ...this.issues, [projectId]: { ...response } };
|
||||
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ export class CycleIssuesStore extends IssueBaseStore implements ICycleIssuesStor
|
|||
this.currentProjectId = projectId;
|
||||
|
||||
const params = this.rootStore?.cycleIssuesFilter?.appliedFilters;
|
||||
const response = await this.cycleService.getV3CycleIssues(workspaceSlug, projectId, cycleId, params);
|
||||
const response = await this.cycleService.getCycleIssuesWithParams(workspaceSlug, projectId, cycleId, params);
|
||||
|
||||
const _issues = { ...this.issues, [cycleId]: { ...response } };
|
||||
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ export class ProjectDraftIssuesStore extends IssueBaseStore implements IProjectD
|
|||
this.loader = loadType;
|
||||
|
||||
const params = this.rootStore?.projectDraftIssuesFilter?.appliedFilters;
|
||||
const response = await this.issueDraftService.getV3DraftIssues(workspaceSlug, projectId, params);
|
||||
const response = await this.issueDraftService.getDraftIssues(workspaceSlug, projectId, params);
|
||||
|
||||
const _issues = { ...this.issues, [projectId]: { ...response } };
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ export class ModuleIssuesStore extends IssueBaseStore implements IModuleIssuesSt
|
|||
this.loader = loadType;
|
||||
|
||||
const params = this.rootStore?.moduleIssuesFilter?.appliedFilters;
|
||||
const response = await this.moduleService.getV3ModuleIssues(workspaceSlug, projectId, moduleId, params);
|
||||
const response = await this.moduleService.getModuleIssues(workspaceSlug, projectId, moduleId, params);
|
||||
|
||||
const _issues = { ...this.issues, [moduleId]: { ...response } };
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ export class ViewIssuesStore extends IssueBaseStore implements IViewIssuesStore
|
|||
this.loader = loadType;
|
||||
|
||||
const params = this.rootStore?.viewIssuesFilter?.appliedFilters;
|
||||
const response = await this.issueService.getV3Issues(workspaceSlug, projectId, params);
|
||||
const response = await this.issueService.getIssues(workspaceSlug, projectId, params);
|
||||
|
||||
const _issues = { ...this.issues, [projectId]: { ...response } };
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ export class ProjectIssuesStore extends IssueBaseStore implements IProjectIssues
|
|||
this.loader = loadType;
|
||||
|
||||
const params = this.rootStore?.projectIssuesFilter?.appliedFilters;
|
||||
const response = await this.issueService.getV3Issues(workspaceSlug, projectId, params);
|
||||
const response = await this.issueService.getIssues(workspaceSlug, projectId, params);
|
||||
|
||||
const _issues = { ...this.issues, [projectId]: { ...response } };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue