Skip to content

Commit 001a516

Browse files
Removing unused action Removing View results and View results in IPSYB and related code
as a continuation of Removing View results and View results in IPSYB and discussion: #1773 and removed backend singals: 6af4e5d
1 parent 2363cd3 commit 001a516

File tree

4 files changed

+0
-39
lines changed

4 files changed

+0
-39
lines changed

mxcubeweb/routes/signals.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,6 @@ def get_task_state(entry):
234234
}
235235

236236

237-
def update_task_result(entry):
238-
node_index = mxcube.queue.node_index(entry.get_data_model())
239-
240-
msg = {
241-
"sample": node_index["sample"],
242-
"taskIndex": node_index["idx"],
243-
}
244-
245-
server.emit("update_task_lims_data", msg, namespace="/hwr")
246-
247-
248237
def queue_execution_entry_started(entry, message=None):
249238
handle_auto_mount_next(entry)
250239

ui/src/actions/queue.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,6 @@ export function addTaskResultAction(
409409
};
410410
}
411411

412-
export function updateTaskLimsData(sampleID, taskIndex) {
413-
return { type: 'UPDATE_TASK_LIMS_DATA', sampleID, taskIndex };
414-
}
415-
416412
export function deleteSamplesFromQueue(sampleIDList) {
417413
return async (dispatch) => {
418414
dispatch(queueLoading(true));

ui/src/reducers/sampleGrid.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -143,25 +143,6 @@ function sampleGridReducer(state = INITIAL_STATE, action = {}) {
143143

144144
return { ...state, sampleList };
145145
}
146-
case 'UPDATE_TASK_LIMS_DATA': {
147-
const sampleList = {
148-
...state.sampleList,
149-
[action.sampleID]: {
150-
...state.sampleList[action.sampleID],
151-
tasks: [
152-
...state.sampleList[action.sampleID].tasks.slice(
153-
0,
154-
action.taskIndex,
155-
),
156-
...state.sampleList[action.sampleID].tasks.slice(
157-
action.taskIndex + 1,
158-
),
159-
],
160-
},
161-
};
162-
163-
return { ...state, sampleList };
164-
}
165146
case 'ADD_TASKS': {
166147
const sampleList = { ...state.sampleList };
167148
action.tasks.forEach((t) => {

ui/src/serverIO.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
setSampleAttribute,
3131
setStatus,
3232
stopQueue,
33-
updateTaskLimsData,
3433
} from './actions/queue';
3534
import { collapseItem, showResumeQueueDialog } from './actions/queueGUI';
3635
import { getRaState, incChatMessageCount } from './actions/remoteAccess';
@@ -173,10 +172,6 @@ class ServerIO {
173172
dispatch(setEnergyScanResult(data.pk, data.ip, data.rm));
174173
});
175174

176-
this.hwrSocket.on('update_task_lims_data', (record) => {
177-
dispatch(updateTaskLimsData(record.sample, record.taskIndex));
178-
});
179-
180175
this.hwrSocket.on('task', (record, callback) => {
181176
if (callback) {
182177
callback();

0 commit comments

Comments
 (0)