From 115ba5b6500d66e26e7a4991a9821170d3284d27 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 16 Apr 2021 00:26:45 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 11 +++++------ ayanova/src/views/svc-workorder.vue | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d0ffa921..8642fce1 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -225,21 +225,19 @@ todo: many biz objects are not using new PUT methodology -CURRENTLY DOING: error and ordering stuff +CURRENTLY DOING: implement actual delete of soft delete, if it works then port up to woitem and then strip out the old delete graph stuff OVERALL ORDERING AND ERRORS - DELETE ISSUE: because it's removing the row on delete but not deleting until save, any errors can't be displayed correctly TODO: move to a "soft delete" get rid of the deleted items separate array - - on delete flag an item as "deleted=true" - - modify the Items method that provides the array to the table so hide "deleted=true" items - or....maybe show them as read only grayed out?? - if this, then delete would be wrong term, should be "mark for delete" + - on save iterate the graph looking for deleted=true and attempt delete - on fail of delete set deleted=true to false so it will show but make sure to do it *IN* the delete method so it's ready for later to show the error - + - Clean up save error handling code and remove comments + - clean up delete code in schedusers if not already - test partial save (### and delete ###) with fail at each level (make up a fail if have to at server) - Error messages should display correctly both in alert box and in each item's controls - Test out role rights, login as various roles and ensure it works as expected @@ -251,6 +249,7 @@ OVERALL - ## Try to find every thing that will matter when more collections are added now, ensure a full flow from start to stop and everything in between to try to catch any gotchas now before get too deep into it ## + todo: WorkOrderItemTask?? is this really a collection like scheduled users or labors now?? Does it show on a main table in it's own form?? diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 9f23f748..1da20276 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -487,7 +487,7 @@ export default { //handle errors if (err.error) { //# FAIL ROUTE - console.log("RAW ERROR OBJECT: ", err); + // console.log("RAW ERROR OBJECT: ", err); //REHYDRATE ERRORS //convert to form() error handling understood format let compiledError = { @@ -521,7 +521,7 @@ export default { target: `Items[${z.woItemIndex}].scheduledUsers[${z.objectIndex}].${z.e.details[0].target}` }) ); - console.log("Compiled error ", compiledError); + //console.log("Compiled error ", compiledError); vm.formState.serverError = compiledError; window.$gz.form.setErrorBoxErrors(vm);