@@ -117,18 +117,18 @@ bool zeroBased
117117 //INSERT DATA
118118 BrandedFramework CreateFramework ( DetailFramework detailFramework , int adminId ) ;
119119
120- int InsertCompetencyGroup ( string groupName , string ? groupDescription , int adminId ) ;
120+ int InsertCompetencyGroup ( string groupName , string ? groupDescription , int adminId , int ? frameworkId = null ) ;
121121
122- int InsertFrameworkCompetencyGroup ( int groupId , int frameworkID , int adminId ) ;
122+ int InsertFrameworkCompetency ( int competencyId , int ? frameworkCompetencyGroupID , int adminId , int frameworkId , bool alwaysShowDescription = false ) ;
123123
124124 IEnumerable < FrameworkCompetency > GetAllCompetenciesForAdminId ( string name , int adminId ) ;
125125
126126 int InsertCompetency ( string name , string ? description , int adminId ) ;
127127
128- int InsertFrameworkCompetency ( int competencyId , int ? frameworkCompetencyGroupID , int adminId , int frameworkId ) ;
128+ int InsertFrameworkCompetencyGroup ( int groupId , int frameworkID , int adminId ) ;
129129
130130 int AddCollaboratorToFramework ( int frameworkId , string userEmail , bool canModify ) ;
131- void AddCustomFlagToFramework ( int frameworkId , string flagName , string flagGroup , string flagTagClass ) ;
131+ int AddCustomFlagToFramework ( int frameworkId , string flagName , string flagGroup , string flagTagClass ) ;
132132 void UpdateFrameworkCustomFlag ( int frameworkId , int id , string flagName , string flagGroup , string flagTagClass ) ;
133133
134134 void AddFrameworkDefaultQuestion ( int frameworkId , int assessmentQuestionId , int adminId , bool addToExisting ) ;
@@ -199,8 +199,8 @@ void UpdateFrameworkCompetencyGroup(
199199 int adminId
200200 ) ;
201201
202- void UpdateFrameworkCompetency ( int frameworkCompetencyId , string name , string ? description , int adminId ) ;
203- void UpdateCompetencyFlags ( int frameworkId , int competencyId , int [ ] selectedFlagIds ) ;
202+ void UpdateFrameworkCompetency ( int frameworkCompetencyId , string name , string ? description , int adminId , bool ? alwaysShowDescription = false ) ;
203+ int UpdateCompetencyFlags ( int frameworkId , int competencyId , int [ ] selectedFlagIds ) ;
204204
205205 void MoveFrameworkCompetencyGroup ( int frameworkCompetencyGroupId , bool singleStep , string direction ) ;
206206
@@ -277,9 +277,9 @@ public void AddCompetencyAssessmentQuestion(int frameworkCompetencyId, int asses
277277 frameworkDataService . AddCompetencyAssessmentQuestion ( frameworkCompetencyId , assessmentQuestionId , adminId ) ;
278278 }
279279
280- public void AddCustomFlagToFramework ( int frameworkId , string flagName , string flagGroup , string flagTagClass )
280+ public int AddCustomFlagToFramework ( int frameworkId , string flagName , string flagGroup , string flagTagClass )
281281 {
282- frameworkDataService . AddCustomFlagToFramework ( frameworkId , flagName , flagGroup , flagTagClass ) ;
282+ return frameworkDataService . AddCustomFlagToFramework ( frameworkId , flagName , flagGroup , flagTagClass ) ;
283283 }
284284
285285 public void AddFrameworkDefaultQuestion ( int frameworkId , int assessmentQuestionId , int adminId , bool addToExisting )
@@ -597,14 +597,14 @@ public int InsertCompetency(string name, string? description, int adminId)
597597 return frameworkDataService . InsertCompetency ( name , description , adminId ) ;
598598 }
599599
600- public int InsertCompetencyGroup ( string groupName , string ? groupDescription , int adminId )
600+ public int InsertCompetencyGroup ( string groupName , string ? groupDescription , int adminId , int ? frameworkId )
601601 {
602- return frameworkDataService . InsertCompetencyGroup ( groupName , groupDescription , adminId ) ;
602+ return frameworkDataService . InsertCompetencyGroup ( groupName , groupDescription , adminId , frameworkId ) ;
603603 }
604604
605- public int InsertFrameworkCompetency ( int competencyId , int ? frameworkCompetencyGroupID , int adminId , int frameworkId )
605+ public int InsertFrameworkCompetency ( int competencyId , int ? frameworkCompetencyGroupID , int adminId , int frameworkId , bool alwaysShowDescription = false )
606606 {
607- return frameworkDataService . InsertFrameworkCompetency ( competencyId , frameworkCompetencyGroupID , adminId , frameworkId ) ;
607+ return frameworkDataService . InsertFrameworkCompetency ( competencyId , frameworkCompetencyGroupID , adminId , frameworkId , alwaysShowDescription ) ;
608608 }
609609
610610 public int InsertFrameworkCompetencyGroup ( int groupId , int frameworkID , int adminId )
@@ -662,19 +662,19 @@ public void UpdateAssessmentQuestion(int id, string question, int assessmentQues
662662 frameworkDataService . UpdateAssessmentQuestion ( id , question , assessmentQuestionInputTypeId , maxValueDescription , minValueDescription , scoringInstructions , minValue , maxValue , includeComments , adminId , commentsPrompt , commentsHint ) ;
663663 }
664664
665- public void UpdateCompetencyFlags ( int frameworkId , int competencyId , int [ ] selectedFlagIds )
665+ public int UpdateCompetencyFlags ( int frameworkId , int competencyId , int [ ] selectedFlagIds )
666666 {
667- frameworkDataService . UpdateCompetencyFlags ( frameworkId , competencyId , selectedFlagIds ) ;
667+ return frameworkDataService . UpdateCompetencyFlags ( frameworkId , competencyId , selectedFlagIds ) ;
668668 }
669669
670670 public BrandedFramework ? UpdateFrameworkBranding ( int frameworkId , int brandId , int categoryId , int topicId , int adminId )
671671 {
672672 return frameworkDataService . UpdateFrameworkBranding ( frameworkId , brandId , categoryId , topicId , adminId ) ;
673673 }
674674
675- public void UpdateFrameworkCompetency ( int frameworkCompetencyId , string name , string ? description , int adminId )
676- {
677- frameworkDataService . UpdateFrameworkCompetency ( frameworkCompetencyId , name , description , adminId ) ;
675+ public void UpdateFrameworkCompetency ( int frameworkCompetencyId , string name , string ? description , int adminId , bool ? alwaysShowDescription )
676+ {
677+ frameworkDataService . UpdateFrameworkCompetency ( frameworkCompetencyId , name , description , adminId , alwaysShowDescription ) ;
678678 }
679679
680680 public void UpdateFrameworkCompetencyGroup ( int frameworkCompetencyGroupId , int competencyGroupId , string name , string ? description , int adminId )
0 commit comments