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

FFS-2466: Rename cbv_flow identifier column for clarity #472

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

allthesignals
Copy link
Contributor

Ticket

Resolves FFS-2466.

Changes

Renames cbv_flow identifier column so that it's clear it can be used simply to identify the flow

Context for reviewers

It was confusing how this column was named. We use this column to identify which flow the incoming aggregator account is meant for.

Acceptance testing

  • No acceptance testing needed
    • This change will not affect the user experience (bugfix, dependency updates, etc.)
  • Acceptance testing prior to merge
    • This change can be verified visually via screenshots attached below or by sending a link to a local development environment to the acceptance tester
    • Acceptance testing should be done by design for visual changes, product for behavior/logic changes, or both for changes that impact both.
  • Acceptance testing after merge
    • This change is hard to test locally, so we'll test it in the demo environment (deployed automatically after merge.)
    • Make sure to notify the team once this PR is merged so we don't inadvertently deploy the unaccepted change to production. (e.g. :alert: Deploy block! @ffs-eng I just merged PR [#123] and will be doing acceptance testing in demo - please don't deploy until I'm finished!)

Copy link
Contributor

@tdooner tdooner left a comment

Choose a reason for hiding this comment

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

Lgtm, but, can you remove the old migration change before merging?

@@ -1,5 +1,5 @@
class AddEndUserIdColumnToCbvFlows < ActiveRecord::Migration[7.1]
def change
add_column :cbv_flows, :pinwheel_end_user_id, :uuid, default: 'gen_random_uuid()', null: false
add_column :cbv_flows, :end_user_id, :uuid, default: 'gen_random_uuid()', null: false
Copy link
Contributor

Choose a reason for hiding this comment

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

In general, not a good idea to edit migrations that have already been run, since this would break the future migration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oof, that's a mistake. My bad, thanks for catching

# Conflicts:
#	app/db/schema.rb
#	docs/app/rendered/database-schema.pdf
@allthesignals allthesignals force-pushed the wmg/2466-rename-pinwheel_end_user_id branch from 0bd5be0 to 91963b6 Compare February 27, 2025 16:12
# Conflicts:
#	app/db/schema.rb
#	docs/app/rendered/database-schema.pdf
@allthesignals allthesignals merged commit dac5ee7 into main Feb 27, 2025
15 checks passed
tdooner added a commit that referenced this pull request Feb 27, 2025
…dexing-fields-from-cbvflow

* origin/main:
  Rename cbv_flow identifier column for clarity (#472)
  FFS-2466: Rename PinwheelAccount model to PayrollAccount (#470)
tdooner added a commit that referenced this pull request Feb 27, 2025
…dexing-fields-from-cbvflow

* origin/main:
  Rename cbv_flow identifier column for clarity (#472)
  FFS-2466: Rename PinwheelAccount model to PayrollAccount (#470)
tdooner added a commit that referenced this pull request Feb 27, 2025
…dexing-fields-from-cbvflow

* origin/main:
  Rename cbv_flow identifier column for clarity (#472)
  FFS-2466: Rename PinwheelAccount model to PayrollAccount (#470)
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.

2 participants