MCPcopy
hub / github.com/brimdata/zui / push

Function push

apps/zui/src/js/state/SessionHistories/flows.ts:7–14  ·  view source on GitHub ↗
(queryId: string, versionId?: string)

Source from the content-addressed store, hash-verified

5
6export const push =
7 (queryId: string, versionId?: string): Thunk =>
8 (dispatch, getState) => {
9 const sessionId = Current.getTabId(getState())
10 const savedQuery = Queries.build(getState(), queryId)
11 const version = versionId || savedQuery?.latestVersionId() || ""
12 const entry = {queryId, version}
13 dispatch(SessionHistories.pushById({sessionId, entry}))
14 }
15
16export const replace =
17 (queryId: string, versionId?: string): Thunk =>

Callers

nothing calls this directly

Calls 2

buildMethod · 0.80
latestVersionIdMethod · 0.80

Tested by

no test coverage detected