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

Introduces journey session model #2734

Merged
merged 1 commit into from
May 9, 2024

Conversation

rjlynch
Copy link
Contributor

@rjlynch rjlynch commented May 8, 2024

As part of the efforts to simplify multi claim handling we want to move
away from creating a claim at the start of the journey and instead only
create the claim at the final step where the teacher submits their
answers.

This commit introduces a new model Journeys::Session which will be
used to store the answers entered by the teacher. The answers will be
stored in a json column on the new model, once validated by the form
objects.

Journeys::Session is currently the best name we could come up with but
we're all ears for any better suggestions.

Copy link

github-actions bot commented May 8, 2024

@rjlynch rjlynch requested review from slorek, felixclack and kenfodder May 8, 2024 09:20
@rjlynch rjlynch force-pushed the CAPT-1635/initial-journey-session-setup branch from d472974 to 3e6461e Compare May 8, 2024 09:23
Copy link
Contributor

@slorek slorek left a comment

Choose a reason for hiding this comment

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

Don't forget we'll need to expunge old data periodically :)

@rjlynch
Copy link
Contributor Author

rjlynch commented May 8, 2024

Don't forget we'll need to expunge old data periodically :)

Yeah I've got a ticket for that 👍

@rjlynch rjlynch force-pushed the CAPT-1635/initial-journey-session-setup branch from 3e6461e to 8c19425 Compare May 8, 2024 09:59
@rjlynch rjlynch force-pushed the CAPT-1635/initial-journey-session-setup branch 2 times, most recently from 2d44766 to ed9223a Compare May 9, 2024 12:30
As part of the efforts to simplify multi claim handling we want to move
away from creating a claim at the start of the journey and instead only
create the claim at the final step where the teacher submits their
answers.

This commit introduces a new model `Journeys::Session` which will be
used to store the answers entered by the teacher. The answers will be
stored in a json column on the new model, once validated by the form
objects.

`Journeys::Session` is currently the best name we could come up with but
we're all ears for any better suggestions.
@rjlynch rjlynch force-pushed the CAPT-1635/initial-journey-session-setup branch from ed9223a to c56fc38 Compare May 9, 2024 13:32
@rjlynch rjlynch merged commit 20e2392 into master May 9, 2024
13 checks passed
@rjlynch rjlynch deleted the CAPT-1635/initial-journey-session-setup branch May 9, 2024 14:47
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.

5 participants