Skip to content

Commit

Permalink
Merge pull request #1629 from SkillsFundingAgency/P2-2241_Remove_apar…
Browse files Browse the repository at this point in the history
…_summary

P2-2241 Remove the apar summary
  • Loading branch information
ChrisJWoodcock authored Dec 10, 2024
2 parents e87af4f + 1d16f6a commit 9f68662
Show file tree
Hide file tree
Showing 30 changed files with 34 additions and 1,530 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CODEOWNERS file for das-assessor-service

# The following users will be automatically added as Reviewers to all PRs.
* @ChrisJWoodcock @karen-hanna @LACrossley
* @ChrisJWoodcock @karen-hanna

.github/CODEOWNERS @SkillsFundingAgency/das-platform-engineering
/azure/ @SkillsFundingAgency/das-platform-engineering
Expand Down
13 changes: 0 additions & 13 deletions src/SFA.DAS.AssessorService.Api.Types/Models/AO/AparSummary.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,6 @@ public async Task<IActionResult> GetAssessmentOrganisations()
return Ok(await _mediator.Send(new GetAssessmentOrganisationsRequest()));
}

[HttpGet("assessment-organisations/apar-summary", Name = "GetAPARSummary")]
[SwaggerResponse((int)HttpStatusCode.OK, Type = typeof(List<AparSummary>))]
[SwaggerResponse((int)HttpStatusCode.BadRequest, Type = typeof(IDictionary<string, string>))]
[SwaggerResponse((int)HttpStatusCode.InternalServerError, Type = typeof(ApiResponse))]
public async Task<IActionResult> GetAparSummary()
{
_logger.LogInformation("Get APAR Summary");
return Ok(await _mediator.Send(new GetAparSummaryRequest()));
}

[HttpGet("assessment-organisations/apar-summary/{ukprn}", Name = "GetAparSummaryByUkprn")]
[SwaggerResponse((int)HttpStatusCode.OK, Type = typeof(AparSummary))]
[SwaggerResponse((int)HttpStatusCode.BadRequest, Type = typeof(IDictionary<string, string>))]
[SwaggerResponse((int)HttpStatusCode.InternalServerError, Type = typeof(ApiResponse))]
public async Task<IActionResult> GetAparSummaryByUkprn(int ukprn)
{
_logger.LogInformation($"Get Apar Summary by UKPRN [{ukprn}]");
var results = await _mediator.Send(new GetAparSummaryRequest(ukprn));
return Ok(results.FirstOrDefault());
}

[HttpGet("assessment-organisations/{organisationId}", Name = "GetAssessmentOrganisation")]
[SwaggerResponse((int) HttpStatusCode.OK, Type = typeof(EpaOrganisation))]
[SwaggerResponse((int) HttpStatusCode.NotFound, null)]
Expand Down Expand Up @@ -239,30 +218,6 @@ public async Task<IActionResult> SearchStandards(string searchstring)

return Ok(results.Select(s => (StandardVersion)s).ToList());
}

[HttpPost("assessment-organisations/apar-summary-update", Name = "APARSummaryUpdate")]
[SwaggerResponse((int)HttpStatusCode.Accepted, Type = typeof(int?))]
[SwaggerResponse((int)HttpStatusCode.InternalServerError, Type = typeof(ApiResponse))]
public IActionResult AparSummaryUpdate()
{
var requestName = "update APAR summary";
return QueueBackgroundRequest(new AparSummaryUpdateRequest(), requestName, (response, duration, log) =>
{
var result = response;
log.LogInformation($"Completed request to {requestName}, there were {result} changes made to APAR for EPAOs in {duration.ToReadableString()}");
});
}

[HttpGet("assessment-organisations/apar-summary-last-updated", Name = "GetAparSummaryLastUpdated")]
[SwaggerResponse((int)HttpStatusCode.OK, Type = typeof(List<DateTime>))]
[SwaggerResponse((int)HttpStatusCode.BadRequest, Type = typeof(IDictionary<string, string>))]
[SwaggerResponse((int)HttpStatusCode.InternalServerError, Type = typeof(ApiResponse))]
public async Task<IActionResult> GetAparSummaryLastUpdated()
{
_logger.LogInformation("Getting APAR Summary Last Updated Date");

return Ok(await _mediator.Send(new GetAparSummaryLastUpdatedRequest()));
}
}
}

This file was deleted.

Loading

0 comments on commit 9f68662

Please sign in to comment.