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

Faith non catholic flow #7235

Open
wants to merge 6 commits into
base: faith-schools-flow
Choose a base branch
from

Conversation

starswan
Copy link
Contributor

@starswan starswan commented Nov 6, 2024

Trello card URL

https://trello.com/c/MEfKqiY0/1326-faith-schools-add-religious-information-section-cofe-flow-middle-radio

Changes in this PR:

  • Is there anything specific you want feedback on?

Screenshots of UI changes:

Before

After

NonCatholicRef

Next steps:

  • Terraform deployment required?

  • New development configuration to be shared?

@starswan starswan marked this pull request as ready for review November 7, 2024 10:00
@@ -20,7 +18,7 @@ def update
job_application.update(update_params.except(:teacher_reference_number, :has_teacher_reference_number))
update_or_create_jobseeker_profile! if step == :professional_status

if redirect_to_review? && (step_process.last_of_group? || (step == :following_religion && !job_application.following_religion))
if redirect_to_review? && (step_process.last_of_group? || (step.in?(%i[catholic_following_religion non_catholic_following_religion]) && !job_application.following_religion))
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a blocker, maybe we can give this condition a name to clarify its intent?

private

def catholic_steps(job_application)
if job_application.following_religion || job_application.following_religion.nil?
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this always going to be truthy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no - it can be false. It's a tri-state - wasn't sure if it was the correct approach...?

Copy link
Contributor

@ddippolito ddippolito left a comment

Choose a reason for hiding this comment

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

Well done @starswan. This must have a been a hell of beast to crack. I'm not sure it's possible to refactor the application form without reworking the whole thing from scratch.

Base automatically changed from faith-school-catholic-flow to faith-schools-flow November 12, 2024 10:58
Copy link

Review app deployed to https://teaching-vacancies-review-pr-7235.test.teacherservices.cloud on AKS

@starswan starswan force-pushed the faith-non-catholic-flow branch 2 times, most recently from 71ff8ea to aa7b127 Compare November 12, 2024 12:03
<p class="govuk-hint">Make sure your referee has consented to providing a reference.</p>
jobseekers_job_application_non_catholic_religion_details_form:
faith: For example, Christian.
place_of_worship: For example, Westminster Abbey, Dean's Yard, London.
Copy link
Contributor

Choose a reason for hiding this comment

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

probably remove this hint text? @starswan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants