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

CAPT-1689 Add start date form #2897

Merged
merged 1 commit into from
Jun 24, 2024
Merged

CAPT-1689 Add start date form #2897

merged 1 commit into from
Jun 24, 2024

Conversation

rjlynch
Copy link
Contributor

@rjlynch rjlynch commented Jun 21, 2024

Adds the form to capture the start date. Of note is the use of _assign_attributes. ActiveModel doesn't support multi part parameters so we need to include ActiveRecord::AttributeAssignment to get them. This behaviour should probably be upstreamed We may want to upstream this behaviour into the base Form class though changing the attribute assignment in the base form to support this felt out of scope of this commit.

Also this commit doesn't add the eligibility checking for invalid contract dates. We're waiting on the product team to get back to us with what this should be. When they have we'll enable the feature tests for the ineligibility.

contract-start-date.mov

@rjlynch rjlynch force-pushed the CAPT-1689/irp/start-date branch 2 times, most recently from 964267c to d24a25a Compare June 21, 2024 11:09
@rjlynch rjlynch changed the title Add start date form WIP - Add start date form Jun 21, 2024
@rjlynch rjlynch force-pushed the CAPT-1689/irp/start-date branch from d24a25a to 9b80b10 Compare June 21, 2024 15:27
@rjlynch rjlynch changed the title WIP - Add start date form Add start date form Jun 21, 2024
@rjlynch rjlynch changed the title Add start date form CAPT-1689 Add start date form Jun 21, 2024
Adds the form to capture the start date. Of note is the use of
`_assign_attributes`. ActiveModel doesn't support multi part parameters
so we need to include `ActiveRecord::AttributeAssignment` to get them.
This behaviour should probably be upstreamed into the base Form class
and the personal details form migrated to set it's mutli part parameters
with this approach, though changing the attribute assignment in the base
form to support this felt out of scope of this commit.

Also this commit doesn't add the eligibility checking for invalid
contract dates. We're waiting on the product team to get back to us with
what this should be. When they have we'll enable the feature tests for
the ineligibility.
@rjlynch rjlynch force-pushed the CAPT-1689/irp/start-date branch from 9b80b10 to c9a4a98 Compare June 24, 2024 08:03
@rjlynch rjlynch merged commit a87603f into master Jun 24, 2024
16 checks passed
@rjlynch rjlynch deleted the CAPT-1689/irp/start-date branch June 24, 2024 08:11
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