diff --git a/devdocs/specs/core-import-v7.txt b/devdocs/specs/core-import-v7.txt index dd25e45c..902c3fbd 100644 --- a/devdocs/specs/core-import-v7.txt +++ b/devdocs/specs/core-import-v7.txt @@ -20,7 +20,8 @@ REQUIREMENTS - Supports specifying what to import so can just pick clients or something. - Pick by name of folder I guess within zip since each object type is in it's own folder - +- ?? WAIT A BIT TO DETERMINE THIS: EVENTLOG + - NOTE: items will be imported as if newly created so the administrator / manager account is the owner of all imported objects - IMPORT - user selects all or collection of folders to import from zip diff --git a/devdocs/todo.txt b/devdocs/todo.txt index f2ed26fd..cce1564b 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -19,9 +19,7 @@ CODING WORK +++++++++++ Overall plan for now: anything standing in the way of making the initial client shell UI needs to be done first, everything else can wait - - Remove CREATED from all *business* objects now that event log tracks it - - V7 Import: check for efficiency changes after seeing how seeder needed to be optimized - - Also need to see about event log working with it, should it attempt to keep the v7 created / modifed or start afresh + - Localized text - Search and search text indexing - Auto visible id number assigning code diff --git a/server/AyaNova/biz/LocaleBiz.cs b/server/AyaNova/biz/LocaleBiz.cs index 71b53d5c..0ce01e7c 100644 --- a/server/AyaNova/biz/LocaleBiz.cs +++ b/server/AyaNova/biz/LocaleBiz.cs @@ -449,7 +449,10 @@ namespace AyaNova.Biz ct.Locale.Add(l); ct.SaveChanges(); - + + //Log now that we have the Id + EventLogProcessor.AddEntry(new Event(1, l.Id, AyaType.Locale, AyaEvent.Created), ct); + ct.SaveChanges(); } break; diff --git a/server/AyaNova/biz/TagBiz.cs b/server/AyaNova/biz/TagBiz.cs index dd765a55..e0b42356 100644 --- a/server/AyaNova/biz/TagBiz.cs +++ b/server/AyaNova/biz/TagBiz.cs @@ -254,6 +254,9 @@ namespace AyaNova.Biz { await ct.SaveChangesAsync(); var mapItem = new ImportAyaNova7MapItem(oldId, AyaType.Tag, o.Id); + //Log + EventLogProcessor.AddEntry(new Event(userId, o.Id, AyaType.Tag, AyaEvent.Created), ct); + await ct.SaveChangesAsync(); } } @@ -269,6 +272,6 @@ namespace AyaNova.Biz }//eoc -// + // }//eons