Skip to content

Conversation

@DanBloxham-sw
Copy link
Contributor

Ran all unit tests.
Tested in Chrome, IE11, Firefox, Edge.
Tested with mobile view/zoom, screen reader, google lighthouse

I've left a few comments on relevant bits of code to highlight potential issues.

Screen shots:

Desktop:

Desktop Top courses

Mobile:

Copy link
Contributor

@AlexJacksonDS AlexJacksonDS left a 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

Comment on lines 14 to 15
private readonly ICourseService CourseService;
private const int NumberOfTopCourses = 10;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this naming change intentional?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, highlighted the wrong line. The CourseService

Copy link
Contributor Author

@DanBloxham-sw DanBloxham-sw Jul 2, 2021

Choose a reason for hiding this comment

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

With the configuration -> Configuration change on the view, I changed my resharper settings so that it would be preferred as uppercase rather than lowercase (Code editing -> C# -> Naming style -> Instance Fields (private) = UpperCamelCase rather than lowerCamelCase). This then suggested that courseService should be CourseService. Pretty sure that most other files use lowerCamelCase for these private fields, so I'm not sure why we are only seeing this issue now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah the setting for at least us (and maybe everyone else except Stella?) says that it should be courseService & configuration.
Whereas Stella was getting Fields (not private) errors with lower case configuration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well I'll just stick with what we've got for other files then. Reverted CourseService back to courseService. Kept Configuration as Configuration.

Copy link
Contributor

@AlexJacksonDS AlexJacksonDS left a comment

Choose a reason for hiding this comment

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

I guess we just have to deal with our IDE warning since other seem to be working correctly. Might try reinstalling VS and Resharper at some point to see if it fixes it.

Copy link
Contributor

@stellake stellake left a comment

Choose a reason for hiding this comment

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

Nice! Only a few comments :)

<span class="nhsuk-table-responsive__heading">Delegates </span>@course.DelegateCount
</td>
<td role="cell" class="nhsuk-table__cell nhsuk-u-padding-left-2 cell-right-padding">
<span class="nhsuk-table-responsive__heading">Pass rate </span>@course.PassRate %
Copy link
Contributor

Choose a reason for hiding this comment

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

This is super minor, but the old site does not have space before the "%" symbol

this.courseDataService = courseDataService;
}

public IEnumerable<CourseStatistics> GetTopCourseStatisticsAtCentreForCategoryId(int centreId, int categoryId)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the name "GetTopCourseStatistics" would be sufficient as the centreId & cetegoryId are already present in params (just to make the name a bit easier to read).

cu.CentreID,
cu.Active,
cu.AllCentres,
ap.ASPMenu,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we still pull this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good spot, forgot to get rid of it here. Will do that now.

Copy link
Contributor

@stellake stellake left a comment

Choose a reason for hiding this comment

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

Looks good - a comment about the ASPMenu still in the SQL, but happy to be merged without rereview 👍

@DanBloxham-sw DanBloxham-sw merged commit f6dee83 into master Jul 6, 2021
@DanBloxham-sw DanBloxham-sw deleted the HEEDLS-470-TrackingSystemCentreTopCoursesPage branch July 6, 2021 09:20
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.

3 participants