-
Notifications
You must be signed in to change notification settings - Fork 1
Heedls 513 group delegates #530
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
Conversation
|
I've thought of something extra that I think should be implemented here that isn't explicitly stated on the ticket while doing HEEDLS-516 (the group courses counterpart of this page). As is, you can currently access any group if you know the ID regardless of centre. I'm going to add a check that returns a not found if the GroupID is not for the correct centre. This wasn't necessary for the old system as it wasn't a separate page, so it might have been missed during the scoping phase. It would be reasonably easy to bring that into this MR if we want, but will leave it for now. |
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.
I've been picky. Sorry some of the comments are fairly blunt - my communication skills are lacking today. Read'em with a smile.
...gSolutions.Web/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegatesViewModel.cs
Show resolved
Hide resolved
...gSolutions.Web/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegatesViewModel.cs
Show resolved
Hide resolved
...ons.Web/ViewModels/TrackingSystem/Delegates/DelegateGroups/DelegateGroupsSideNavViewModel.cs
Outdated
Show resolved
Hide resolved
...talLearningSolutions.Web/Views/TrackingSystem/Delegates/DelegateGroups/GroupDelegates.cshtml
Outdated
Show resolved
Hide resolved
...Web.Tests/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegatesViewModelTests.cs
Outdated
Show resolved
Hide resolved
...Web.Tests/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegatesViewModelTests.cs
Outdated
Show resolved
Hide resolved
...Web.Tests/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegatesViewModelTests.cs
Outdated
Show resolved
Hide resolved
...Web.Tests/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegatesViewModelTests.cs
Outdated
Show resolved
Hide resolved
....Web.Tests/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegateViewModelTests.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/NBuilderHelpers/NBuilderAlphabeticalPropertyNamingHelper.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/NBuilderHelpers/NBuilderAlphabeticalPropertyNamingHelper.cs
Outdated
Show resolved
Hide resolved
...Web.Tests/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegatesViewModelTests.cs
Outdated
Show resolved
Hide resolved
...Web.Tests/ViewModels/TrackingSystem/Delegates/DelegateGroups/GroupDelegatesViewModelTests.cs
Outdated
Show resolved
Hide resolved
|
I'm off on Monday, so I'll move this over to TL review. |
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.
A few minor questions.
| return connection.Query<GroupDelegate>( | ||
| @"SELECT | ||
| GroupDelegateID, | ||
| GroupID, |
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.
Trivial, but is there a reason these are indented?
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.
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.
I'll just try re-indenting them, see if it fixes it.
| { | ||
| return connection.Query<string>( | ||
| @"SELECT | ||
| GroupLabel |
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.
Even more trivial, but that this indentation is inconsistent with (most of) the above is distracting me.
| 1, | ||
| "Group name", | ||
| groupDelegates, | ||
| 1 |
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.
Maybe I don't properly understand this, but the test name claims it is defaulting to returning the first page, but this looks like an explicit request for the first page.

JIRA link
https://softwiretech.atlassian.net/browse/HEEDLS-513
Description
Adds a new page to display all the delegates within a group as a paginated list of NHS expanders.
Screenshots
Developer checks
I have: