Skip to content
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

HOTT-2989: Adds support for broken additional codes #619

Merged
merged 5 commits into from Apr 5, 2023

Conversation

willfish
Copy link
Member

@willfish willfish commented Apr 4, 2023

Jira link

https://transformuk.atlassian.net/browse/HOTT-2989

What?

I have added/removed/altered:

  • Enable pluck on Base model
  • Removes unused method and spec
  • Adds support for broken additional codes

Why?

I am doing this because:

  • This is to make the duty calculator make more sense to users in the interim

Copy link
Contributor

@jebw jebw left a comment

Choose a reason for hiding this comment

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

LGTM

user_additional_code_answer = user_session.additional_code_for(measure.measure_type, source)
answer = user_session.additional_code_for(measure.measure_type.id)
is_additional_code_measure = measure.id.in?(additional_code_measure_sids)
has_answer = answer == if measure.additional_code.blank?
Copy link
Contributor

Choose a reason for hiding this comment

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

measure.additional_code.presence&.code || 'none' ?

@willfish willfish merged commit f76df2a into main Apr 5, 2023
3 checks passed
@willfish willfish deleted the HOTT-2989-none-additional-code branch April 5, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants