Skip to content

Conversation

@ABSinhaa
Copy link
Contributor

@ABSinhaa ABSinhaa commented Nov 3, 2025

JIRA link

TD-2987

Description

_Using this feature, user will be able to change their respective roles available for a specific self assessment, they would be able to choose whether they are 'Educator/Managers' or 'Assessors' or 'Remove Them As Supervisors from the Self Assessment'.

Screenshots

image image image image

Developer checks

(Leave tasks unticked if they haven't been appropriate for your ticket.)

I have:

  • Run the IDE auto formatter on all files I’ve worked on and made sure there are no IDE errors relating to them
  • Written or updated tests for the changes (accessibility ui tests for views, tests for controller, data services, services, view models created or modified) and made sure all tests are passing
  • Manually tested my work with and without JavaScript (adding notes where functionality requires JavaScript)
  • Tested any Views or partials created or changed with Wave Chrome plugin. Addressed any valid accessibility issues and documented any invalid errors
  • Updated my Jira ticket with testing notes, including information about other parts of the system that were touched as part of the MR and need to be tested to ensure nothing is broken
  • Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks in the GitHub PR ‘Files Changed’ tab
    Either:
  • Documented my work in Confluence, updating any business rules applied or modified. Updated GitHub readme/documentation for the repository if appropriate. List of documentation links added/changed:
  • Confirmed that none of the work that I have undertaken requires any updates to documentation

…lf assessment interface for the user within the supervisor module.
@ABSinhaa ABSinhaa marked this pull request as ready for review November 3, 2025 18:17
public List<int> GetCandidateAssessmentSupervisorVerifications(int supervisorDelegateId)
{
var verificationIds = new List<int>();
verificationIds = [.. connection.Query<int>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this a typo here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's not a typo, [..] is a list shorthand operator. Hope you were referring to this.

}
if (model.SupervisorRoleOptions.SelectedValue == "RemoveAsSupervisor")
{
var removed = supervisorService.RemoveCandidateAssessmentSupervisor(model.CandidateAssessmentID, model.SupervisorDelegateID);
Copy link
Collaborator

@rshrirohit rshrirohit Nov 4, 2025

Choose a reason for hiding this comment

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

variable assigned but never used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed it.

Copy link
Collaborator

@rshrirohit rshrirohit left a comment

Choose a reason for hiding this comment

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

In the first screenshot, for step2 we see Role as supervising but still see an action for Supervise?
Please see a couple of other inline comments as well.

Copy link
Collaborator

@rshrirohit rshrirohit left a comment

Choose a reason for hiding this comment

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

I tried in my local. Logged in as a learner and identified a supervisor for a self assessment.
Then logged in as the supervisor -
image
Roles says Not supervising which I am right now, and no action link

Copy link
Collaborator

@Auldrin-Possa Auldrin-Possa left a comment

Choose a reason for hiding this comment

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

  1. Supervisor.cs - Code logic to display role seems to be incorrect. @kevwhitt-hee Please have a look.

  2. 'Change role' action link show/hide - logic incomplete and not based on Ireland release. This code may not have been tested in the Ireland release branch. Further testing was not possible locally as the Change Role link was not visible.

… comments to the code, changing the selfassessmentsupervisorRoleIds on change role feature.
@ABSinhaa
Copy link
Contributor Author

I have tried to make changes in order to accommodate the comments received from @rshrirohit and @Auldrin-Possa. There seems to be an existing bug with the supervisor role and yet displaying the 'Supervise' action link for that profile assessment which unfortunately, I couldn't undertake.

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.

4 participants