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

migration to convert zipcode data type to string #12978

Merged
merged 0 commits into from
Jun 14, 2023

Conversation

jtmst
Copy link
Contributor

@jtmst jtmst commented Jun 13, 2023

Note: Delete the description statements, complete each step. None are optional, but can be justified as to why they cannot be completed as written. Provide known gaps to testing that may raise the risk of merging to production.

Summary

  • Updates the zip code data type in std_zipcodes to be a string
  • zipcodes originally stored as ints result in leading 0's being removed and zipcodes being stored inaccurately.
  • per feedback given on this pr 13558 income limits logic #12877

NOTE

Related issue(s)

Testing done

  • ran migration locally and verified correct change in schema

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

  • 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 or Grafana (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

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?

@jtmst jtmst requested review from a team as code owners June 13, 2023 13:34
@va-vsp-bot va-vsp-bot requested a deployment to 14059-zipcode-data-migration/main/main June 13, 2023 13:40 In progress
@jtmst jtmst force-pushed the 14059-zipcode-data-migration branch from d30e571 to 83ce187 Compare June 13, 2023 13:44
@va-vsp-bot va-vsp-bot requested a deployment to 14059-zipcode-data-migration/main/main June 13, 2023 13:44 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to 14059-zipcode-data-migration/main/main June 13, 2023 13:46 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to 14059-zipcode-data-migration/main/main June 13, 2023 14:05 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to 14059-zipcode-data-migration/main/main June 13, 2023 14:05 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to 14059-zipcode-data-migration/main/main June 13, 2023 14:14 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to 14059-zipcode-data-migration/main/main June 13, 2023 14:14 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to 14059-zipcode-data-migration/main/main June 14, 2023 16:47 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to 14059-zipcode-data-migration/main/main June 14, 2023 16:48 Inactive
@github-actions
Copy link

1 Error
🚫

Modified files in db/ should be the only files checked into this PR.

File Summary

DB File(s)

  • db/migrate/20230613132004_zipcode_data_type_to_string.rb

  • db/schema.rb

    App File(s)

    • spec/jobs/income_limits/std_zipcode_import_spec.rb

Database migrations do not run automatically with vets-api deployments. Application code must always be
backwards compatible with the DB, both before and after migrations have been run. For more info:

Generated by 🚫 Danger

@va-vsp-bot va-vsp-bot requested a deployment to 14059-zipcode-data-migration/main/main June 14, 2023 17:21 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to 14059-zipcode-data-migration/main/main June 14, 2023 17:28 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to 14059-zipcode-data-migration/main/main June 14, 2023 17:58 In progress
@jeremy6d jeremy6d merged commit a01113b into master Jun 14, 2023
@jeremy6d jeremy6d deleted the 14059-zipcode-data-migration branch June 14, 2023 18:10
@jeremy6d
Copy link
Contributor

Bypassed the prohibition on migration PRs not having changes in other sectors of the codebase to prevent Josh from having to submit 3 PRs for a simple change

ryan-mcneil pushed a commit that referenced this pull request Dec 11, 2023
* migration to convert zipcode data type to string

* updated sidekiq jobs and tests for zipcode to string change

* revert import and spec

* temporarily skip tests

* lint

---------

Co-authored-by: Jeremy Weiland <jeremy6d@users.noreply.github.com>
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