Skip to content

[PB-6473]: feat/get usage endpoint - #111

Draft
jzunigax2 wants to merge 1 commit into
fix/missing-storage-releasesfrom
feat/get-usage-endpoint
Draft

[PB-6473]: feat/get usage endpoint#111
jzunigax2 wants to merge 1 commit into
fix/missing-storage-releasesfrom
feat/get-usage-endpoint

Conversation

@jzunigax2

Copy link
Copy Markdown
Contributor

No description provided.

- Implemented a new migration to add an index on user_id in mail_accounts for optimized queries.
- Enhanced MailUsageService to calculate charged bytes for users based on their mail storage.
- Added a new endpoint in GatewayController to retrieve mail usage for a specific user.
- Created AccountUsageResponseDto for structured response of mail usage data.
- Updated tests to cover new functionality and ensure accuracy in usage calculations.
@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 578a6d07-8e72-41eb-8210-365016b38d32

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

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