Skip to content

Conversation

@livzorn
Copy link
Contributor

@livzorn livzorn commented Jul 22, 2021

Small fix - I added one line to exclude centres with kbSelfRegister=0 from the select options in the delegate self-registration journey.

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.

Change itself looks fine, can we just add a small unit test to for this case in the same pattern as Get_active_centres_should_not_contain_an_inactive_centre

@livzorn
Copy link
Contributor Author

livzorn commented Jul 22, 2021

@AlexJacksonDS Thanks! I added a unit test, let me know if it looks okay.

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.

Looks good

@livzorn livzorn force-pushed the HEEDLS-548-exclude-centres-self-registration branch from 9e30922 to be7d3bf Compare July 22, 2021 13:22
@"SELECT CentreID, CentreName
FROM Centres
WHERE Active = 1
AND kbSelfRegister = 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Happy to put this in the db query level given that this is only used in registration, but I think we should modify the name of the method so it's clear that we're getting the centre options for delegate self registration (rather than a true active centres list, which should technically only have the Active = 1 constraint)

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 idea! I changed the method name to account for this

@livzorn livzorn force-pushed the HEEDLS-548-exclude-centres-self-registration branch from be7d3bf to 994c16c Compare July 23, 2021 09:51
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! I'd probably remove the "Active" from the method name as it's unnecessary with the extra specification we've added, but no need for rereview 👍

@livzorn livzorn merged commit 3af69fd into master Jul 23, 2021
@stellake stellake deleted the HEEDLS-548-exclude-centres-self-registration branch July 23, 2021 14:28
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