diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 49814925..87f19f96 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -33,7 +33,12 @@ IMMEDIATE ITEMS: - X Modify tag to bring combined list of groups with tag picklist (NOPE, let the UI query both separately and integrate them at the UI level) - Modify tag to remove itself from tagroupmap if deleted - Tag: add test for untag everything - - Retag: code to tag an item should take into account if it's already tagged and not make a new record, just return existing + - TAG: add test that can't delete if it's in a taggroup mapping + - TAGGrOUP: add tests for all crud ops + - TESTS: Make a test for each type of group operation from biz point of view + - TAGMAP: code to tag an item should take into account if it's already tagged and not make a new record, just return existing + - TAGGROUPMAP: add tagGROUPMAP should take into account if already added + - Localized text - ** DEVISE a system to ensure no unused keys are brought forward to raven - Search and search text indexing diff --git a/server/AyaNova/biz/TagGroupMapBiz.cs b/server/AyaNova/biz/TagGroupMapBiz.cs index 82271164..b0251d25 100644 --- a/server/AyaNova/biz/TagGroupMapBiz.cs +++ b/server/AyaNova/biz/TagGroupMapBiz.cs @@ -35,6 +35,9 @@ namespace AyaNova.Biz //CREATE internal async Task CreateAsync(TagGroupMapInfo inObj) { + //TODO: see if already present and just return inObj if so + if(ct.TagGroupMap.Any().where) + Validate(inObj, true); if (HasErrors)