Skip to content

Conversation

@Auldrin-Possa
Copy link
Collaborator

JIRA link

TD-4327

Description

Code added to verify if supervisor delegate exists.
Used existing error page, as there is 'Forbidden' error page is being used for 403 status code in the application.
Note - For centres with learner role only, an Access Denied page will be displayed.

Screenshots

image


Developer checks

I have:

  • 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)
  • 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
  • Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks.

sherif-olaboye and others added 30 commits October 24, 2024 09:04
…ures/TD-4879-LimittheselfassessmentsreturnedinDelegateActivitiesbyadmincoursecategory

TD-4879 Limit the self assessments returned in Delegate Activities by admin course category
…ure/TD-4882-Limit-selfassessments-that-supervisor-enrol

TD-4882-Limit the self assessments that a supervisor can enrol staff on to those matching their assigned category
…ure/TD-4878-Limit-the-list-of-supervisors

TD-4878-Limit the list of supervisors returned in the Tracking System enrol on self assessment
…include only those in their assigned category
…thesupervisorMyStaffviewselfassessmentcountstoincludeonlythoseintheirassignedcategory
…t CategoryID in the GetAllSupervisorsForSelfAssessmentId(+)
…ures/TD-4881-LimitthesupervisorMyStaffviewselfassessmentcountstoincludeonlythoseintheirassignedcategory

TD-4881 Limit the supervisor My Staff view self assessment counts to include only those in their assigned category
…ure/TD-4883-Limit-the-SelfAssessments-returned-in-supervisor-View

TD-4883-Limit the self assessments returned in the supervisor View self assessments view to those that match their assigned category
…ure/TD-4887-Limit-supervisors-ManageSupervisors-QuickAdd

TD-4887- Limit the supervisors that are available in the Manage Supervisors "Quick add" list to supervisors with a category that matches the self assessment
…ure/TD-4888-Limit-supervisors-AddNewSupervisor

TD-4888-Limit the supervisors that are available to add to self assessment from "Manage supervisors" to supervisors with a matching category
…ure/TD-4972-Limit-existing-supervisors-in-Manage-Supervisors

TD-4972-Limit the list of existing supervisors in the Manage Supervisors list to supervisors with a matching category
…s/TD-4991-UpdatePRTemplate

TD-4991 Updates the pull request template
…ure/TD-4974-Limit-supervisors-Request-sign-off

TD-4974-Limit the list of supervisors in the Request sign off view to supervisors with a matching category
…sor role, assign them to the same category as the supervisor
…irmation view to supervisors with a matching category
…ure/TD-4975-Limit-supervisor-signoff-confirmation-Request

TD-4975-Limit the supervisor task list to show only sign off and confirmation requests that are for self assessments that match the supervisors category
…ures/TD-4889-WhenasupervisorpromotesalearnertotheNominatedsupervisorrole,assignthemtothesamecategoryasthesupervisor

TD-4889 When a supervisor promotes a learner to the Nominated supervisor role, assign them to the same category as the supervisor
…ures/TD-4973-LimitthelistofsupervisorsintheRequestproficiencyconfirmationviewtosupervisorswithamatchingcategory

TD-4973 Limit the list of supervisors in the Request proficiency confirmation view to supervisors with a matching category
rshrirohit and others added 11 commits November 6, 2024 09:12
…ures/TD-4884-Preventsupervisorsfromviewing/reviewingselfassessmentsinacategorythatdoesn'tmatchtheirowns

TD-4884 Prevent supervisors from viewing/reviewing self assessments in a category that doesn't match their own
…elf assessments in a category that doesn't match their own through URL manipulation.
…pposed to be made for Delegate Activities and not Activity Delegates, adding specific logic to the Self Assessment service layer and showing Unauthorised activity based on return type.
…s/TD-5020-ResolvingBuildError

TD-5020 Resolving build failure
…s/TD-4880-Prevent_Admin_View_ActivityDelegates

Prevent administrators from viewing Activity Delegates for self assessments in a category that doesn't match their own
@Auldrin-Possa Auldrin-Possa marked this pull request as ready for review November 11, 2024 14:45
@sherif-olaboye
Copy link
Contributor

The PR looks ok

Copy link
Contributor

@kevwhitt-hee kevwhitt-hee left a comment

Choose a reason for hiding this comment

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

This looks good. I think the wording for the 403 page suggested in the ticket might be more helpful than the existing wording. Was there a reason we left it as is?

@Auldrin-Possa
Copy link
Collaborator Author

branch code conflicts

@Auldrin-Possa Auldrin-Possa deleted the Develop/Fix/TD-4327-Confirmation-link-other-centres-Issue branch November 14, 2024 14:48
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.

6 participants