-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/sonar-issues
- Loading branch information
Showing
30 changed files
with
856 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
content/Dfe.EarlyYearsQualification.ContentUpload/QualificationUpload.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace Dfe.EarlyYearsQualification.ContentUpload; | ||
|
||
public class QualificationUpload( | ||
string qualificationId, | ||
string qualificationName, | ||
string awardingOrganisationTitle, | ||
int qualificationLevel, | ||
string? fromWhichYear, | ||
string? toWhichYear, | ||
string? qualificationNumber, | ||
string? additionalRequirements, | ||
string[]? additionalRequirementQuestions, | ||
string[]? ratioRequirements) | ||
{ | ||
// Required Fields | ||
public string QualificationId { get; } = qualificationId; | ||
public string QualificationName { get; } = qualificationName; | ||
public string AwardingOrganisationTitle { get; } = awardingOrganisationTitle; | ||
public int QualificationLevel { get; } = qualificationLevel; | ||
|
||
// Optional Fields | ||
public string? FromWhichYear { get; } = fromWhichYear; | ||
public string? ToWhichYear { get; } = toWhichYear; | ||
public string? QualificationNumber { get; } = qualificationNumber; | ||
public string? AdditionalRequirements { get; } = additionalRequirements; | ||
|
||
public string[]? AdditionalRequirementQuestions { get; } = additionalRequirementQuestions; | ||
|
||
public string[]? RatioRequirements { get; } = ratioRequirements; | ||
} |
4 changes: 4 additions & 0 deletions
4
content/Dfe.EarlyYearsQualification.ContentUpload/csv/reference-upload-test.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Qualification Ref,Qualification Level,From which date,To which date,Qualification Name,Awarding Organisation Title,Qualification Number,Notes/Additional Requirements,AdditionalRequirementQuestions,RatioRequirements | ||
EYQ-600-SAM,5,Sep-24,,NCFE CACHE Level 5 Diploma for the Early Years Senior Practitioner (HTQ),NCFE,610/4163/4,"This qualification will replace the predecessor version NCFE CACHE Level 5 Diploma for the Early Years Senior Practitioner 603/3907/X, listed on the post-Sept 2014 tab, which will be withdrawn on 31st August 2024 and this new version launched on 1 September 2024. ","4Mx3V72twImd3VY5uNHiTG:7ymGLoQg58CBfQt91G3ez5","5flybYVibSWDwCdo9LB90b" | ||
EYQ-601-SAM,5,Sep-24,,NCFE CACHE Level 5 Diploma for the Early Years Senior Practitioner (HTQ),NCFE,610/4163/4,"This qualification will replace the predecessor version NCFE CACHE Level 5 Diploma for the Early Years Senior Practitioner 603/3907/X, listed on the post-Sept 2014 tab, which will be withdrawn on 31st August 2024 and this new version launched on 1 September 2024. ","4Mx3V72twImd3VY5uNHiTG", | ||
EYQ-602-SAM,5,Sep-24,,NCFE CACHE Level 5 Diploma for the Early Years Senior Practitioner (HTQ),NCFE,610/4163/4,"This qualification will replace the predecessor version NCFE CACHE Level 5 Diploma for the Early Years Senior Practitioner 603/3907/X, listed on the post-Sept 2014 tab, which will be withdrawn on 31st August 2024 and this new version launched on 1 September 2024. ",, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 14 additions & 4 deletions
18
src/Dfe.EarlyYearsQualification.Web/Controllers/ErrorController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
using System.Diagnostics; | ||
using Dfe.EarlyYearsQualification.Web.Models; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace Dfe.EarlyYearsQualification.Web.Controllers; | ||
|
||
[Route("/error")] | ||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] | ||
public class ErrorController : Controller | ||
{ | ||
[HttpGet] | ||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] | ||
public IActionResult Index() | ||
{ | ||
return View("Error", new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); | ||
return View("ProblemWithTheService"); | ||
} | ||
|
||
[Route("{statusCode:int}")] | ||
public IActionResult HttpStatusCodeHandler(int statusCode) | ||
{ | ||
HttpContext.Response.StatusCode = statusCode; | ||
|
||
return statusCode switch | ||
{ | ||
404 => View("NotFound"), | ||
_ => View("ProblemWithTheService") | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.