This commit is contained in:
2021-02-13 01:10:02 +00:00
parent 3a17b53ffc
commit 960bbf4de7

View File

@@ -15,10 +15,125 @@ todo: WHEN HAVE WORKORDER FORM customer popup notes need to pop pop pop, forgot
However, I also find that incredibly annoying but I guess that's the point :)
## SERVER MISC ITEMS
todo: test v8migrate on big shitty database
Joyce may have requested a copy from Scott see if it can export to my server here from her test station with latest v8 migrate
Server=localhost\SQLEXPRESS;Database=master;Trusted_Connection=True;
Exporting data to AyaNova server @ http://localhost:7575/api/v8/
Pre-release test 7.6.1-alpha.106
Compiling 16 Unit model categories
Compiling 28 Unit service types
Compiling 70 Workorder item types
Compiling 11 Regions
Compiling 7 Client groups
Compiling 18 Workorder categories
Compiling 103 Part categories
Compiling 3 Scheduleable user groups
Compiling 71 Dispatch zones
Compiling 10 User skills
Compiling 9 User certifications
Compiling 6 Client note types
Exporting customized Locales
Locale Custom English is customized [signature: 1339066135] exporting
Exporting 21 Users (step 1/2)
Exporting 193 Rates
Exporting 5 TaxCodes
Exporting 2 Contracts
Exporting 235 HeadOffices
Exporting 3671 Clients
Exporting 127 Vendors
Exporting 222 LoanItems
Exporting 2803 Parts
Exporting 29 Projects
Exporting 589 PurchaseOrders
Exporting 325 UnitModels
Exporting 9730 Units (step 1/2)
Exporting 9730 Units (step 2/2)
Exporting 21 Users (step 2/2)
Exporting all Memos
ERROR, During operation:
Memo 0872d919-0dfa-4d47-b8f6-1ff31938f860
************
Export failed with error:
POST error, route: memo
{"error":{"code":"2200","details":[{"message":"No impersonation","target":"FromId","error":"2004"}],"message":"ErrorAPI2200"}}
Bad Request
POSTED OBJECT:
{
"users": [
-7
],
"memo": {
"name": "622567 Alberta Inc.",
"notes": "Can we sen all reports to forel@shaw.ca when we get them all organized. ",
"viewed": false,
"replied": false,
"fromId": 10,
"sent": "2014-03-14T15:19:00.0000000Z",
"toId": 2,
"tags": [
"v7-import"
]
}
}
stack:
at AyaNova.PlugIn.V8.util.<PostAsync>d__1e.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\util.cs:line 173
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CallSite.Target(Closure , CallSite , Object )
at AyaNova.PlugIn.V8.V8.<ExportMemos>d__40b.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\V8.cs:line 2172
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AyaNova.PlugIn.V8.V8.<DoExport>d__0.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\V8.cs:line 343
todo: v8 migrate additions
Report sent *to* the new server upon fail or completion
stored in a location easily found like notes or attach or something on superuser account
(memo to superuser maybe??)
Duplicate id not exported
found this in the wild with 4a database 4 workorders not exported due to this
message doesn't clearly say that number was exported already
is there a way to still export them?
it really is easy to obliterate a v8 db on export
maybe a pre-setting at the server end allowing migrate to take place where all users but su are locked out and it's reset upon completion successfully?
this would also be convenient to know biz actions are for migrate and use as a signalt to bypass rules etc
however it does erase all data as a first step so... hmmm...
maybe it is what it is (tm)?
it's only to protect people from themselves.
Is it possible to login during migrate to the v8 server?
Need a running count per item, we have the total at the start so it should show what item it is currently processing of that count like 50/1000 or something
todo: This block isn't necessary anymore as there is a biz rule to catch it:
catch (Microsoft.EntityFrameworkCore.DbUpdateException ex)
{
if (ex.InnerException != null && ex.InnerException.Message.Contains("unq_unitmodelnumbervendorid"))
{
AddError(ApiErrorCode.VALIDATION_NOT_UNIQUE, "number", "Model number plus VendorId combination must be unique");
return null;
}
throw;
}
todo: 2fa is going to be an absolute must have pretty soon, look into what's involved again
todo: tag search in picklist, does it support more than one tag? I forget