Skip to content

Commit

Permalink
Change delete list in http /diff
Browse files Browse the repository at this point in the history
  • Loading branch information
aorzelskiGH committed Jun 3, 2021
1 parent fdc0dd2 commit e682922
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/AasxServerStandardBib/AasxRestServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,15 @@ public static void add(AdminShell.Referable o, string op, AdminShell.Submodel ro
{
o.TimeStamp = DateTime.Now;
AdminShell.Referable x = o;
/*
string path = x.idShort;
while (x.parent != null && x != x.parent)
{
x = x.parent;
path = x.idShort + "." + path;
}
o.idShort = path;
*/
deletedList.Add(new DeletedListItem() { sm = rootSubmodel, rf = o });
if (deletedList.Count > 1000 && deletedList[0].rf != null)
{
Expand Down Expand Up @@ -684,7 +686,14 @@ public IHttpContext GetDiff(IHttpContext context)
continue;
if (d.rf.TimeStamp > minimumDate)
{
diffText += "<tr><td>DELETE</td><td><b>" + d.rf.idShort + "</b></td><td>SMEC</td><td>" +
var x = d.rf;
string path = x.idShort;
while (x.parent != null && x != x.parent)
{
x = x.parent;
path = x.idShort + "." + path;
}
diffText += "<tr><td>DELETE</td><td><b>" + path + "</b></td><td>SMEC</td><td>" +
d.rf.TimeStamp.ToString("yy-MM-dd HH:mm:ss.fff") + "</td></tr>";
}
}
Expand Down

0 comments on commit e682922

Please sign in to comment.