Простановка публичных url в задачах при загрузке данных для виджетов
This commit is contained in:
parent
2aac9ae94c
commit
e0c6ac3356
3 changed files with 22 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
import { IssueUrlEnhancer } from '@app/event-emitter/issue-enhancers/issue-url-enhancer';
|
||||
import { TimePassedHighlightEnhancer } from '@app/event-emitter/issue-enhancers/time-passed-highlight-enhancer';
|
||||
import {
|
||||
IssuesService,
|
||||
|
|
@ -35,6 +36,7 @@ export class ListIssuesByUsersLikeJiraWidgetService
|
|||
constructor(
|
||||
private issuesService: IssuesService,
|
||||
private timePassedHighlightEnhancer: TimePassedHighlightEnhancer,
|
||||
private issueUrlEnhancer: IssueUrlEnhancer,
|
||||
) {
|
||||
this.issuesLoader = this.issuesService.createDynamicIssuesLoader();
|
||||
}
|
||||
|
|
@ -90,7 +92,10 @@ export class ListIssuesByUsersLikeJiraWidgetService
|
|||
const rootIssue = await this.issuesService.getIssue(issueId);
|
||||
treeStore.setRootIssue(rootIssue);
|
||||
await treeStore.fillData(this.issuesLoader);
|
||||
await treeStore.enhanceIssues([this.timePassedHighlightEnhancer]);
|
||||
await treeStore.enhanceIssues([
|
||||
this.timePassedHighlightEnhancer,
|
||||
this.issueUrlEnhancer,
|
||||
]);
|
||||
return treeStore.getFlatStore();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
import { IssueUrlEnhancer } from '@app/event-emitter/issue-enhancers/issue-url-enhancer';
|
||||
import { TimePassedHighlightEnhancer } from '@app/event-emitter/issue-enhancers/time-passed-highlight-enhancer';
|
||||
import {
|
||||
IssuesService,
|
||||
|
|
@ -47,6 +48,7 @@ export class ListIssuesByUsersWidgetService
|
|||
constructor(
|
||||
private issuesService: IssuesService,
|
||||
private timePassedHighlightEnhancer: TimePassedHighlightEnhancer,
|
||||
private issueUrlEnhancer: IssueUrlEnhancer,
|
||||
) {
|
||||
this.issuesLoader = this.issuesService.createDynamicIssuesLoader();
|
||||
}
|
||||
|
|
@ -93,7 +95,10 @@ export class ListIssuesByUsersWidgetService
|
|||
const rootIssue = await this.issuesService.getIssue(issueId);
|
||||
treeStore.setRootIssue(rootIssue);
|
||||
await treeStore.fillData(this.issuesLoader);
|
||||
await treeStore.enhanceIssues([this.timePassedHighlightEnhancer]);
|
||||
await treeStore.enhanceIssues([
|
||||
this.timePassedHighlightEnhancer,
|
||||
this.issueUrlEnhancer,
|
||||
]);
|
||||
return treeStore.getFlatStore();
|
||||
}
|
||||
|
||||
|
|
@ -106,7 +111,10 @@ export class ListIssuesByUsersWidgetService
|
|||
const issue = rawData[i];
|
||||
store.push(issue);
|
||||
}
|
||||
await store.enhanceIssues([this.timePassedHighlightEnhancer]);
|
||||
await store.enhanceIssues([
|
||||
this.timePassedHighlightEnhancer,
|
||||
this.issueUrlEnhancer,
|
||||
]);
|
||||
return store;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
import { IssueUrlEnhancer } from '@app/event-emitter/issue-enhancers/issue-url-enhancer';
|
||||
import { TimePassedHighlightEnhancer } from '@app/event-emitter/issue-enhancers/time-passed-highlight-enhancer';
|
||||
import {
|
||||
IssuesService,
|
||||
|
|
@ -44,6 +45,7 @@ export class RootIssueSubTreesWidgetService
|
|||
constructor(
|
||||
private issuesService: IssuesService,
|
||||
private timePassedHighlightEnhancer: TimePassedHighlightEnhancer,
|
||||
private issueUrlEnhancer: IssueUrlEnhancer,
|
||||
) {
|
||||
this.issuesLoader = this.issuesService.createDynamicIssuesLoader();
|
||||
}
|
||||
|
|
@ -59,7 +61,10 @@ export class RootIssueSubTreesWidgetService
|
|||
);
|
||||
treeStore.setRootIssue(rootIssue);
|
||||
await treeStore.fillData(this.issuesLoader);
|
||||
await treeStore.enhanceIssues([this.timePassedHighlightEnhancer]);
|
||||
await treeStore.enhanceIssues([
|
||||
this.timePassedHighlightEnhancer,
|
||||
this.issueUrlEnhancer,
|
||||
]);
|
||||
let stories: TreeIssuesStoreNs.Models.GetFlatStories.Result;
|
||||
if (widgetParams.parentsAsGroups) {
|
||||
stories = treeStore.getFlatStoriesByParents();
|
||||
|
|
|
|||
Loading…
Reference in a new issue