Skip to content

Feature/quota summary#70

Merged
jhonatapers merged 3 commits intodevelopfrom
feature/quota-summary
Aug 26, 2025
Merged

Feature/quota summary#70
jhonatapers merged 3 commits intodevelopfrom
feature/quota-summary

Conversation

@jhonatapers
Copy link
Copy Markdown
Member

This pull request introduces a new feature to provide an aggregated summary of quota usage and allocation for members, along with several supporting changes and some minor naming corrections. The main focus is on implementing the quota summary use case, exposing it via the API, and updating the data access and domain layers to support the required statistics.

Quota summary feature:

Domain and persistence support for quota statistics:

  • Added count() and sumAllQuota() methods to MemberGateway and implemented them in DefaultMemberGateway and MemberJpaRepository. (MemberGateway.java [1] [2]; DefaultMemberGateway.java [3] [4]
  • Added sumAllContentSize() to FileGateway and implemented it in FileJPAGateway and FileJpaRepository. (FileGateway.java [1] FileJPAGateway.java [2] FileJpaRepository.java [3]

API and naming consistency improvements:

  • Corrected the spelling of "ammount" to "amount" in DTOs, API descriptions, and entity fields for clarity and consistency. (CreateRequestQuotaInput.java [1] DefaultCreateRequestQuotaUseCase.java [2] MemberAPI.java [3] MemberAdminAPI.java [4]
  • Updated MemberJpaEntity and related code to use quotaAmount, quotaInBytes, and similar consistent field names. (MemberJpaEntity.java [1] [2] DefaultMemberGateway.java [3]

These changes collectively enable administrators to retrieve an overview of quota allocation and usage, and improve overall code clarity and maintainability.

@jhonatapers jhonatapers linked an issue Aug 26, 2025 that may be closed by this pull request
@jhonatapers jhonatapers self-assigned this Aug 26, 2025
@jhonatapers jhonatapers merged commit 3b05a94 into develop Aug 26, 2025
@jhonatapers jhonatapers deleted the feature/quota-summary branch August 26, 2025 20:40
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.

Estatísticas de quota

1 participant