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

Make association two-way #19057

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Make association two-way #19057

merged 1 commit into from
Oct 25, 2024

Conversation

kayline
Copy link
Contributor

@kayline kayline commented Oct 24, 2024

Summary

  • This work is behind a feature toggle (flipper): NO - model existence is not behind a flipper. All behavior is.
  • Previously added a belongs_to to SecondaryAppealForm, needed the has_many on AppealSubmission
  • optional, dependent: destroy
  • Decision Reviews, yes

Related issue(s)

department-of-veterans-affairs/va.gov-team#95001

Testing done

  • New code is covered by unit tests
  • Could find the AppealSubmission from the SecondaryAppealForm, but not the other way
  • Create an AppealSubmission with SecondaryAppealForm in staging, verify in console that lookup works both ways

Screenshots

Note: Optional

What areas of the site does it impact?

No user facing changes, just a Rails association

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution
  • Documentation has been updated (link to documentation)
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Feature/bug has a monitor built into Datadog (if applicable)
  • If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expected
  • I added a screenshot of the developed feature

- Previous addeda belongs_to to SecondaryAppealForm, needed the has_many on AppealSubmission
- optional, dependent: destroy
Copy link
Contributor

@shaunburdick shaunburdick left a comment

Choose a reason for hiding this comment

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

LGTMMTGL

Copy link

Backend-review-group approval confirmed.

@kayline kayline merged commit 4edfb4f into master Oct 25, 2024
38 of 39 checks passed
@kayline kayline deleted the 95001-association-both-ways branch October 25, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants