Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
145c4d5
TD-6285: Resource details optimizations
ArunimaGeorge Sep 30, 2025
899bc87
TD-7819: Refracted the BulkJson Code to improve the performance
swapnamol-abraham Sep 29, 2026
e998189
Changed Sp with CREATE statement
swapnamol-abraham Sep 30, 2026
c06aae7
Merge pull request #1453 from TechnologyEnhancedLearning/Develop/Feat…
AnjuJose011 Sep 30, 2026
3e15dee
fixed-plicy
AnjuJose011 Oct 11, 2026
8a2398f
fix
AnjuJose011 Oct 11, 2026
c91fc8a
cookie update
AnjuJose011 Oct 14, 2026
7bb85fd
review date changed
AnjuJose011 Oct 15, 2026
aca040a
TD-7798: LH My Learning Activity PGVLE course accessed date is displa…
swapnamol-abraham Oct 16, 2026
5710632
fixes
AnjuJose011 Oct 26, 2026
32834c0
fixes
AnjuJose011 Oct 26, 2026
18a58b0
conflicts resolved
AnjuJose011 Nov 5, 2026
a19524a
model update
AnjuJose011 Nov 5, 2026
3a0468c
conflicts resloved
AnjuJose011 Nov 5, 2026
1ca94e4
Merge pull request #1940 from TechnologyEnhancedLearning/Develop/Feat…
AnjuJose011 Nov 5, 2026
87cf104
Added missing user defined data table to the DB script
swapnamol-abraham Nov 5, 2026
294293e
Merge pull request #1926 from TechnologyEnhancedLearning/Develop/Fixe…
AnjuJose011 Nov 5, 2026
df7aef8
Merge branch 'RC' into Missing-User-defined-table
swapnamol-abraham Nov 5, 2026
e2d7484
Merge pull request #1941 from TechnologyEnhancedLearning/Missing-User…
AnjuJose011 Nov 5, 2026
7cdc7c1
issue fix-build error
AnjuJose011 Nov 6, 2026
36c90ce
Corrected the table name
swapnamol-abraham Nov 6, 2026
611b4b7
Merge pull request #1933 from TechnologyEnhancedLearning/TD-7145-Ploc…
AnjuJose011 Nov 9, 2026
d687c5d
Merge pull request #1936 from TechnologyEnhancedLearning/Develop/Fixe…
AnjuJose011 Nov 10, 2026
752a512
sit fixes
AnjuJose011 Nov 11, 2026
f70c2f5
Merge pull request #1944 from TechnologyEnhancedLearning/TD-7145-SitF…
AnjuJose011 Nov 12, 2026
877b73e
sit fix
AnjuJose011 Nov 12, 2026
a4a558f
fixes
AnjuJose011 Nov 12, 2026
35041b0
ai statement v1.3
AnjuJose011 Nov 15, 2026
0f0bbb8
fix
AnjuJose011 Nov 15, 2026
bdaf342
TD-7145-Update-V1.13
AnjuJose011 Nov 15, 2026
2c7d306
TD-7746-URLupdate
AnjuJose011 Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<PackageReference Include="HtmlSanitizer" Version="6.0.453" />
<PackageReference Include="IdentityModel" Version="4.6.0" />
<PackageReference Include="LearningHub.Nhs.Caching" Version="2.0.2" />
<PackageReference Include="LearningHub.Nhs.Models" Version="4.0.25" />
<PackageReference Include="LearningHub.Nhs.Models" Version="4.0.26" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.19.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.36" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.36" />
Expand Down Expand Up @@ -117,7 +117,6 @@
<Folder Include="Properties\" />
<Folder Include="Scripts\vuesrc\content\upload\" />
<Folder Include="Scripts\vuesrc\helpers\" />
<Folder Include="Views\Shared\Components\" />
<Folder Include="wwwroot\lib\fontawesome-free-6.4.2-web\" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="elfhHub.Nhs.Models" Version="3.0.16" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LearningHub.Nhs.Models" Version="4.0.25" />
<PackageReference Include="LearningHub.Nhs.Models" Version="4.0.26" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="3.1.13" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="Selenium.Axe" Version="4.0.19" />
Expand Down
2 changes: 1 addition & 1 deletion LearningHub.Nhs.WebUI/Controllers/Api/ScormController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private async Task<bool> Commit(SCO scoObject)
{
try
{
var activeContent = this.userService.GetActiveContentAsync().Result;
var activeContent = await this.userService.GetActiveContentAsync();
if (!activeContent.Any(ac => ac.ScormActivityId == scoObject.InstanceId))
{
throw new Exception($"User does not have ActiveContent for ScormActivityId={scoObject.InstanceId}");
Expand Down
8 changes: 4 additions & 4 deletions LearningHub.Nhs.WebUI/Helpers/LearningHubApiFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task<T> GetAsync<T>(string url)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
vm = JsonConvert.DeserializeObject<T>(result);

return vm;
Expand Down Expand Up @@ -112,7 +112,7 @@ public async Task<ApiResponse> PostAsync<T, TBody>(string url, TBody body)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
var apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);
if (apiResponse.Success)
{
Expand Down Expand Up @@ -157,7 +157,7 @@ public async Task<ApiResponse> PutAsync(string url)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
var apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);
if (apiResponse.Success)
{
Expand Down Expand Up @@ -206,7 +206,7 @@ public async Task<ApiResponse> PutAsync<T>(string url, T body)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
var apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);
if (apiResponse.Success)
{
Expand Down
8 changes: 4 additions & 4 deletions LearningHub.Nhs.WebUI/Helpers/OpenApiFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task<T> GetAsync<T>(string url)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
vm = JsonConvert.DeserializeObject<T>(result);

return vm;
Expand Down Expand Up @@ -112,7 +112,7 @@ public async Task<ApiResponse> PostAsync<T, TBody>(string url, TBody body)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
var apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);
if (apiResponse.Success)
{
Expand Down Expand Up @@ -157,7 +157,7 @@ public async Task<ApiResponse> PutAsync(string url)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
var apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);
if (apiResponse.Success)
{
Expand Down Expand Up @@ -206,7 +206,7 @@ public async Task<ApiResponse> PutAsync<T>(string url, T body)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
var apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);
if (apiResponse.Success)
{
Expand Down
2 changes: 1 addition & 1 deletion LearningHub.Nhs.WebUI/LearningHub.Nhs.WebUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<PackageReference Include="HtmlAgilityPack" Version="1.11.72" />
<PackageReference Include="IdentityModel" Version="4.6.0" />
<PackageReference Include="LearningHub.Nhs.Caching" Version="2.0.0" />
<PackageReference Include="LearningHub.Nhs.Models" Version="4.0.25" />
<PackageReference Include="LearningHub.Nhs.Models" Version="4.0.26" />
<PackageReference Include="linqtotwitter" Version="6.9.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.19.0" />
<PackageReference Include="Microsoft.ApplicationInsights.EventCounterCollector" Version="2.21.0" />
Expand Down
18 changes: 9 additions & 9 deletions LearningHub.Nhs.WebUI/Services/ActivityService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task<LearningHubValidationResult> CreateAssessmentResourceActivityA

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);

if (!apiResponse.Success)
Expand Down Expand Up @@ -82,7 +82,7 @@ public async Task<AssessmentViewModel> CreateAssessmentResourceActivityInteracti

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewModel = JsonConvert.DeserializeObject<AssessmentViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized || response.StatusCode == System.Net.HttpStatusCode.Forbidden)
Expand Down Expand Up @@ -112,7 +112,7 @@ public async Task<LearningHubValidationResult> CreateMediaResourceActivityAsync(

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);

if (!apiResponse.Success)
Expand Down Expand Up @@ -147,7 +147,7 @@ public async Task<LearningHubValidationResult> CreateMediaResourceActivityIntera

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);

if (!apiResponse.Success)
Expand Down Expand Up @@ -182,7 +182,7 @@ public async Task<LearningHubValidationResult> CreateResourceActivityAsync(Creat

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);

if (!apiResponse.Success)
Expand Down Expand Up @@ -215,7 +215,7 @@ public async Task<ScormActivityViewModel> LaunchScormActivityAsync(LaunchScormAc

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<ScormActivityViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized || response.StatusCode == System.Net.HttpStatusCode.Forbidden)
Expand Down Expand Up @@ -245,7 +245,7 @@ public async Task<ScormUpdateResponseViewModel> UpdateScormActivityAsync(ScormAc

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
updateResponse = JsonConvert.DeserializeObject<ScormUpdateResponseViewModel>(result);

if (!updateResponse.IsValid)
Expand Down Expand Up @@ -279,7 +279,7 @@ public async Task<LearningHubValidationResult> CompleteScormActivity(ScormActivi
LearningHubValidationResult validationResult;
if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
validationResult = JsonConvert.DeserializeObject<LearningHubValidationResult>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized || response.StatusCode == System.Net.HttpStatusCode.Forbidden)
Expand Down Expand Up @@ -363,7 +363,7 @@ public async Task<bool> CheckSuspendDataToBeCleared(int lastScormActivityId, int

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<bool>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized || response.StatusCode == System.Net.HttpStatusCode.Forbidden)
Expand Down
1 change: 1 addition & 0 deletions LearningHub.Nhs.WebUI/Services/BaseHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public async Task<HttpClient> GetClientAsync()
DateTimeOffset.Parse(expiresAt)
.AddSeconds(-60)
.ToUniversalTime() < DateTime.UtcNow;

// compare
if (tokenExpired)
{
Expand Down
8 changes: 4 additions & 4 deletions LearningHub.Nhs.WebUI/Services/BoomarkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task<int> Create(UserBookmarkViewModel bookmarkViewModel)
var bookmarkId = bookmarkViewModel.Id;
if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
bookmarkId = Convert.ToInt32(result);
}

Expand Down Expand Up @@ -75,7 +75,7 @@ public async Task<int> Edit(UserBookmarkViewModel bookmarkViewModel)
var bookmarkId = bookmarkViewModel.Id;
if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
bookmarkId = Convert.ToInt32(result);
}

Expand Down Expand Up @@ -111,7 +111,7 @@ public async Task<IEnumerable<UserBookmarkViewModel>> GetAllByParent(int? parent

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<IEnumerable<UserBookmarkViewModel>>(result);
}

Expand Down Expand Up @@ -139,7 +139,7 @@ public async Task<int> Toggle(UserBookmarkViewModel bookmarkViewModel)
var bookmarkId = bookmarkViewModel.Id;
if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
bookmarkId = Convert.ToInt32(result);
}

Expand Down
8 changes: 4 additions & 4 deletions LearningHub.Nhs.WebUI/Services/CardService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public async Task<MyContributionsTotalsViewModel> GetMyContributionsTotalsAsync(

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
totals = JsonConvert.DeserializeObject<MyContributionsTotalsViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized
Expand Down Expand Up @@ -74,7 +74,7 @@ public async Task<List<ContributedResourceCardViewModel>> GetContributionsAsync(

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
myContributionCards = JsonConvert.DeserializeObject<List<ContributedResourceCardViewModel>>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized
Expand Down Expand Up @@ -102,7 +102,7 @@ public async Task<MyResourceViewModel> GetMyResourceViewModelAsync()

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
myresourcecards = JsonConvert.DeserializeObject<MyResourceViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized
Expand Down Expand Up @@ -131,7 +131,7 @@ public async Task<ResourceCardExtendedViewModel> GetResourceCardExtendedViewMode

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
resourceCardExtendedViewModel = JsonConvert.DeserializeObject<ResourceCardExtendedViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized
Expand Down
22 changes: 11 additions & 11 deletions LearningHub.Nhs.WebUI/Services/CatalogueService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task<List<CatalogueBasicViewModel>> GetCataloguesForUserAsync()

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewmodel = JsonConvert.DeserializeObject<List<CatalogueBasicViewModel>>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized
Expand Down Expand Up @@ -78,7 +78,7 @@ public async Task<CatalogueViewModel> GetCatalogueAsync(string reference)

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewmodel = JsonConvert.DeserializeObject<CatalogueViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized ||
Expand Down Expand Up @@ -106,7 +106,7 @@ public async Task<CatalogueViewModel> GetCatalogueAsync(int catalogueNodeVersion

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewmodel = JsonConvert.DeserializeObject<CatalogueViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized ||
Expand Down Expand Up @@ -134,7 +134,7 @@ public async Task<CatalogueViewModel> GetCatalogueRecordedAsync(string reference

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewmodel = JsonConvert.DeserializeObject<CatalogueViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized ||
Expand Down Expand Up @@ -165,7 +165,7 @@ public async Task<CatalogueResourceResponseViewModel> GetResourcesAsync(Catalogu

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewmodel = JsonConvert.DeserializeObject<CatalogueResourceResponseViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized ||
Expand Down Expand Up @@ -353,7 +353,7 @@ public async Task<List<RestrictedCatalogueAccessRequestViewModel>> GetRestricted

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewModel = JsonConvert.DeserializeObject<List<RestrictedCatalogueAccessRequestViewModel>>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized
Expand Down Expand Up @@ -386,7 +386,7 @@ public async Task<RestrictedCatalogueSummaryViewModel> GetRestrictedCatalogueSum

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewmodel = JsonConvert.DeserializeObject<RestrictedCatalogueSummaryViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized ||
Expand Down Expand Up @@ -421,7 +421,7 @@ public async Task<RestrictedCatalogueUsersViewModel> GetRestrictedCatalogueUsers

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewModel = JsonConvert.DeserializeObject<RestrictedCatalogueUsersViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized
Expand Down Expand Up @@ -613,7 +613,7 @@ public async Task<LearningHubValidationResult> RemoveUserFromRestrictedAccessUse
ApiResponse apiResponse = null;
if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);

if (!apiResponse.Success)
Expand All @@ -627,7 +627,7 @@ public async Task<LearningHubValidationResult> RemoveUserFromRestrictedAccessUse
}
else if (response.StatusCode == System.Net.HttpStatusCode.BadRequest)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
apiResponse = JsonConvert.DeserializeObject<ApiResponse>(result);
if (apiResponse.ValidationResult == null)
{
Expand All @@ -653,7 +653,7 @@ public async Task<AllCatalogueResponseViewModel> GetAllCatalogueAsync(string fil

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
var result = await response.Content.ReadAsStringAsync();
viewmodel = JsonConvert.DeserializeObject<AllCatalogueResponseViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized ||
Expand Down
Loading
Loading