Skip to content

Commit

Permalink
MMI-244 Fixed cbra report issues (#2371)
Browse files Browse the repository at this point in the history
* MMI-244 Fixed cbra report issues
- Updated Cbra report functions
- fixed a divide by zero issue
- updated dbfunction signatures
- Renamed Cbra methods
- Fix naming conventions
- Fixed total running time issues
---------
Co-authored-by: Jeremy Foster <jeremy.foster@fosol.ca>
  • Loading branch information
laidaoyu authored Dec 21, 2024
1 parent 291f655 commit 34c3695
Show file tree
Hide file tree
Showing 16 changed files with 8,325 additions and 308 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"yaml.schemaStore.enable": false,
"cSpell.words": [
"CBRA",
"CHES",
"formik",
"Idir",
Expand Down
10 changes: 2 additions & 8 deletions api/net/Areas/Reports/Controllers/CBRAController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,17 @@ namespace TNO.API.Areas.Reports.Controllers;
public class CBRAController : ControllerBase
{
#region Variables
private readonly IContentService _contentService;
private readonly ITimeTrackingService _timeTrackingService;
private readonly IActionService _actionService;
#endregion

#region Constructors
/// <summary>
/// Creates a new instance of a CBRAController object, initializes with specified parameters.
/// </summary>
/// <param name="contentService"></param>
/// <param name="timeTrackingService"></param>
/// <param name="actionService"></param>
public CBRAController(IContentService contentService, ITimeTrackingService timeTrackingService, IActionService actionService)
public CBRAController(ITimeTrackingService timeTrackingService)
{
_contentService = contentService;
_timeTrackingService = timeTrackingService;
_actionService = actionService;
}
#endregion

Expand All @@ -55,7 +49,7 @@ public CBRAController(IContentService contentService, ITimeTrackingService timeT
[SwaggerOperation(Tags = new[] { "CBRA" })]
public FileResult Generate([FromQuery] DateTime from, [FromQuery] DateTime? to)
{
var helper = new CBRAReport(_contentService, _timeTrackingService, _actionService);
var helper = new CBRAReport(_timeTrackingService);

var report = helper.GenerateReport(from, to);

Expand Down
Loading

0 comments on commit 34c3695

Please sign in to comment.