-
Notifications
You must be signed in to change notification settings - Fork 1
HEEDLS-664 Mark resource as complete #799
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
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 things to change/questions.
Also I'm a bit concerned the Github Build and Test seems to have failed for the branch, but not the Jenkins build. Probably need to look into that.
DigitalLearningSolutions.Data/DataServices/LearningLogItemsDataService.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web.Tests/Controllers/LearningPortal/CurrentTests.cs
Outdated
Show resolved
Hide resolved
...Solutions.Web/ViewModels/LearningPortal/Current/SetLearningLogItemCompletionDateViewModel.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/LearningPortal/Current/MarkAsComplete.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/Current.cs
Outdated
Show resolved
Hide resolved
f26032e to
e6997c8
Compare
DigitalLearningSolutions.Web.Tests/Controllers/LearningPortal/LearningPortalControllerTests.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/Current.cs
Outdated
Show resolved
Hide resolved
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.
Few minor changes can be performed (some would have to wait for 671 to be merged, so those might need to be left for now)
DigitalLearningSolutions.Web/Controllers/LearningPortalController/Current.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/Current.cs
Outdated
Show resolved
Hide resolved
...Solutions.Web/ViewModels/LearningPortal/Current/SetLearningLogItemCompletionDateViewModel.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/LearningPortal/Current/MarkActionPlanItemAsComplete.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/LearningPortal/Current/MarkActionPlanItemAsComplete.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/LearningPortal/Current/MarkActionPlanItemAsComplete.cshtml
Outdated
Show resolved
Hide resolved
...Solutions.Web/ViewModels/LearningPortal/Current/SetLearningLogItemCompletionDateViewModel.cs
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/Current.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data/DataServices/LearningLogItemsDataService.cs
Outdated
Show resolved
Hide resolved
1cf505c to
b10f8d2
Compare
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's a very minor change to make, and a small merge conflict to deal with, but the rest looks good.
Doesn't require rereview.
| aria-describedby="@Model.Id-name-lhr"> | ||
| aria-describedby="@Model.Id-name-lhr" | ||
| asp-action="MarkActionPlanResourceAsComplete" | ||
| asp-route-learningLogItemId="@Model.Id"> |
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's a minor merge conflict here about the role="button" that I added in the 659 fix.
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.
fixed!
| using System.ComponentModel.DataAnnotations; | ||
| using DigitalLearningSolutions.Web.Helpers; | ||
|
|
||
| public class SetLearningLogItemCompletionDateFormData : IValidatableObject |
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 like the class wasn't renamed but the file was.
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.
oops, renamed
| [HttpPost] | ||
| [ServiceFilter(typeof(VerifyDelegateCanAccessActionPlanResource))] | ||
| [Route("/LearningPortal/Current/ActionPlan/{learningLogItemId:int}/MarkAsComplete")] | ||
| public IActionResult MarkActionPlanResourceAsComplete( |
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.
Sorry, just realised that this should probably have the "SetDlsSubApplication" as well in case of data validation error.
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 right, added it here
d94b400 to
19ed12d
Compare
JIRA link
HEEDLS-664
Description
Created a page for setting a completion date for a learning resource in a user's action plan. Also created a service filter for verifying a learning log item exists, for controller methods that have a learningLogItemId in the url.
Screenshots
Developer checks
(Leave tasks unticked if they haven't been appropriate for your ticket.)
I have: