Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few more store -> core dependency fixes #4383

Merged
merged 13 commits into from
Jun 23, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { ApplicationService } from '../../../../../cloud-foundry/src/features/ap
import { ITableColumn } from '../../../../../core/src/shared/components/list/list-table/table.types';
import { IListConfig, ListConfig, ListViewTypes } from '../../../../../core/src/shared/components/list/list.component.types';
import { MetricsRangeSelectorService } from '../../../../../core/src/shared/services/metrics-range-selector.service';
import { ITimeRange, MetricQueryType } from '../../../../../core/src/shared/services/metrics-range-selector.types';
import { ITimeRange } from '../../../../../core/src/shared/services/metrics-range-selector.types';
import { APIResource } from '../../../../../store/src/types/api.types';
import { MetricQueryType } from '../../../../../store/src/types/metric.types';
import { AppAutoscalerEvent } from '../../../store/app-autoscaler.types';
import { CfAppAutoscalerEventsDataSource } from './cf-app-autoscaler-events-data-source';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import {
import { ITableColumn } from '../../../../../core/src/shared/components/list/list-table/table.types';
import { ListViewTypes } from '../../../../../core/src/shared/components/list/list.component.types';
import { MetricsRangeSelectorService } from '../../../../../core/src/shared/services/metrics-range-selector.service';
import { ITimeRange, MetricQueryType } from '../../../../../core/src/shared/services/metrics-range-selector.types';
import { ITimeRange } from '../../../../../core/src/shared/services/metrics-range-selector.types';
import { ListView } from '../../../../../store/src/actions/list.actions';
import { APIResource } from '../../../../../store/src/types/api.types';
import { MetricQueryType } from '../../../../../store/src/types/metric.types';
import { AutoscalerConstants } from '../../../core/autoscaler-helpers/autoscaler-util';
import { AppScalingTrigger } from '../../../store/app-autoscaler.types';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { catchError, mergeMap, withLatestFrom } from 'rxjs/operators';

import { PaginationResponse } from '../../../cloud-foundry/src/store/types/cf-api.types';
import { environment } from '../../../core/src/environments/environment';
import { isHttpErrorResponse } from '../../../core/src/jetstream.helpers';
import { AppState } from '../../../store/src/app-state';
import { entityCatalog } from '../../../store/src/entity-catalog/entity-catalog';
import { isHttpErrorResponse } from '../../../store/src/jetstream';
import { ApiRequestTypes } from '../../../store/src/reducers/api-request-reducer/request-helpers';
import {
resultPerPageParam,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MetricQueryType } from '../../../core/src/shared/services/metrics-range-selector.types';
import { MetricQueryConfig, MetricsAction, MetricsChartAction } from '../../../store/src/actions/metrics.actions';
import { MetricQueryType } from '../../../store/src/types/metric.types';
import { PaginatedAction } from '../../../store/src/types/pagination.types';
import { CF_ENDPOINT_TYPE } from '../cf-types';

Expand Down
3 changes: 2 additions & 1 deletion src/frontend/packages/cloud-foundry/src/cf-error-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { JetStreamErrorResponse, jetStreamErrorResponseToSafeString } from '../../core/src/jetstream.helpers';
import { jetStreamErrorResponseToSafeString } from '../../core/src/jetstream.helpers';
import { JetStreamErrorResponse } from '../../store/src/jetstream';

export interface CfErrorObject {
code: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import { Component, Input, OnInit } from '@angular/core';
import { MetricsConfig } from '../../../../../../core/src/shared/components/metrics-chart/metrics-chart.component';
import { MetricsLineChartConfig } from '../../../../../../core/src/shared/components/metrics-chart/metrics-chart.types';
import { MetricsChartHelpers } from '../../../../../../core/src/shared/components/metrics-chart/metrics.component.helpers';
import { MetricQueryType } from '../../../../../../core/src/shared/services/metrics-range-selector.types';
import { MetricQueryConfig } from '../../../../../../store/src/actions/metrics.actions';
import { IMetricMatrixResult } from '../../../../../../store/src/types/base-metric.types';
import { IMetricApplication } from '../../../../../../store/src/types/metric.types';
import { IMetricApplication, MetricQueryType } from '../../../../../../store/src/types/metric.types';
import { FetchApplicationMetricsAction } from '../../../../actions/cf-metrics.actions';

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import { CFAppState } from '../../../../../../../../cloud-foundry/src/cf-app-sta
import {
CurrentUserPermissionsService,
} from '../../../../../../../../core/src/core/permissions/current-user-permissions.service';
import { getFullEndpointApiUrl } from '../../../../../../../../core/src/features/endpoints/endpoint-helpers';
import { ConfirmationDialogConfig } from '../../../../../../../../core/src/shared/components/confirmation-dialog.config';
import { ConfirmationDialogService } from '../../../../../../../../core/src/shared/components/confirmation-dialog.service';
import { ENTITY_SERVICE } from '../../../../../../../../core/src/shared/entity.tokens';
import { ResetPagination } from '../../../../../../../../store/src/actions/pagination.actions';
import { getFullEndpointApiUrl } from '../../../../../../../../store/src/endpoint-utils';
import { EntityService } from '../../../../../../../../store/src/entity-service';
import { ActionState } from '../../../../../../../../store/src/reducers/api-request-reducer/types';
import { APIResource, EntityInfo } from '../../../../../../../../store/src/types/api.types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { Component, OnInit } from '@angular/core';
import { BehaviorSubject, combineLatest, Observable } from 'rxjs';
import { filter, first, map } from 'rxjs/operators';

import { EntityService } from '../../../../../store/src/entity-service';
import { EntityServiceFactory } from '../../../../../store/src/entity-service-factory.service';
import { getFullEndpointApiUrl } from '../../../../../core/src/features/endpoints/endpoint-helpers';
import { IHeaderBreadcrumb } from '../../../../../core/src/shared/components/page-header/page-header.types';
import { GetAllEndpoints } from '../../../../../store/src/actions/endpoint.actions';
import { getFullEndpointApiUrl } from '../../../../../store/src/endpoint-utils';
import { EntityService } from '../../../../../store/src/entity-service';
import { EntityServiceFactory } from '../../../../../store/src/entity-service-factory.service';
import { EndpointModel } from '../../../../../store/src/types/endpoint.types';
import { CFAppCLIInfoContext } from '../../../shared/components/cli-info/cli-info.component';
import { ApplicationService } from '../application.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { Observable, of } from 'rxjs';
import { filter, first, map, publishReplay, refCount, switchMap } from 'rxjs/operators';

import { endpointHasMetricsByAvailable } from '../../../../core/src/features/endpoints/endpoint-helpers';
import { MetricQueryType } from '../../../../core/src/shared/services/metrics-range-selector.types';
import { MetricQueryConfig } from '../../../../store/src/actions/metrics.actions';
import { AppState } from '../../../../store/src/app-state';
import { PaginationMonitorFactory } from '../../../../store/src/monitors/pagination-monitor.factory';
import { getPaginationObservables } from '../../../../store/src/reducers/pagination-reducer/pagination-reducer.helper';
import { IMetrics } from '../../../../store/src/types/base-metric.types';
import { MetricQueryType } from '../../../../store/src/types/metric.types';
import { FetchCFCellMetricsPaginatedAction } from '../../actions/cf-metrics.actions';
import { CFEntityConfig } from '../../cf-types';
import { CellMetrics } from './tabs/cloud-foundry-cells/cloud-foundry-cell/cloud-foundry-cell.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { first, map } from 'rxjs/operators';

import { CFAppState } from '../../../../../cloud-foundry/src/cf-app-state';
import { CFAppCLIInfoContext } from '../../../../../cloud-foundry/src/shared/components/cli-info/cli-info.component';
import { getFullEndpointApiUrl } from '../../../../../core/src/features/endpoints/endpoint-helpers';
import { IHeaderBreadcrumb } from '../../../../../core/src/shared/components/page-header/page-header.types';
import { RouterNav } from '../../../../../store/src/actions/router.actions';
import { getFullEndpointApiUrl } from '../../../../../store/src/endpoint-utils';
import { APIResource, EntityInfo } from '../../../../../store/src/types/api.types';
import { EndpointModel } from '../../../../../store/src/types/endpoint.types';
import { getPreviousRoutingState } from '../../../../../store/src/types/routing.type';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { filter, first, map, switchMap } from 'rxjs/operators';

import { truthyIncludingZero } from '../../../../../core/src/core/utils.service';
import { determineCardStatus } from '../../../../../core/src/shared/components/cards/card-status/card-status.component';
import { StratosStatus } from '../../../../../core/src/shared/shared.types';
import { EntityMonitorFactory } from '../../../../../store/src/monitors/entity-monitor.factory.service';
import { APIResource } from '../../../../../store/src/types/api.types';
import { StratosStatus } from '../../../../../store/src/types/shared.types';
import { IApp, IOrganization, ISpace } from '../../../cf-api.types';
import { CFEntityConfig } from '../../../cf-types';
import { CloudFoundryEndpointService } from './cloud-foundry-endpoint.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Observable } from 'rxjs';

import { organizationEntityType } from '../../../../../cloud-foundry/src/cf-entity-types';
import { StratosStatus } from '../../../../../core/src/shared/shared.types';
import { EntityMonitorFactory } from '../../../../../store/src/monitors/entity-monitor.factory.service';
import { APIResource } from '../../../../../store/src/types/api.types';
import { StratosStatus } from '../../../../../store/src/types/shared.types';
import { IApp, IOrganization } from '../../../cf-api.types';
import { getEntityFlattenedList, getStartedAppInstanceCount } from '../../../cf.helpers';
import { CloudFoundryEndpointService } from './cloud-foundry-endpoint.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Observable } from 'rxjs';

import { spaceEntityType } from '../../../../../cloud-foundry/src/cf-entity-types';
import { StratosStatus } from '../../../../../core/src/shared/shared.types';
import { EntityMonitorFactory } from '../../../../../store/src/monitors/entity-monitor.factory.service';
import { APIResource } from '../../../../../store/src/types/api.types';
import { StratosStatus } from '../../../../../store/src/types/shared.types';
import { IApp, ISpace } from '../../../cf-api.types';
import { getStartedAppInstanceCount } from '../../../cf.helpers';
import { CloudFoundryEndpointService } from './cloud-foundry-endpoint.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { MetricsConfig } from '../../../../../../../../core/src/shared/component
import {
MetricsLineChartConfig,
} from '../../../../../../../../core/src/shared/components/metrics-chart/metrics-chart.types';
import { MetricQueryType } from '../../../../../../../../core/src/shared/services/metrics-range-selector.types';
import { IMetricMatrixResult } from '../../../../../../../../store/src/types/base-metric.types';
import { IMetricCell } from '../../../../../../../../store/src/types/metric.types';
import { IMetricCell, MetricQueryType } from '../../../../../../../../store/src/types/metric.types';
import { CloudFoundryCellService } from '../cloud-foundry-cell.service';

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
import {
MetricsChartHelpers,
} from '../../../../../../../../core/src/shared/components/metrics-chart/metrics.component.helpers';
import { MetricQueryType } from '../../../../../../../../core/src/shared/services/metrics-range-selector.types';
import { MetricQueryConfig } from '../../../../../../../../store/src/actions/metrics.actions';
import { MetricQueryType } from '../../../../../../../../store/src/types/metric.types';
import { generateCfBaseTestModules } from '../../../../../../../test-framework/cloud-foundry-endpoint-service.helper';
import { FetchCFCellMetricsAction } from '../../../../../../actions/cf-metrics.actions';
import { ActiveRouteCfCell } from '../../../../cf-page.types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';

import { ListConfig } from '../../../../../../../../core/src/shared/components/list/list.component.types';
import { StratosStatus } from '../../../../../../../../core/src/shared/shared.types';
import { StratosStatus } from '../../../../../../../../store/src/types/shared.types';
import {
CfCellHealthListConfigService,
} from '../../../../../../shared/components/list/list-types/cf-cell-health/cf-cell-health-list-config.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ import { MetricsLineChartConfig } from '../../../../../../../core/src/shared/com
import {
MetricsChartHelpers,
} from '../../../../../../../core/src/shared/components/metrics-chart/metrics.component.helpers';
import { MetricQueryType } from '../../../../../../../core/src/shared/services/metrics-range-selector.types';
import { MetricQueryConfig } from '../../../../../../../store/src/actions/metrics.actions';
import { AppState } from '../../../../../../../store/src/app-state';
import { EntityServiceFactory } from '../../../../../../../store/src/entity-service-factory.service';
import { PaginationMonitorFactory } from '../../../../../../../store/src/monitors/pagination-monitor.factory';
import { IMetricMatrixResult, IMetrics, IMetricVectorResult } from '../../../../../../../store/src/types/base-metric.types';
import { IMetricCell } from '../../../../../../../store/src/types/metric.types';
import { IMetricCell, MetricQueryType } from '../../../../../../../store/src/types/metric.types';
import { FetchCFCellMetricsAction } from '../../../../../actions/cf-metrics.actions';
import { CfCellHelper } from '../../../cf-cell.helpers';
import { ActiveRouteCfCell } from '../../../cf-page.types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { combineLatest, filter, first, map, share, switchMap } from 'rxjs/operat

import { createEntityRelationPaginationKey } from '../../../../cloud-foundry/src/entity-relations/entity-relations.types';
import { getIdFromRoute, safeStringToObj } from '../../../../core/src/core/utils.service';
import { StratosStatus } from '../../../../core/src/shared/shared.types';
import { EntityService } from '../../../../store/src/entity-service';
import { PaginationMonitorFactory } from '../../../../store/src/monitors/pagination-monitor.factory';
import { APIResource } from '../../../../store/src/types/api.types';
import { StratosStatus } from '../../../../store/src/types/shared.types';
import {
IService,
IServiceBroker,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ import {
} from '../../../../../../cloud-foundry/src/store/selectors/create-service-instance.selectors';
import { safeUnsubscribe } from '../../../../../../core/src/core/utils.service';
import { StepOnNextResult } from '../../../../../../core/src/shared/components/stepper/step/step.component';
import { StratosStatus } from '../../../../../../core/src/shared/shared.types';
import { APIResource } from '../../../../../../store/src/types/api.types';
import { StratosStatus } from '../../../../../../store/src/types/shared.types';
import { IServicePlan } from '../../../../cf-api-svc.types';
import { CreateServiceInstanceHelperServiceFactory } from '../create-service-instance-helper-service-factory.service';
import { CreateServiceInstanceHelper } from '../create-service-instance-helper.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ApplicationService } from '../../../../../../cloud-foundry/src/features
import { CurrentUserPermissionsService } from '../../../../../../core/src/core/permissions/current-user-permissions.service';
import { ConfirmationDialogConfig } from '../../../../../../core/src/shared/components/confirmation-dialog.config';
import { ConfirmationDialogService } from '../../../../../../core/src/shared/components/confirmation-dialog.service';
import { StratosStatus } from '../../../../../../core/src/shared/shared.types';
import { StratosStatus } from '../../../../../../store/src/types/shared.types';
import { CfCurrentUserPermissions } from '../../../../user-permissions/cf-user-permissions-checkers';

const appInstanceScaleToZeroConfirmation = new ConfirmationDialogConfig('Set Instance count to 0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';

import { ApplicationService } from '../../../../../../cloud-foundry/src/features/applications/application.service';
import { StratosStatus } from '../../../../../../core/src/shared/shared.types';
import { StratosStatus } from '../../../../../../store/src/types/shared.types';

@Component({
selector: 'app-card-app-status',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '../../../../../../cloud-foundry/src/features/applications/application-monitor.service';
import { ApplicationService } from '../../../../../../cloud-foundry/src/features/applications/application.service';
import { pathGet } from '../../../../../../core/src/core/utils.service';
import { StratosStatus } from '../../../../../../core/src/shared/shared.types';
import { StratosStatus } from '../../../../../../store/src/types/shared.types';

@Component({
selector: 'app-card-app-usage',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CFAppState } from '../../../../../../../cloud-foundry/src/cf-app-state'
import { ApplicationService } from '../../../../../../../cloud-foundry/src/features/applications/application.service';
import { ActiveRouteCfOrgSpace } from '../../../../../../../cloud-foundry/src/features/cloud-foundry/cf-page.types';
import { BREADCRUMB_URL_PARAM } from '../../../../../../../core/src/shared/components/breadcrumbs/breadcrumbs.types';
import { StratosStatus } from '../../../../../../../core/src/shared/shared.types';
import { StratosStatus } from '../../../../../../../store/src/types/shared.types';
import { ApplicationStateData, ApplicationStateService } from '../../../../services/application-state.service';


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ import {
IListConfig,
ListViewTypes,
} from '../../../../../../../core/src/shared/components/list/list.component.types';
import { MetricQueryType } from '../../../../../../../core/src/shared/services/metrics-range-selector.types';
import { MetricQueryConfig } from '../../../../../../../store/src/actions/metrics.actions';
import { EntityServiceFactory } from '../../../../../../../store/src/entity-service-factory.service';
import { PaginationMonitorFactory } from '../../../../../../../store/src/monitors/pagination-monitor.factory';
import { IMetricMatrixResult, IMetrics } from '../../../../../../../store/src/types/base-metric.types';
import { IMetricApplication } from '../../../../../../../store/src/types/metric.types';
import { IMetricApplication, MetricQueryType } from '../../../../../../../store/src/types/metric.types';
import { ApplicationService } from '../../../../../features/applications/application.service';
import { CfCellHelper } from '../../../../../features/cloud-foundry/cf-cell.helpers';
import { CfCurrentUserPermissions } from '../../../../../user-permissions/cf-user-permissions-checkers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
MetaCardMenuItem,
} from '../../../../../../../../core/src/shared/components/list/list-cards/meta-card/meta-card-base/meta-card.component';
import { CardCell, IListRowCell } from '../../../../../../../../core/src/shared/components/list/list.types';
import { ComponentEntityMonitorConfig } from '../../../../../../../../core/src/shared/shared.types';
import { APIResource, EntityInfo } from '../../../../../../../../store/src/types/api.types';
import { ComponentEntityMonitorConfig } from '../../../../../../../../store/src/types/shared.types';
import {
IService,
IServiceBinding,
Expand Down
Loading