Don't request total count for automation sessions

The front-end was already ignoring that value and counting those
poses a big hit to server responsiveness.
This commit is contained in:
Tomaž Jerman
2023-06-13 13:16:06 +02:00
parent 03806a20ab
commit 3d1fa6d326
2 changed files with 13 additions and 2 deletions
+3 -2
View File
@@ -16,6 +16,7 @@ export default {
nextPage: '',
total: 0,
page: 1,
incTotal: true,
},
// Used to save query when fetching for total if we came to the page with a pageCursor in URL
@@ -124,7 +125,7 @@ export default {
encodeListParams () {
const { sortBy, sortDesc } = this.sorting
const { limit, pageCursor } = this.pagination
const { limit, pageCursor, incTotal } = this.pagination
const sort = sortBy ? `${sortBy} ${sortDesc ? 'DESC' : 'ASC'}` : undefined
@@ -133,7 +134,7 @@ export default {
sort: pageCursor ? undefined : sort,
...this.filter,
pageCursor,
incTotal: !pageCursor || this.tempQuery,
incTotal: incTotal && (!pageCursor || this.tempQuery),
}
},
@@ -155,6 +155,16 @@ export default {
sortDesc: true,
},
pagination: {
limit: 100,
pageCursor: undefined,
prevPage: '',
nextPage: '',
total: 0,
page: 1,
incTotal: false,
},
fields: [
{
key: 'sessionID',