You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #294 from TechnologyEnhancedLearning/Develop/Fixes/TD-4047-My-Learning-page-elearning-with-Assessment-displays-the-learning-record-twice-based-upon-the-assessment-result
TD-4047: Duplicate records appearing in Mylearning page. Brought back removed code to fix the issue and implemented same logic in newly created stored procedures.
Copy file name to clipboardExpand all lines: WebAPI/LearningHub.Nhs.Repository/Activity/ResourceActivityRepository.cs
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,7 @@ public IQueryable<ResourceActivity> GetByUserId(int userId)
96
96
//
97
97
// For assessment activities, only include the original activities that were created when starting the assessment. The created end record is only for consistency.
98
98
// It's easier to get the real assessment resource activity from the original resource activity, so only fetch that one.
99
+
// TD-4047: As part of this defect bringing back the removed code which then used for the new stored procedure created as part of performance improvement.
99
100
returnthis.DbContext.ResourceActivity
100
101
.Include(r =>r.Resource)
101
102
.ThenInclude(r =>r.ResourceReference)
@@ -111,9 +112,10 @@ public IQueryable<ResourceActivity> GetByUserId(int userId)
0 commit comments