- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
HEEDLS-603 - set up supervisor delegate relation when bulk uploading … #650
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
HEEDLS-603 - set up supervisor delegate relation when bulk uploading … #650
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one question
        
          
                DigitalLearningSolutions.Data.Tests/Services/DelegateUploadFileServiceTests.cs
          
            Show resolved
            Hide resolved
        
              
          
                DigitalLearningSolutions.Data/Services/DelegateUploadFileService.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | var status = registrationDataService.RegisterDelegateByCentre(model); | ||
| switch (status) | ||
| var statusOrCandidateNumber = registrationDataService.RegisterDelegateByCentre(model); | ||
| switch (statusOrCandidateNumber) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good point - could we just tweak this to errorCodeOrCandidateNumber? That makes it a bit clearer that it's not a candidate number when an error's occurred. Currently it's not so obvious when it's a status and when it's a candidate number. No need for re-review. Unless it demands approval before letting you merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to errorCodeOrCandidateNumber. No need for re-review, so I will merge it once the checks pass.
…delegates
JIRA link
https://softwiretech.atlassian.net/browse/HEEDLS-603
Description
Added some calls to the supervisor delegate service during the bulk upload process for registrations.
Screenshots
N/A
Developer checks
(Leave tasks unticked if they haven't been appropriate for your ticket.)
I have: