1- using LearningHub . Nhs . Models . Bookmark ;
2- using LearningHub . Nhs . Models . Entities . Reporting ;
3- using LearningHub . Nhs . OpenApi . Models . Configuration ;
1+ using LearningHub . Nhs . OpenApi . Models . Configuration ;
42using LearningHub . Nhs . OpenApi . Services . HttpClients ;
5- using LearningHub . Nhs . OpenApi . Services . Interface . HttpClients ;
63using LearningHub . Nhs . OpenApi . Services . Interface . Services ;
7- using Microsoft . Extensions . Logging ;
84using Microsoft . Extensions . Options ;
95using Newtonsoft . Json ;
106using System ;
117using System . Collections . Generic ;
128using System . Net ;
139using System . Net . Http ;
14- using System . Text . Json . Nodes ;
1510using System . Text ;
1611using System . Threading . Tasks ;
1712using LearningHub . Nhs . Models . Databricks ;
1813using System . Linq ;
19- using System . Net . Http . Headers ;
2014using LearningHub . Nhs . OpenApi . Repositories . Interface . Repositories ;
2115using LearningHub . Nhs . Models . Entities . DatabricksReport ;
2216using AutoMapper ;
23- using LearningHub . Nhs . Models . Entities . Activity ;
24- using LearningHub . Nhs . Models . Resource . Activity ;
2517using LearningHub . Nhs . Models . Common ;
26- using LearningHub . Nhs . Models . Notification ;
2718using Microsoft . EntityFrameworkCore ;
28- using LearningHub . Nhs . Models . Enums . Report ;
29- using Newtonsoft . Json . Linq ;
3019using LearningHub . Nhs . OpenApi . Models . ViewModels ;
31- using LearningHub . Nhs . Models . Resource ;
32- using LearningHub . Nhs . OpenApi . Repositories . Repositories ;
33- using LearningHub . Nhs . Models . Constants ;
34- using LearningHub . Nhs . Models . Hierarchy ;
3520using LearningHub . Nhs . Models . Enums ;
3621using System . Text . Json ;
37- using LearningHub . Nhs . Models . Entities . Resource ;
3822using LearningHub . Nhs . Models . Entities ;
3923
4024namespace LearningHub . Nhs . OpenApi . Services . Services
@@ -83,7 +67,7 @@ public DatabricksService(IOptions<DatabricksConfig> databricksConfig,IOptions<Le
8367 /// <inheritdoc/>
8468 public async Task < bool > IsUserReporter ( int userId )
8569 {
86- string cacheKey = $ "{ CacheKey } _ { userId } ";
70+ string cacheKey = $ "{ userId } : { CacheKey } ";
8771 var userReportPermission = await this . cachingService . GetAsync < bool > ( cacheKey ) ;
8872 if ( userReportPermission . ResponseEnum == CacheReadResponseEnum . Found )
8973 {
@@ -129,7 +113,6 @@ public async Task<bool> IsUserReporter(int userId)
129113 /// <inheritdoc/>
130114 public async Task < DatabricksDetailedViewModel > CourseCompletionReport ( int userId , DatabricksRequestModel model )
131115 {
132- userId = 22527 ;
133116 newEntry :
134117 if ( model . ReportHistoryId == 0 && model . Take > 1 )
135118 {
@@ -214,7 +197,6 @@ public async Task<DatabricksDetailedViewModel> CourseCompletionReport(int userId
214197 /// <inheritdoc/>
215198 public async Task < PagedResultSet < ReportHistoryModel > > GetPagedReportHistory ( int userId , int page , int pageSize )
216199 {
217- userId = 22527 ;
218200 var result = new PagedResultSet < ReportHistoryModel > ( ) ;
219201 var query = this . reportHistoryRepository . GetByUserIdAsync ( userId ) ;
220202
@@ -242,7 +224,6 @@ public async Task<PagedResultSet<ReportHistoryModel>> GetPagedReportHistory(int
242224 /// <inheritdoc/>
243225 public async Task < ReportHistoryModel > GetPagedReportHistoryById ( int userId , int reportHistoryId )
244226 {
245- userId = 22527 ;
246227 var result = new ReportHistoryModel ( ) ;
247228
248229 var reportHistory = await this . reportHistoryRepository . GetByIdAsync ( reportHistoryId ) ;
@@ -266,7 +247,6 @@ public async Task<ReportHistoryModel> GetPagedReportHistoryById(int userId, int
266247 /// <inheritdoc/>
267248 public async Task < bool > QueueReportDownload ( int userId , int reportHistoryId )
268249 {
269- userId = 22527 ;
270250 var result = new ReportHistoryModel ( ) ;
271251
272252 var reportHistory = await this . reportHistoryRepository . GetByIdAsync ( reportHistoryId ) ;
@@ -332,7 +312,6 @@ public async Task<bool> QueueReportDownload(int userId, int reportHistoryId)
332312 /// <inheritdoc/>
333313 public async Task < ReportHistoryModel > DownloadReport ( int userId , int reportHistoryId )
334314 {
335- userId = 22527 ;
336315 var response = new ReportHistoryModel ( ) ;
337316
338317 var reportHistory = await this . reportHistoryRepository . GetByIdAsync ( reportHistoryId ) ;
0 commit comments