From 92e47dee075af2fe45e5dbd9c6ce8351197bdb37 Mon Sep 17 00:00:00 2001 From: Kristof De Langhe Date: Thu, 2 Jul 2020 12:32:21 +0200 Subject: [PATCH] 65272: AoT Build fix + LGTM fixes --- .../edit-item-template-page.component.ts | 2 +- src/app/core/data/metadata-field-data.service.spec.ts | 3 +-- src/app/core/data/metadata-field-data.service.ts | 8 ++------ 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/app/+collection-page/edit-item-template-page/edit-item-template-page.component.ts b/src/app/+collection-page/edit-item-template-page/edit-item-template-page.component.ts index d4b49ef2809..329c72d683b 100644 --- a/src/app/+collection-page/edit-item-template-page/edit-item-template-page.component.ts +++ b/src/app/+collection-page/edit-item-template-page/edit-item-template-page.component.ts @@ -22,7 +22,7 @@ export class EditItemTemplatePageComponent implements OnInit { collectionRD$: Observable>; constructor(protected route: ActivatedRoute, - protected itemTemplateService: ItemTemplateDataService) { + public itemTemplateService: ItemTemplateDataService) { } ngOnInit(): void { diff --git a/src/app/core/data/metadata-field-data.service.spec.ts b/src/app/core/data/metadata-field-data.service.spec.ts index c4ca7f7efcd..be610e3d8cd 100644 --- a/src/app/core/data/metadata-field-data.service.spec.ts +++ b/src/app/core/data/metadata-field-data.service.spec.ts @@ -4,9 +4,8 @@ import { NotificationsService } from '../../shared/notifications/notifications.s import { of as observableOf } from 'rxjs/internal/observable/of'; import { RestResponse } from '../cache/response.models'; import { HALEndpointServiceStub } from '../../shared/testing/hal-endpoint-service.stub'; -import { CreateRequest, FindListOptions, PutRequest } from './request.models'; +import { FindListOptions } from './request.models'; import { MetadataFieldDataService } from './metadata-field-data.service'; -import { MetadataField } from '../metadata/metadata-field.model'; import { MetadataSchema } from '../metadata/metadata-schema.model'; import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service'; import { createSuccessfulRemoteDataObject$ } from '../../shared/remote-data.utils'; diff --git a/src/app/core/data/metadata-field-data.service.ts b/src/app/core/data/metadata-field-data.service.ts index 8065e45a9e7..1f7a4b90893 100644 --- a/src/app/core/data/metadata-field-data.service.ts +++ b/src/app/core/data/metadata-field-data.service.ts @@ -13,15 +13,11 @@ import { NotificationsService } from '../../shared/notifications/notifications.s import { METADATA_FIELD } from '../metadata/metadata-field.resource-type'; import { MetadataField } from '../metadata/metadata-field.model'; import { MetadataSchema } from '../metadata/metadata-schema.model'; -import { FindListOptions, FindListRequest } from './request.models'; +import { FindListOptions } from './request.models'; import { FollowLinkConfig } from '../../shared/utils/follow-link-config.model'; import { Observable } from 'rxjs/internal/Observable'; -import { hasValue } from '../../shared/empty.util'; -import { find, skipWhile, switchMap, tap } from 'rxjs/operators'; -import { RemoteData } from './remote-data'; +import { tap } from 'rxjs/operators'; import { RequestParam } from '../cache/models/request-param.model'; -import { PaginatedList } from './paginated-list'; -import { getFirstSucceededRemoteDataPayload } from '../shared/operators'; /** * A service responsible for fetching/sending data from/to the REST API on the metadatafields endpoint