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

Function createQuerySession

apps/zui/src/js/state/Tabs/flows.ts:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26export const createQuerySession =
27 (): Thunk<string> =>
28 (dispatch, getState, {api}) => {
29 const session = QuerySession.create()
30 const sessionId = session.id
31 const version = "0"
32 api.queries.createEditorSnapshot(sessionId, {version, value: "", pins: []})
33 const url = queryPath(sessionId, version)
34
35 return dispatch(create(url, sessionId))
36 }
37
38export const previewUrl =
39 (url: string): Thunk =>

Callers

nothing calls this directly

Calls 4

queryPathFunction · 0.90
createFunction · 0.85
createEditorSnapshotMethod · 0.80
createMethod · 0.65

Tested by

no test coverage detected