Skip to content

Release/v0.3.0#72

Merged
jhonatapers merged 5 commits intomainfrom
release/v0.3.0
Aug 26, 2025
Merged

Release/v0.3.0#72
jhonatapers merged 5 commits intomainfrom
release/v0.3.0

Conversation

@jhonatapers
Copy link
Copy Markdown
Member

This pull request introduces a new feature to provide an aggregated summary of drive quotas, including total allocated, used, and available quotas, as well as the total number of members. It also includes several supporting changes, such as API additions, gateway and repository enhancements, and some naming corrections for consistency.

New Quota Summary Feature

  • Added the GetQuotasSummaryUseCase and its implementation DefaultGetQuotasSummaryUseCase to calculate the total number of members, total allocated quota, total used storage, and total available quota. [1] [2] [3]
  • Introduced a new API endpoint in MemberAdminAPI and its controller to expose the quota summary, returning a QuotaSummaryResponse. [1] [2] [3]

Gateway and Repository Enhancements

  • Extended the MemberGateway and FileGateway interfaces and their implementations to support counting members, summing all quotas, and summing all file content sizes. [1] [2] [3] [4] [5] [6]
  • Added new methods in JPA repositories (FileJpaRepository, MemberJpaRepository) to support these summary operations.

API and Model Naming Consistency

  • Standardized the spelling of "amount" (previously "ammount") in API documentation, request/response models, and entity fields for clarity and consistency. [1] [2] [3] [4] [5] [6] [7]

Configuration Updates

  • Registered the new use case in the Spring configuration to ensure it is available for dependency injection. [1] [2]

Supporting Model and Import Changes

  • Added new response models and updated imports to support the new summary endpoint and its integration. [1] [2] [3]

These changes collectively introduce a comprehensive quota summary feature for administrators, while also improving code clarity and maintainability.

@jhonatapers jhonatapers merged commit 2d7bb63 into main Aug 26, 2025
@jhonatapers jhonatapers deleted the release/v0.3.0 branch August 26, 2025 21:21
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