Skip to content

Conversation

@JBsoftwire
Copy link
Contributor

JIRA link

HEEDLS-1038

Description

A number of methods have been changed to no longer exclude Archived courses. Some methods have been split into exclusionary and non-exclusionary versions. Only endpoints associated with the CourseSetup section of the Tracking System should exclude archived courses. Methods addressing a specific customisation or progress entry by ID should not exclude archived courses regardless of section. This ticket only pertains to the Tracking System.

Screenshots

N/A


Developer checks

(Leave tasks unticked if they haven't been appropriate for your ticket.)

I have:

  • Run the formatter and made sure there are no IDE errors.
  • Written tests for the changes (accessibility tests, unit tests for controller, data services, services, view models, etc)
  • Manually tested my work with and without JavaScript. Full manual testing guidelines can be found here: https://softwiretech.atlassian.net/wiki/spaces/HEE/pages/6703648740/Testing
  • Updated/added documentation in Swiki and/or Readme. Links (if any) are below:
  • Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken.
  • Scanned over my own MR to ensure everything is as expected.

$@"{selectDelegateCourseInfoQuery}
WHERE pr.CandidateID = @delegateId
AND ap.ArchivedDate IS NULL
--AND ap.ArchivedDate IS NULL
Copy link
Contributor

Choose a reason for hiding this comment

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

Commented out code - can you remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is actually something that slipped past my notice due to how I relied on the Rider syntax highlighting. I'll just check whether this one really wants to be removed (the one below does because it searches by progressId directly).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It goes to the ViewDelegateController, so I'll remove it.

$@"{selectDelegateCourseInfoQuery}
WHERE pr.ProgressID = @progressId
AND ap.ArchivedDate IS NULL
--AND ap.ArchivedDate IS NULL
Copy link
Contributor

Choose a reason for hiding this comment

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

Commented out code - can you remove?

);
}

public IEnumerable<CourseStatisticsWithAdminFieldResponseCounts>
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be private

Copy link
Contributor

@SteveJacksonSoft SteveJacksonSoft left a comment

Choose a reason for hiding this comment

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

Nice, merge away!

@JBsoftwire JBsoftwire merged commit bdf3fea into master Aug 19, 2022
@JBsoftwire JBsoftwire deleted the HEEDLS-1038-reinstate-archived-courses branch August 19, 2022 14:12
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.

2 participants