Skip to content

Commit 61e8ad2

Browse files
committed
feat: request includeInactive for all entity id queries
1 parent 90d31a5 commit 61e8ad2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/observability/src/shared/graphql/request/handlers/entities/query/entity/entity-graphql-query-handler.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from '@hypertrace/graphql-client';
99
import { Observable } from 'rxjs';
1010
import { map, throwIfEmpty } from 'rxjs/operators';
11-
import { Entity, EntityType, ObservabilityEntityType } from '../../../../../model/schema/entity';
11+
import { Entity, EntityType } from '../../../../../model/schema/entity';
1212
import { GraphQlEntityFilter } from '../../../../../model/schema/filter/entity/graphql-entity-filter';
1313
import { EntitiesGraphqlQueryBuilderService } from '../entities-graphql-query-builder.service';
1414
import {
@@ -57,8 +57,8 @@ export class EntityGraphQlQueryHandlerService implements GraphQlQueryHandler<Gra
5757
timeRange: request.timeRange,
5858
properties: request.properties,
5959
filters: [new GraphQlEntityFilter(request.id, request.entityType)],
60-
// If querying for a single API, then always want to includeInactive
61-
includeInactive: request.entityType === ObservabilityEntityType.Api
60+
// If querying for a single API by ID, then always want to includeInactive
61+
includeInactive: true
6262
};
6363
}
6464
}

0 commit comments

Comments
 (0)