mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 14:42:13 +08:00
Search: Fix pagination in the new search page (#51366)
* Fix pagination in the new search * update betterer betterer betterer betterer betterer betterer * revert packagejson
This commit is contained in:
@ -4473,10 +4473,10 @@ exports[`no explicit any`] = {
|
|||||||
[24, 44, 3, "Unexpected any. Specify a different type.", "193409811"],
|
[24, 44, 3, "Unexpected any. Specify a different type.", "193409811"],
|
||||||
[24, 78, 3, "Unexpected any. Specify a different type.", "193409811"]
|
[24, 78, 3, "Unexpected any. Specify a different type.", "193409811"]
|
||||||
],
|
],
|
||||||
"public/app/features/search/service/bluge.ts:2088777935": [
|
"public/app/features/search/service/bluge.ts:3054830800": [
|
||||||
[38, 13, 3, "Unexpected any. Specify a different type.", "193409811"],
|
[38, 13, 3, "Unexpected any. Specify a different type.", "193409811"],
|
||||||
[85, 9, 3, "Unexpected any. Specify a different type.", "193409811"],
|
[85, 9, 3, "Unexpected any. Specify a different type.", "193409811"],
|
||||||
[134, 15, 3, "Unexpected any. Specify a different type.", "193409811"]
|
[145, 15, 3, "Unexpected any. Specify a different type.", "193409811"]
|
||||||
],
|
],
|
||||||
"public/app/features/search/service/sql.ts:1428696565": [
|
"public/app/features/search/service/sql.ts:1428696565": [
|
||||||
[91, 36, 3, "Unexpected any. Specify a different type.", "193409811"]
|
[91, 36, 3, "Unexpected any. Specify a different type.", "193409811"]
|
||||||
|
@ -131,7 +131,18 @@ async function doSearchQuery(query: SearchQuery): Promise<QueryResponse> {
|
|||||||
const frame = (
|
const frame = (
|
||||||
await lastValueFrom(
|
await lastValueFrom(
|
||||||
ds.query({
|
ds.query({
|
||||||
targets: [{ ...target, refId: 'Page', facet: undefined, from, limit: Math.max(limit, nextPageSizes) }],
|
targets: [
|
||||||
|
{
|
||||||
|
...target,
|
||||||
|
search: {
|
||||||
|
...(target?.search ?? {}),
|
||||||
|
from,
|
||||||
|
limit: Math.max(limit, nextPageSizes),
|
||||||
|
},
|
||||||
|
refId: 'Page',
|
||||||
|
facet: undefined,
|
||||||
|
},
|
||||||
|
],
|
||||||
} as any)
|
} as any)
|
||||||
)
|
)
|
||||||
).data?.[0] as DataFrame;
|
).data?.[0] as DataFrame;
|
||||||
|
Reference in New Issue
Block a user