-
Notifications
You must be signed in to change notification settings - Fork 1
HEEDLS-445 Edit course options #694
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-445 Edit course options #694
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.
Still a bunch of things to tackle.
...gSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/_CourseOptionsExpandable.cshtml
Show resolved
Hide resolved
...LearningSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/EditCourseOptions.cshtml
Outdated
Show resolved
Hide resolved
...LearningSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/EditCourseOptions.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/TrackingSystem/CourseSetup/ManageCourseController.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/DataServices/CourseDataServiceTests.cs
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/DataServices/CourseDataServiceTests.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/DataServices/CourseDataServiceTests.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/DataServices/CourseDataServiceTests.cs
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
|
|
||
| public EditCourseOptionsViewModel() { } |
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.
From before: there is a subtlety here that is easy to miss.
The formatter will preserve any manually entered spaces. So running the formatter will keep the space you have added.
However, if you were to remove the space, running the formatter would not automatically re-add the space. That is the issue we are trying to solve here. We want the formatter to automatically add the space.
In order for that to happen, we need to change the formatter settings. These are stored in the .editorconfig file and can be edited interactively from:
Resharper options > Code Editing > General Formatter Style > Edit .editorconfig interactively
You then need to change the appropriate option so that the space is automatically added and save it to the .editorconfig file.
Let me know if you have any difficulty with this.
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 ran the formatter. Thanks for the advice. Yes, I have configured it 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.
Could you configure it so that the .editorconfig registers the change? That way when this gets merged into master everyone will have it formatted consistently.
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.
Some things need further changes and some things still need changing that have been missed. Any comments that have not been unresolved need some changes.
Also, there is a unit test failing. It is the one I mentioned in a missed comment that could be removed, so it can be easily dealt with. But in future you really should run all unit tests and make sure there aren't any failures before getting something re-reviewed.
DigitalLearningSolutions.Data.Tests/DataServices/CourseDataServiceTests.cs
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/DataServices/CourseDataServiceTests.cs
Outdated
Show resolved
Hide resolved
...gSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/_CourseOptionsExpandable.cshtml
Show resolved
Hide resolved
...LearningSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/EditCourseOptions.cshtml
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
|
|
||
| public EditCourseOptionsViewModel() { } |
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.
Could you configure it so that the .editorconfig registers the change? That way when this gets merged into master everyone will have it formatted consistently.
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.
Still a couple of things from before that I have left the comments unresolved for.
One is on the ManageCourseControllerTests file (the comment might be obscured in a Hidden Conversations block)
The other is the .editorconfig file is still not showing any changes. I'm happy to lend a hand here if you'd like.
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.
Nice! Feel free to merge.
JIRA link
https://softwiretech.atlassian.net/browse/HEEDLS-445
Description
Added new page that will allow user to edit course options
Screenshots
Developer checks
(Leave tasks unticked if they haven't been appropriate for your ticket.)
I have: