Chore include terminated (#1126)

* chore: 🤖 add include_terminated=true when filtering terminated

* chore: 🤖 add include_terminated=true when filtering terminated
This commit is contained in:
Randall Morey authored and GitHub committed 2022-06-07 15:40:33 -04:00
1 parent 24f630f084
commit dc78fe9028
2 files changed
+18 -15

No files matched your search

+7 -3
View File
@@ -48,11 +48,15 @@ export default class ScopesScopeSessionsRoute extends Route {
*/
async model() {
const { id: scope_id } = this.modelFor('scopes.scope');
const { status } = this;
const filters = { status: this.status };
const options = {
scope_id,
include_terminated: filters.status?.includes('terminated'),
};
const sessions = await this.resourceFilterStore.queryBy(
'session',
{ status },
{ scope_id }
filters,
options
);
const sessionAggregates = await all(