MCPcopy Index your code
hub / github.com/bugy/script-server / init

Function init

web-src/src/common/store/executions-module.js:14–25  ·  view source on GitHub ↗
({commit})

Source from the content-addressed store, hash-verified

12 namespaced: true,
13 actions: {
14 init({commit}) {
15 commit('SET_LOADING', true);
16 commit('SET_EXECUTION_DETAILS', {execution: null, id: null});
17
18 axiosInstance.get('history/execution_log/short').then(({data}) => {
19 sortExecutionLogs(data);
20
21 let executions = data.map(log => translateExecutionLog(log));
22 commit('SET_EXECUTIONS', executions);
23 commit('SET_LOADING', false);
24 });
25 },
26
27 selectExecution({commit, state}, executionId) {
28 if (isEmptyString(executionId)) {

Callers

nothing calls this directly

Calls 4

sortExecutionLogsFunction · 0.85
translateExecutionLogFunction · 0.85
mapMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected