diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 1265674d..ed5a5d68 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -5,6 +5,20 @@ MISC ITEMS THAT CAME UP +todo: BizObject.cs geterrorsasstring doesn't properly return a readable error message + it dumps the code entirely so you don't knwo what it's about for one thing if there is a message + also, it should not get the api error descriptin in English, but as an LT code + Test with headoffice bulk delete + +todo: Client all LT: error and message processing: + It should *replace* the LT:string with the translation but keep the entire rest of the string + so instead of how it currently splits and expects one lt in the string instead it should use a regex (I know) + and get antying that is LT:toendoftextcharacts, translate it, then replace it in the string + This should be centralized and then can be used by error processor as well as extension error processor etc + basically the error to human string code should handle all this + Test with headoffice bulk delete + + todo: Case 3595 Mass delete extension Rights!!!!! Do this early as it will be copied over and over again diff --git a/ayanova/src/components/extensions-control.vue b/ayanova/src/components/extensions-control.vue index b7b73dac..430924f3 100644 --- a/ayanova/src/components/extensions-control.vue +++ b/ayanova/src/components/extensions-control.vue @@ -88,7 +88,7 @@ export default { vm.errorObj = []; return; } - console.log("Fetching for job", jobId); + let res = await window.$gz.api.get(`job-operations/logs/${jobId}`); //{"data":[{"created":"2020-12-09T19:20:41.915635Z","statusText":"Processing job \"Bulk operation: DELETE on HeadOffice (2 specified) - BulkCoreBizObjectOperation:Delete\"","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"},{"created":"2020-12-09T19:20:41.922711Z","statusText":"Bulk job Delete started...","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"},{"created":"2020-12-09T19:20:41.938821Z","statusText":"Error processing item 11: Validation errors:\r\nTarget: errorbox error: LT:Customer\r\n","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"},{"created":"2020-12-09T19:20:41.951148Z","statusText":"Error processing item 2: Validation errors:\r\nTarget: errorbox error: LT:Customer\r\n","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"},{"created":"2020-12-09T19:20:41.954891Z","statusText":"Bulk job Delete processed 2 of 2 with 2 failures","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"}]} //NOPE----------- @@ -114,8 +114,6 @@ export default { } else { vm.errorObj = []; } - - console.log("Errorobj is now:", vm.errorObj); }, open(dls) { this.dataListSelection = dls;