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

Add new column use_single_step_invite_and_approve_partner_process #4071

Conversation

vincent-truong-main
Copy link
Contributor

@vincent-truong-main vincent-truong-main commented Jan 31, 2024

#3432

Part 1 of 4 PRs for this issue.

Description

In order to allow banks to invite and approve partner as a single step when additional info isn't needed, a column, use_single_step_invite_and_approve_partner_process is added in this PR.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  1. Ran specs and passed
  2. Did sanity check with booting up to ensure schema changes didn't break anything

Screenshots

Comment on lines +1 to +15
# == Schema Information
#
# Table name: events
#
# id :bigint not null, primary key
# data :jsonb
# event_time :datetime not null
# eventable_type :string
# type :string not null
# created_at :datetime not null
# updated_at :datetime not null
# eventable_id :bigint
# organization_id :bigint
# user_id :bigint
#
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The app added this by itself. Doesn't detract and adds some visibility. Figured I keep it.

@dorner
Copy link
Collaborator

dorner commented Jan 31, 2024

Is this PR ready for review? It doesn't seem to be complete. If not, please mark it as "draft".

@vincent-truong-main
Copy link
Contributor Author

vincent-truong-main commented Jan 31, 2024

Is this PR ready for review? It doesn't seem to be complete. If not, please mark it as "draft".

@dorner Nope. sorry intention was to make it draft. Thanks!

@vincent-truong-main vincent-truong-main marked this pull request as draft January 31, 2024 22:24
@vincent-truong-main vincent-truong-main changed the title Add new column use_single_step_invite_and_approve_partner_process WIP - Add new column use_single_step_invite_and_approve_partner_process Jan 31, 2024
@vincent-truong-main vincent-truong-main force-pushed the 3432-allow-banks-skip-partner-approval-process-opt-in-basis branch 2 times, most recently from b7acc4b to 6766cd1 Compare January 31, 2024 22:52
class AddUseSingleStepInviteAndApprovePartnerProcessToOrganization < ActiveRecord::Migration[7.0]
def change
add_column :organizations, :use_single_step_invite_and_approve_partner_process, :boolean
change_column_default :organizations, :use_single_step_invite_and_approve_partner_process, false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will be adding a rake task to update the current records to have default false and also a not null constraint.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You should be able to do that within the migration.

@vincent-truong-main vincent-truong-main marked this pull request as ready for review February 1, 2024 20:26
@vincent-truong-main vincent-truong-main force-pushed the 3432-allow-banks-skip-partner-approval-process-opt-in-basis branch from 6766cd1 to a0ee7ab Compare February 1, 2024 20:26
@vincent-truong-main vincent-truong-main changed the title WIP - Add new column use_single_step_invite_and_approve_partner_process Add new column use_single_step_invite_and_approve_partner_process Feb 1, 2024
@vincent-truong-main
Copy link
Contributor Author

Folding this into #4075

@vincent-truong-main vincent-truong-main deleted the 3432-allow-banks-skip-partner-approval-process-opt-in-basis branch February 2, 2024 17:54
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