-
Notifications
You must be signed in to change notification settings - Fork 70
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
PBP 103350 Migrations for new form submissions and attempts tables #21205
Conversation
@danlim715 The first thing that jumps out to me is that both of these sets of tables have identical, or almost identical, columns. Could we not just have two tables and add a |
@balexandr I agree with the excessively DRY columns, but Wayne and Matt K specifically said they wanted to avoid STI at all costs cuz they didn't want null columns, especially cuz they foresee having to expand the tables with more service-specific attributes in the future. This is why I looked into delegated types and heavily considered implementing it into this setup since we would be able to eliminate the DRY columns but still allow for service-specific fields. But we discussed and concluded that using delegated types might be overkill for our use case, since the list of submission service types won't be growing anytime soon and we won't even leverage all the benefits of STI i.e. pagination, since we're not displaying this data. Plus, the setup and associations required for delegated types would make things more confusing and harder to maintain. But if you also want to advocate for usage of delegated types, then I'm with you. |
Ahh okay I guess it;s safer this way and easier to query if need be especially if it plans to grow in different directions. |
It looks like SavedClaim has stuff for the encrypted columns on the model and the table. Do we need that here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'other' file danger is complaining about is the bpds readme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please hold off on merging this.
Can we resolve conflicts and push it for approval? |
dbc5f4a
to
c5ea649
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better! GTG
Danger is failing due to the README updates going out with the migration changes (see danger failure) |
db/migrate/20250312085154_create_lighthouse_submission_attempts.rb
Outdated
Show resolved
Hide resolved
db/migrate/20250312085154_create_lighthouse_submission_attempts.rb
Outdated
Show resolved
Hide resolved
82920b4
to
ea00b29
Compare
ea00b29
to
8da3ab4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updates look good ✅
Summary
Related issue(s)
Testing done
Screenshots
Note: Optional
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas)
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?