This commit is contained in:
@@ -46,6 +46,11 @@ namespace AyaNova.PlugIn.V8
|
|||||||
edCurrent.Text = txt;
|
edCurrent.Text = txt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string AllText
|
||||||
|
{
|
||||||
|
get { return edOut.Text; }
|
||||||
|
}
|
||||||
|
|
||||||
public string LastOp
|
public string LastOp
|
||||||
{
|
{
|
||||||
get { return edCurrent.Text; }
|
get { return edCurrent.Text; }
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
public string PluginVersion
|
public string PluginVersion
|
||||||
{
|
{
|
||||||
get { return "7.6.1-alpha.122.C"; }
|
get { return "7.6.1-alpha.122.D"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string About
|
public string About
|
||||||
@@ -403,9 +403,11 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Append("\n************\nExport failed with error:\n");
|
progress.Append("\n************\nExport failed with error:\n");
|
||||||
progress.Append(ex.Message);
|
progress.Append(ex.Message);
|
||||||
progress.Append("stack:\n" + ex.StackTrace);
|
progress.Append("stack:\n" + ex.StackTrace);
|
||||||
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
PostExportLogToV8(progress).Wait();
|
||||||
progress.FinishedImport();
|
progress.FinishedImport();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -468,6 +470,18 @@ namespace AyaNova.PlugIn.V8
|
|||||||
UsedUserNames.Clear();
|
UsedUserNames.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async System.Threading.Tasks.Task PostExportLogToV8(ProgressForm progress)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
await util.PostAsync("memo",
|
||||||
|
}
|
||||||
|
catch(Exception ex)
|
||||||
|
{
|
||||||
|
progress.Append("Error attempting to post migrate log to v8 superuser memo:\n" + ex.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#region Users
|
#region Users
|
||||||
|
|
||||||
private async System.Threading.Tasks.Task ExportStaffUsers(ProgressForm progress)
|
private async System.Threading.Tasks.Task ExportStaffUsers(ProgressForm progress)
|
||||||
@@ -3773,8 +3787,10 @@ namespace AyaNova.PlugIn.V8
|
|||||||
TagFromv7Guid(c.WorkorderCategoryID, tags);
|
TagFromv7Guid(c.WorkorderCategoryID, tags);
|
||||||
|
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
util.ApiResponse rMainObject = null;
|
||||||
|
rMainObject = await util.PostAsync("pm", d.ToString());
|
||||||
|
|
||||||
|
|
||||||
var rMainObject = await util.PostAsync("pm", d.ToString());
|
|
||||||
long RavenId = util.IdFromResponse(rMainObject);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
Addv7v8IdMap(c.ID, RavenId);
|
Addv7v8IdMap(c.ID, RavenId);
|
||||||
d = rMainObject.ObjectResponse["data"];
|
d = rMainObject.ObjectResponse["data"];
|
||||||
@@ -3796,6 +3812,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
//put the header object
|
//put the header object
|
||||||
await util.PutAsync("pm", d.ToString());
|
await util.PutAsync("pm", d.ToString());
|
||||||
|
|
||||||
//-----
|
//-----
|
||||||
|
|
||||||
//Event log fixup
|
//Event log fixup
|
||||||
|
|||||||
Reference in New Issue
Block a user