I modified GetActivitiesForDelegateEnrolment, store procedure by adding the CentreApplications table to the store procedure, so that courses that are unpublish to the centre will not reflect in the ‘Available activities’/'Enrol on activity', completed activities, as it is in Course set up & Delegate activities
I added a field CheckUnpublishedCourse to GetCompletedCoursesForCandidate store procedure, to know courses that are not unpublish from publish
I modified selectDelegateCourseInfoQuery by adding the CentreApplications table to the query
I added CheckUnpublishedCourse property to CompletedLearningItem.cs class
I hide the lunch course button where the course is unpublish on CompletedCourseCard.cshtml page
Screenshots
Developer checks
(Leave tasks unticked if they haven't been appropriate for your ticket.)
I have:
[x] Run the formatter and made sure there are no IDE errors (see info on Text Editor settings to avoid whitespace changes)
[ ] Written tests for the changes (accessibility tests, unit tests for controller, data services, services, view models, etc)
[x] Manually tested my work with and without JavaScript
[ ] Tested any Views or partials created or changed with Wave Chrome plugin and addressed any valid accessibility issues
[ ] Updated/added documentation in Confluence and/or GitHub Readme. List of documentation links added/changed:
[ ] Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken
[x] Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks.
JIRA link
https://hee-tis.atlassian.net/browse/TD-4243
Description
I modified GetActivitiesForDelegateEnrolment, store procedure by adding the CentreApplications table to the store procedure, so that courses that are unpublish to the centre will not reflect in the ‘Available activities’/'Enrol on activity', completed activities, as it is in Course set up & Delegate activities I added a field CheckUnpublishedCourse to GetCompletedCoursesForCandidate store procedure, to know courses that are not unpublish from publish I modified selectDelegateCourseInfoQuery by adding the CentreApplications table to the query I added CheckUnpublishedCourse property to CompletedLearningItem.cs class I hide the lunch course button where the course is unpublish on CompletedCourseCard.cshtml page
Screenshots
Developer checks
(Leave tasks unticked if they haven't been appropriate for your ticket.)
I have: