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

veteran_representatives Migration #16377

Merged
merged 17 commits into from
Apr 18, 2024

Conversation

stevenjcumming
Copy link
Contributor

@stevenjcumming stevenjcumming commented Apr 17, 2024

Summary

  • Remove dob_ciphertext and ssn_ciphertext columns from veteran_representatives table. These encrypted fields were indirectly causing an issue with the KMS key rotation job.
  • Remove encrypted_kms_key column from veteran_representatives table
  • Remove precision: nil from schema. Rails treats nil as default value: 6. So precision: nil is no longer necessary as of Rails 7.1

Related issue(s)

Testing done

  • test suite passes

Acceptance Criteria

  • dob_ciphertext, ssn_ciphertext, encrypted_kms_key are removed from the schema

Copy link

github-actions bot commented Apr 17, 2024

1 Warning
⚠️ This PR changes 257 LoC (not counting whitespace/newlines).

In order to ensure each PR receives the proper attention it deserves, we recommend not exceeding
200. Expect some delays getting reviews.

File Summary

Files

  • db/migrate/20240417130647_remove_dob_and_ssn_from_veteran_representatives.rb (+9/-0)

  • db/schema.rb (+122/-126)

    Note: We exclude files matching the following when considering PR size:

    *.csv, *.json, *.tsv, *.txt, Gemfile.lock, app/swagger, modules/mobile/docs, spec/fixtures/, spec/support/vcr_cassettes/, modules/mobile/spec/support/vcr_cassettes/, db/seeds, modules/vaos/app/docs, modules/meb_api/app/docs, modules/appeals_api/app/swagger/, *.bru
    

Big PRs are difficult to review, often become stale, and cause delays.

Generated by 🚫 Danger

@va-vfs-bot va-vfs-bot temporarily deployed to sjc-veteran-representative-migration/main/main April 17, 2024 13:20 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to sjc-veteran-representative-migration/main/main April 17, 2024 14:09 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to sjc-veteran-representative-migration/main/main April 17, 2024 15:29 Inactive
@@ -598,28 +598,27 @@
t.datetime "updated_at", null: false
t.datetime "flagged_value_updated_at"
t.index ["ip_address", "representative_id", "flag_type", "flagged_value_updated_at"], name: "index_unique_constraint_fields", unique: true
t.index ["ip_address", "representative_id", "flag_type"], name: "index_unique_flagged_veteran_representative", unique: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this made its way back in the file with the same pr that added the precison: nil.

We don't need it and it was originally removed in this pr

Copy link
Contributor

@gabezurita gabezurita left a comment

Choose a reason for hiding this comment

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

LGTM! Seems like we also removed code using ssn and dob in another PR

Copy link
Contributor

@rmtolmach rmtolmach left a comment

Choose a reason for hiding this comment

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

Thanks for running this down, Steven!

@stevenjcumming stevenjcumming merged commit c3742cf into master Apr 18, 2024
20 checks passed
@stevenjcumming stevenjcumming deleted the sjc-veteran-representative-migration branch April 18, 2024 19:53
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.

6 participants