Skip to content

deposits refactor completions (partial)#3328

Draft
gilgardosh wants to merge 7 commits into
mainfrom
bank-deposit-better-handle-completion
Draft

deposits refactor completions (partial)#3328
gilgardosh wants to merge 7 commits into
mainfrom
bank-deposit-better-handle-completion

Conversation

@gilgardosh

Copy link
Copy Markdown
Collaborator

No description provided.

@gilgardosh
gilgardosh marked this pull request as draft April 15, 2026 08:16
@gilgardosh
gilgardosh temporarily deployed to accounter-fullstack April 15, 2026 08:16 — with GitHub Actions Inactive
@gilgardosh gilgardosh self-assigned this Apr 15, 2026
@gilgardosh
gilgardosh temporarily deployed to accounter-fullstack April 15, 2026 08:17 — with GitHub Actions Inactive

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new database migration to update the charges_bank_deposits table by replacing the deposit_id column with a new UUID-based column, along with adding a foreign key constraint and an index. Review feedback identifies a naming inconsistency in run-pg-migrations.ts where the imported variable name's timestamp does not match the migration's filename.

import migration_2026_04_13T10_00_00_add_business_dates_to_user_context from './actions/2026-04-13T10-00-00.add-business-dates-to-user-context.js';
import migration_2026_04_13T12_00_00_annual_audit_step_status from './actions/2026-04-13T12-00-00.annual-audit-step-status.js';
import migration_2026_04_14T10_00_00_bank_deposits_table from './actions/2026-04-14T10-00-00.bank-deposits-table.js';
import migration_2026_04_14T10_00_00_bank_deposits_table2 from './actions/2026-04-14T11-00-00.bank-deposits-table2.js';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The variable name migration_2026_04_14T10_00_00_bank_deposits_table2 is inconsistent with the actual timestamp in the migration's filename (11-00-00). It should be updated to migration_2026_04_14T11_00_00_bank_deposits_table2 to match the file and follow the established naming convention in this repository.

Suggested change
import migration_2026_04_14T10_00_00_bank_deposits_table2 from './actions/2026-04-14T11-00-00.bank-deposits-table2.js';
import migration_2026_04_14T11_00_00_bank_deposits_table2 from './actions/2026-04-14T11-00-00.bank-deposits-table2.js';

migration_2026_04_13T10_00_00_add_business_dates_to_user_context,
migration_2026_04_13T12_00_00_annual_audit_step_status,
migration_2026_04_14T10_00_00_bank_deposits_table,
migration_2026_04_14T10_00_00_bank_deposits_table2,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Update the variable name in the MIGRATIONS array to match the corrected import name (using the 11_00_00 timestamp).

Suggested change
migration_2026_04_14T10_00_00_bank_deposits_table2,
migration_2026_04_14T11_00_00_bank_deposits_table2,

@gilgardosh
gilgardosh force-pushed the bank-deposit-better-handle branch from 479fdb9 to e8417b7 Compare April 15, 2026 08:30
Base automatically changed from bank-deposit-better-handle to main April 15, 2026 08:30
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.

1 participant