Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSP-1760: FAT - 9. FAT Outer API endpoint GET /Courses #1915

Open
wants to merge 18 commits into
base: FAT-25-Development
Choose a base branch
from

Conversation

shaun-downey-education
Copy link
Contributor

  • New endpoint to manage getting courses from courses api as well as gather provider count details from roatpv2 inner api.

  • Refactor GetTrainingCourseQueryHandler & GetTrainingCourseProviderQueryHandler to utilize new RAOTP inner API endpoint '/providers/count'.

  • Updated GetTrainingCourseQueryHandler, GetTrainingCourseProviderQueryHandler unit tests to reflect changes.

  • Unit test coverage for new GetCoursesQueryHandler.

- New endpoint to manage getting courses from courses api as well as gather provider count details from roatpv2 inner api.

- Refactor GetTrainingCourseQueryHandler & GetTrainingCourseProviderQueryHandler to utilize new roatp inner api endpoint '/providers/count'.

- Updated GetTrainingCourseQueryHandler, GetTrainingCourseProviderQueryHandler  unit tests to reflect changes.

- Unit test coverage for new GetCoursesQueryHandler.
* added AgreementNotSigned

* 1. In case of closed vacancy, the response object could not be cast into GetApprenticeshipVacancyItemResponse
This results in a vacancy item response as null. If the Email tokens are empty, then the email is not sent.

2.  Vacancy service => Separation of Concerns rule violation split this implementation as separate methods GetVacancy from FAA Api & Closed Vacancy from RAA Api

* Included NHS Vacancies count in the search Results

* Update SFA.DAS.FindAnApprenticeship.csproj

* Updated SFA.DAS.VacancyServices.Wage to version 1.0.35

* Saved Search Email alert Across England wording change

* added failed requests alert and updated app connection string

* CSP-1762: Get Course Levels endpoint and associated handler.

* CSP-1762: Update unit test to use Assert.That

* CSP-1762: Pushed unit test update to use fluent assertions to validate cover checker.

---------

Co-authored-by: Paul Graham <[email protected]>
Co-authored-by: Balaji Jambulingam <[email protected]>
Co-authored-by: Liam Crossley <[email protected]>
Co-authored-by: Siji Odunlami <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: harsh-dfe <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: Najam Muhammad <[email protected]>
* added AgreementNotSigned

* 1. In case of closed vacancy, the response object could not be cast into GetApprenticeshipVacancyItemResponse
This results in a vacancy item response as null. If the Email tokens are empty, then the email is not sent.

2.  Vacancy service => Separation of Concerns rule violation split this implementation as separate methods GetVacancy from FAA Api & Closed Vacancy from RAA Api

* Included NHS Vacancies count in the search Results

* Update SFA.DAS.FindAnApprenticeship.csproj

* Updated SFA.DAS.VacancyServices.Wage to version 1.0.35

* Saved Search Email alert Across England wording change

* added failed requests alert and updated app connection string

* WIP

* CSP-1763: Levels controller method to return levels from courses api.

---------

Co-authored-by: Paul Graham <[email protected]>
Co-authored-by: Balaji Jambulingam <[email protected]>
Co-authored-by: Liam Crossley <[email protected]>
Co-authored-by: Siji Odunlami <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: harsh-dfe <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: Najam Muhammad <[email protected]>
…overlet.msbuild.

Updated unit tests to reflect total providers count and providers count correctly.
* added AgreementNotSigned

* 1. In case of closed vacancy, the response object could not be cast into GetApprenticeshipVacancyItemResponse
This results in a vacancy item response as null. If the Email tokens are empty, then the email is not sent.

2.  Vacancy service => Separation of Concerns rule violation split this implementation as separate methods GetVacancy from FAA Api & Closed Vacancy from RAA Api

* Included NHS Vacancies count in the search Results

* Update SFA.DAS.FindAnApprenticeship.csproj

* Updated SFA.DAS.VacancyServices.Wage to version 1.0.35

* Saved Search Email alert Across England wording change

* added failed requests alert and updated app connection string

* CSP-1762: Get Course Levels endpoint and associated handler.

* CSP-1762: Update unit test to use Assert.That

* CSP-1762: Pushed unit test update to use fluent assertions to validate cover checker.

---------

Co-authored-by: Paul Graham <[email protected]>
Co-authored-by: Balaji Jambulingam <[email protected]>
Co-authored-by: Liam Crossley <[email protected]>
Co-authored-by: Siji Odunlami <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: harsh-dfe <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: Najam Muhammad <[email protected]>
* added AgreementNotSigned

* 1. In case of closed vacancy, the response object could not be cast into GetApprenticeshipVacancyItemResponse
This results in a vacancy item response as null. If the Email tokens are empty, then the email is not sent.

2.  Vacancy service => Separation of Concerns rule violation split this implementation as separate methods GetVacancy from FAA Api & Closed Vacancy from RAA Api

* Included NHS Vacancies count in the search Results

* Update SFA.DAS.FindAnApprenticeship.csproj

* Updated SFA.DAS.VacancyServices.Wage to version 1.0.35

* Saved Search Email alert Across England wording change

* added failed requests alert and updated app connection string

* WIP

* CSP-1763: Levels controller method to return levels from courses api.

---------

Co-authored-by: Paul Graham <[email protected]>
Co-authored-by: Balaji Jambulingam <[email protected]>
Co-authored-by: Liam Crossley <[email protected]>
Co-authored-by: Siji Odunlami <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: harsh-dfe <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: Najam Muhammad <[email protected]>
@DevenKShah DevenKShah requested a review from a team as a code owner February 3, 2025 17:20
* added AgreementNotSigned

* 1. In case of closed vacancy, the response object could not be cast into GetApprenticeshipVacancyItemResponse
This results in a vacancy item response as null. If the Email tokens are empty, then the email is not sent.

2.  Vacancy service => Separation of Concerns rule violation split this implementation as separate methods GetVacancy from FAA Api & Closed Vacancy from RAA Api

* Included NHS Vacancies count in the search Results

* Update SFA.DAS.FindAnApprenticeship.csproj

* Updated SFA.DAS.VacancyServices.Wage to version 1.0.35

* Saved Search Email alert Across England wording change

* added failed requests alert and updated app connection string

* CSP-1762: Get Course Levels endpoint and associated handler.

* CSP-1762: Update unit test to use Assert.That

* CSP-1762: Pushed unit test update to use fluent assertions to validate cover checker.

---------

Co-authored-by: Paul Graham <[email protected]>
Co-authored-by: Balaji Jambulingam <[email protected]>
Co-authored-by: Liam Crossley <[email protected]>
Co-authored-by: Siji Odunlami <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: harsh-dfe <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: Najam Muhammad <[email protected]>
* added AgreementNotSigned

* 1. In case of closed vacancy, the response object could not be cast into GetApprenticeshipVacancyItemResponse
This results in a vacancy item response as null. If the Email tokens are empty, then the email is not sent.

2.  Vacancy service => Separation of Concerns rule violation split this implementation as separate methods GetVacancy from FAA Api & Closed Vacancy from RAA Api

* Included NHS Vacancies count in the search Results

* Update SFA.DAS.FindAnApprenticeship.csproj

* Updated SFA.DAS.VacancyServices.Wage to version 1.0.35

* Saved Search Email alert Across England wording change

* added failed requests alert and updated app connection string

* WIP

* CSP-1763: Levels controller method to return levels from courses api.

---------

Co-authored-by: Paul Graham <[email protected]>
Co-authored-by: Balaji Jambulingam <[email protected]>
Co-authored-by: Liam Crossley <[email protected]>
Co-authored-by: Siji Odunlami <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: harsh-dfe <[email protected]>
Co-authored-by: Calum Rees <[email protected]>
Co-authored-by: Najam Muhammad <[email protected]>
…corporated logic to get location item from location lookup service.

Remove retired training courses endpoint.
…stResponse class object. Updated unit test coverage accordingly.
Comment on lines +41 to +46
new GetCourseTrainingProvidersCountRequest(
[request.Id],
null,
null,
null
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am assuming that this will be refactored when we pick up course details page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants