This commit is contained in:
@@ -1437,7 +1437,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op(ObjectTypeName + " " + d.name);
|
progress.Op(ObjectTypeName + " " + d.name);
|
||||||
d.active = c.Active;
|
d.active = c.Active;
|
||||||
d.notes = c.Notes;
|
d.notes = c.Notes;
|
||||||
d.dateStarted = util.DateToV8(c.DateStarted,true);
|
d.dateStarted = util.DateToV8(c.DateStarted, true);
|
||||||
d.dateCompleted = util.DateToV8(c.DateCompleted, false);
|
d.dateCompleted = util.DateToV8(c.DateCompleted, false);
|
||||||
d.accountNumber = c.AccountNumber;
|
d.accountNumber = c.AccountNumber;
|
||||||
d.projectOverseerId = SafeGetUserMap(c.ProjectOverseerID);
|
d.projectOverseerId = SafeGetUserMap(c.ProjectOverseerID);
|
||||||
@@ -1851,10 +1851,10 @@ namespace AyaNova.PlugIn.V8
|
|||||||
dmemo.notes = mem.Message;
|
dmemo.notes = mem.Message;
|
||||||
dmemo.viewed = mem.Viewed;
|
dmemo.viewed = mem.Viewed;
|
||||||
dmemo.replied = mem.Replied;
|
dmemo.replied = mem.Replied;
|
||||||
var RavenFromId=SafeGetUserMap(mem.FromID);
|
var RavenFromId = SafeGetUserMap(mem.FromID);
|
||||||
dmemo.fromId = RavenFromId;
|
dmemo.fromId = RavenFromId;
|
||||||
dmemo.sent = util.DateToV8(mem.Created, true);
|
dmemo.sent = util.DateToV8(mem.Created, true);
|
||||||
dmemo.toId=SafeGetUserMap(mem.ToID);
|
dmemo.toId = SafeGetUserMap(mem.ToID);
|
||||||
SetTags(dmemo, tags);
|
SetTags(dmemo, tags);
|
||||||
duserid.Add(-7);//special code to server to treat as an import single
|
duserid.Add(-7);//special code to server to treat as an import single
|
||||||
d.users = duserid;
|
d.users = duserid;
|
||||||
@@ -2182,22 +2182,24 @@ namespace AyaNova.PlugIn.V8
|
|||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
|
|
||||||
//It's a Review / followup tied to another object that should have already been migrated
|
//It's a Review / followup tied to another object that should have already been migrated
|
||||||
if (!Map.ContainsKey(c.FollowID)) {
|
if (!Map.ContainsKey(c.FollowID))
|
||||||
progress.Append("FollowUp target missing; skipping export: ID " +c.ID.ToString() + ",targetid "+c.FollowID.ToString() + ",type " + c.FollowType.ToString());
|
{
|
||||||
|
progress.Append("FollowUp target missing; skipping export: ID " + c.ID.ToString() + ",targetid " + c.FollowID.ToString() + ",type " + c.FollowType.ToString());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//export
|
//export
|
||||||
//FollowUps only ever apply to a single user in v7 so no need to split them out here it's just for one user
|
//FollowUps only ever apply to a single user in v7 so no need to split them out here it's just for one user
|
||||||
|
|
||||||
if (!Map.ContainsKey(c.SourceID)) {
|
if (!Map.ContainsKey(c.SourceID))
|
||||||
|
{
|
||||||
progress.Append("FollowUp User missing; skipping export: UserID " + c.SourceID.ToString());
|
progress.Append("FollowUp User missing; skipping export: UserID " + c.SourceID.ToString());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//ensure has dates
|
//ensure has dates
|
||||||
string sStartDate=util.DateToV8(c.StartDate);
|
string sStartDate = util.DateToV8(c.StartDate);
|
||||||
string sStopDate=util.DateToV8(c.StopDate);
|
string sStopDate = util.DateToV8(c.StopDate);
|
||||||
if (sStartDate == string.Empty || sStopDate == string.Empty)
|
if (sStartDate == string.Empty || sStopDate == string.Empty)
|
||||||
{
|
{
|
||||||
progress.Append("FollowUp start or stop date missing; skipping export: ID " + c.ID.ToString() + ",targetid " + c.FollowID.ToString() + ",type " + c.FollowType.ToString());
|
progress.Append("FollowUp start or stop date missing; skipping export: ID " + c.ID.ToString() + ",targetid " + c.FollowID.ToString() + ",type " + c.FollowType.ToString());
|
||||||
@@ -2222,7 +2224,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
}
|
}
|
||||||
|
|
||||||
//completed is deprecated in v8 so to preserve that info tag the completed ones only
|
//completed is deprecated in v8 so to preserve that info tag the completed ones only
|
||||||
if(c.Completed)
|
if (c.Completed)
|
||||||
tags.Add("completed.review");
|
tags.Add("completed.review");
|
||||||
|
|
||||||
d.name = c.Name;
|
d.name = c.Name;
|
||||||
@@ -2276,7 +2278,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op("ScheduleMarker " + c.ID.ToString());
|
progress.Op("ScheduleMarker " + c.ID.ToString());
|
||||||
var rMainObject = await util.PostAsync("reminder", d.ToString());
|
var rMainObject = await util.PostAsync("reminder", d.ToString());
|
||||||
long RavenId = util.IdFromResponse(rMainObject);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
AddMap(c.ID, RavenId);
|
if (!Map.ContainsKey(c.ID))
|
||||||
|
AddMap(c.ID, RavenId);
|
||||||
await util.EventLog(util.AyaType.Review, RavenId, SafeGetUserMap(c.Creator), SafeGetUserMap(c.Modifier), c.Created, c.Modified);
|
await util.EventLog(util.AyaType.Review, RavenId, SafeGetUserMap(c.Creator), SafeGetUserMap(c.Modifier), c.Created, c.Modified);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user