Skip to content

Commit bf5b9b7

Browse files
committed
feat: includeInactive is configurable defaulting to true
1 parent 61e8ad2 commit bf5b9b7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 by ID, then always want to includeInactive
61-
includeInactive: true
60+
// If querying for a single API by ID, then usually want to includeInactive
61+
includeInactive: request.includeInactive !== false
6262
};
6363
}
6464
}
@@ -71,4 +71,5 @@ export interface GraphQlEntityRequest {
7171
id: string;
7272
properties: Specification[];
7373
timeRange: GraphQlTimeRange;
74+
includeInactive?: boolean;
7475
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export class InteractionsGraphQlQueryHandlerService
6868
id: request.entityId,
6969
entityType: request.entityType,
7070
properties: [],
71-
timeRange: request.timeRange
71+
timeRange: request.timeRange,
72+
includeInactive: false
7273
};
7374
}
7475

0 commit comments

Comments
 (0)