Skip to content

[_]: refactor(account): remove network_bucket_id from mail accounts - #113

Open
jzunigax2 wants to merge 2 commits into
feat/purge-suspended-accountsfrom
fix/remove-left-over-code
Open

jzunigax2 wants to merge 2 commits into
feat/purge-suspended-accountsfrom
fix/remove-left-over-code

Conversation

@jzunigax2

Copy link
Copy Markdown
Contributor
  • Created a migration to drop the network_bucket_id column from the mail_accounts table.
  • Updated MailAccount interface and model to remove references to networkBucketId.
  • Removed related methods and tests for setting networkBucketId in AccountRepository and AccountRepository tests.
  • Adjusted fixtures to reflect the removal of networkBucketId.

@coderabbitai

coderabbitai Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 6f322780-3703-425d-b9d3-50cdc9f2bb48


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jzunigax2
jzunigax2 requested a review from xabg2 August 21, 2026 20:47
@jzunigax2 jzunigax2 self-assigned this Aug 21, 2026
@jzunigax2 jzunigax2 added the migration-required A migration is included in this PR label Aug 21, 2026
…uling

- Added AccountPurgeService to handle the deletion of expired accounts based on retention policies.
- Introduced JobsModule to schedule account purging tasks using @nestjs/schedule.
- Updated configuration to enable or disable cron job execution via environment variables.
- Created tests for the account purge scheduler to ensure correct behavior during scheduled runs.
- Enhanced AccountRepository with methods to claim expired and stalled deletions.
- Updated AccountService to manage account deletion and handle related operations effectively.
- Created a migration to drop the network_bucket_id column from the mail_accounts table.
- Updated MailAccount interface and model to remove references to networkBucketId.
- Removed related methods and tests for setting networkBucketId in AccountRepository and AccountRepository tests.
- Adjusted fixtures to reflect the removal of networkBucketId.
@jzunigax2
jzunigax2 force-pushed the fix/remove-left-over-code branch from 6002c84 to 3ff53b1 Compare September 7, 2026 20:31
@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

migration-required A migration is included in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants