Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@hypertrace/graphql-client';
import { Observable } from 'rxjs';
import { map, throwIfEmpty } from 'rxjs/operators';
import { Entity, EntityType, ObservabilityEntityType } from '../../../../../model/schema/entity';
import { Entity, EntityType } from '../../../../../model/schema/entity';
import { GraphQlEntityFilter } from '../../../../../model/schema/filter/entity/graphql-entity-filter';
import { EntitiesGraphqlQueryBuilderService } from '../entities-graphql-query-builder.service';
import {
Expand Down Expand Up @@ -57,8 +57,8 @@ export class EntityGraphQlQueryHandlerService implements GraphQlQueryHandler<Gra
timeRange: request.timeRange,
properties: request.properties,
filters: [new GraphQlEntityFilter(request.id, request.entityType)],
// If querying for a single API, then always want to includeInactive
includeInactive: request.entityType === ObservabilityEntityType.Api
// If querying for a single API by ID, then usually want to includeInactive
includeInactive: request.includeInactive !== false
};
}
}
Expand All @@ -71,4 +71,5 @@ export interface GraphQlEntityRequest {
id: string;
properties: Specification[];
timeRange: GraphQlTimeRange;
includeInactive?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export class InteractionsGraphQlQueryHandlerService
id: request.entityId,
entityType: request.entityType,
properties: [],
timeRange: request.timeRange
timeRange: request.timeRange,
includeInactive: false
};
}

Expand Down