Skip to content

Commit

Permalink
fix: Apply pre-commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik003 committed Jan 22, 2024
1 parent 9f1a7ce commit 48fad24
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,9 @@ export class PipelineRunService {
this.setPipelineRunPageStatusToLoading(page);

this.http
.get<Page<PipelineRun>>(
`${this.urlFactory(
projectSlug,
modelSlug,
pipelineID,
)}?page=${page}&size=${size}`,
)
.get<
Page<PipelineRun>
>(`${this.urlFactory(projectSlug, modelSlug, pipelineID)}?page=${page}&size=${size}`)
.subscribe((pipelineRuns) => {
const pipelineRunPages = this._pipelineRunPages.getValue();
pipelineRunPages.pages[page - 1] = pipelineRuns;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ export class GitModelService {

loadGitModels(project_slug: string, model_slug: string): void {
this.http
.get<Array<GetGitModel>>(
this.BACKEND_URL_PREFIX +
`/projects/${project_slug}/models/${model_slug}/modelsources/git`,
)
.get<
Array<GetGitModel>
>(this.BACKEND_URL_PREFIX + `/projects/${project_slug}/models/${model_slug}/modelsources/git`)
.subscribe((gitModels) => this._gitModels.next(gitModels));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ export class MoveModelComponent {
) {
this.projectService.loadProjectsForRole('manager');
this.filteredProjects$ = projectService.projects$.pipe(
map(
(projects) =>
projects?.filter((project) => project.slug !== data.projectSlug),
map((projects) =>
projects?.filter((project) => project.slug !== data.projectSlug),
),
);
}
Expand Down Expand Up @@ -85,11 +84,10 @@ export class MoveModelComponent {
return this.filteredProjects$;
}
return this.filteredProjects$.pipe(
map(
(projects) =>
projects?.filter((project) =>
project.slug.toLowerCase().includes(this.search.toLowerCase()),
),
map((projects) =>
projects?.filter((project) =>
project.slug.toLowerCase().includes(this.search.toLowerCase()),
),
),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export class ProjectAuditLogService {
this.setProjectEventPageStatusToLoading(page);

this.http
.get<Page<HistoryEvent>>(
`${environment.backend_url}/projects/${projectSlug}/events?page=${page}&size=${size}`,
)
.get<
Page<HistoryEvent>
>(`${environment.backend_url}/projects/${projectSlug}/events?page=${page}&size=${size}`)
.subscribe((projectEvents) => {
const projectHistoryEventPages =
this._projectHistoryEventPages.getValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ export class ProjectUserService {
public readonly nonAdminProjectUsers$ = this._projectUsers
.asObservable()
.pipe(
map(
(projectUsers) =>
projectUsers?.filter(
(projectUser) => projectUser.role !== 'administrator',
),
map((projectUsers) =>
projectUsers?.filter(
(projectUser) => projectUser.role !== 'administrator',
),
),
);

Expand Down
5 changes: 2 additions & 3 deletions frontend/src/app/services/settings/t4c-instance.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ export class T4CInstanceService {
public readonly t4cInstance$ = this._t4cInstance.asObservable();

public readonly unarchivedT4cInstances$ = this._t4cInstances.pipe(
map(
(t4cInstances) =>
t4cInstances?.filter((t4cInstance) => !t4cInstance.is_archived),
map((t4cInstances) =>
t4cInstances?.filter((t4cInstance) => !t4cInstance.is_archived),
),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export class CreateReadonlySessionComponent implements OnInit {

this.toolService.getVersionsForTool(tool.id).subscribe((toolVersions) => {
const toolVersionIds = this.models?.map((m) => m.version?.id);
this.toolVersions = toolVersions.filter(
(v) => toolVersionIds?.includes(v.id),
this.toolVersions = toolVersions.filter((v) =>
toolVersionIds?.includes(v.id),
);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export class T4CRepoService {

loadRepositories(instanceId: number): void {
this.http
.get<T4CServerRepository[]>(
`${this.t4cInstanceService.urlFactory(instanceId)}/repositories/`,
)
.get<
T4CServerRepository[]
>(`${this.t4cInstanceService.urlFactory(instanceId)}/repositories/`)
.subscribe({
next: (repositories) => this._repositories.next(repositories),
error: () => this._repositories.next(undefined),
Expand Down

0 comments on commit 48fad24

Please sign in to comment.