This commit is contained in:
2020-12-09 19:53:58 +00:00
parent 76b63913ac
commit 2450623871
2 changed files with 15 additions and 3 deletions

View File

@@ -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

View File

@@ -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;