Skip to content
Snippets Groups Projects
Commit 6b23cc51 authored by cjenkscybercom's avatar cjenkscybercom
Browse files

CE-2068: cleanup comments etc

parent c3f8c916
No related branches found
No related tags found
1 merge request!358CE-2068: replace useOperationsSearch & useOngoingCommand with common api
Pipeline #160330 passed
This commit is part of merge request !358. Comments created here will be created in the context of that merge request.
...@@ -229,30 +229,6 @@ export function unpackOngoingOperations(input) { ...@@ -229,30 +229,6 @@ export function unpackOngoingOperations(input) {
return output.totalCount > 0 ? output.operationsList[0] : null; return output.totalCount > 0 ? output.operationsList[0] : null;
} }
export function useOngoingCommand(iocId) {
const api = useContext(apiContext);
const method = useCallAndUnpack(
api.apis.Deployments.listOperations,
unpackOngoingOperations
);
const boundMethod = useCallback(
method.bind(null, { ioc_id: iocId, type: "COMMAND", status: "ONGOING" }),
[iocId]
);
return useAsync({
fcn: boundMethod,
call: false,
init: emptyOperationsListResponse
});
}
const emptyOperationsListResponse = {
totalCount: 0,
pageNumber: 0,
limit: 0,
operationsList: []
};
export function unpackOperation(operation) { export function unpackOperation(operation) {
const d = { ...operation }; const d = { ...operation };
return d; return d;
......
...@@ -49,7 +49,6 @@ export function IOCService({ ...@@ -49,7 +49,6 @@ export function IOCService({
setButtonDisabled, setButtonDisabled,
jobLazyParams jobLazyParams
}) { }) {
console.log({ currentCommand });
const [error, setError] = useState(); const [error, setError] = useState();
const navigate = useNavigate(); const navigate = useNavigate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment