Skip to content

Commit 62cc324

Browse files
Copilotadameat
andauthored
feat: mark UI-generated queries with internal_call=true parameter (#2731)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: adameat <[email protected]> Co-authored-by: Alexey Efimov <[email protected]>
1 parent 53505ed commit 62cc324

File tree

8 files changed

+9
-0
lines changed

8 files changed

+9
-0
lines changed

src/store/reducers/cancelQuery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const cancelQueryApi = api.injectEndpoints({
2020
database,
2121
action,
2222
query_id: queryId,
23+
internal_call: true,
2324
},
2425
{signal},
2526
);

src/store/reducers/cluster/cluster.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const clusterApi = api.injectEndpoints({
9999
query: query,
100100
database: clusterRoot,
101101
action: 'execute-scan',
102+
internal_call: true,
102103
});
103104

104105
if (isQueryErrorResponse(groupsStatsResponse)) {

src/store/reducers/executeTopQueries/executeTopQueries.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export const topQueriesApi = api.injectEndpoints({
129129
query: getQueryText(timeFrame, preparedFilters, sortOrder, limit),
130130
database,
131131
action: 'execute-scan',
132+
internal_call: true,
132133
},
133134
{signal, withRetries: true},
134135
);
@@ -168,6 +169,7 @@ export const topQueriesApi = api.injectEndpoints({
168169
query: getRunningQueriesText(filters, sortOrder, limit),
169170
database,
170171
action: 'execute-scan',
172+
internal_call: true,
171173
},
172174
{signal, withRetries: true},
173175
);

src/store/reducers/shardsWorkload/shardsWorkload.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export const shardApi = api.injectEndpoints({
126126
),
127127
database,
128128
action: queryAction,
129+
internal_call: true,
129130
},
130131
{
131132
signal,

src/store/reducers/tenantOverview/executeTopTables/executeTopTables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const topTablesApi = api.injectEndpoints({
2323
query: getQueryText(),
2424
database,
2525
action: 'execute-scan',
26+
internal_call: true,
2627
},
2728
{signal, withRetries: true},
2829
);

src/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const topShardsApi = api.injectEndpoints({
2929
query: createShardQuery(path, database),
3030
database,
3131
action: queryAction,
32+
internal_call: true,
3233
},
3334
{signal, withRetries: true},
3435
);

src/store/reducers/viewSchema/viewSchema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const viewSchemaApi = api.injectEndpoints({
2424
database,
2525
action: 'execute-scan',
2626
timeout,
27+
internal_call: true,
2728
},
2829
{withRetries: true},
2930
);

src/types/api/query.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ export interface SendQueryParams<Action extends Actions> {
326326
timeout?: Timeout;
327327
query_id?: string;
328328
limit_rows?: number;
329+
internal_call?: boolean;
329330
}
330331

331332
export interface StreamQueryParams<Action extends Actions> extends SendQueryParams<Action> {

0 commit comments

Comments
 (0)