Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add user storage threshold #975

Open
wants to merge 25 commits into
base: dev
Choose a base branch
from

Conversation

LucRoy
Copy link
Contributor

@LucRoy LucRoy commented May 10, 2023

Introduction of users storage limit

  • Users will now be imposed a 1.5TB storage limit.
  • Utilization calculation will be done base of a specific date, meaning all new storage after that date will be counted toward the user storage utilization.
  • Utilization will be cached and kept up to date within a 24 hour window, any request made after the 24 hour window from the initial request will be refreshed from calculating the utilization from the contents table.
  • New rest api /user/utilization will now be exposed to return utilization data

@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from 2b0107c to e494d20 Compare May 10, 2023 17:21
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from 1c9fbc9 to 6dff853 Compare May 10, 2023 17:29
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from ed5b48f to 1785d6a Compare May 10, 2023 17:44
@LucRoy LucRoy self-assigned this May 10, 2023
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from 2bf23f3 to 42a3d0e Compare May 10, 2023 17:58
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from b8f7921 to 08b9bad Compare May 11, 2023 12:27
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from 143bd05 to 21180d2 Compare May 17, 2023 12:19
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from 9055ce9 to 4de9f20 Compare May 17, 2023 12:32
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from 5741b6b to abef007 Compare May 17, 2023 12:58
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from 901971a to 693f983 Compare May 17, 2023 13:13
@LucRoy LucRoy marked this pull request as ready for review May 17, 2023 14:48
@LucRoy LucRoy requested review from 10d9e and alvin-reyes May 17, 2023 14:49
jimmylee
jimmylee previously approved these changes May 17, 2023
Copy link
Contributor

@jimmylee jimmylee left a comment

Choose a reason for hiding this comment

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

LGTM! looks good

api/v1/handlers.go Outdated Show resolved Hide resolved
api/v1/pinning.go Outdated Show resolved Hide resolved
util/users_storage_capacity.go Outdated Show resolved Hide resolved
util/users_storage_capacity.go Outdated Show resolved Hide resolved
10d9e
10d9e previously approved these changes May 18, 2023
Copy link
Contributor

@10d9e 10d9e left a comment

Choose a reason for hiding this comment

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

LGTM!

@LucRoy LucRoy dismissed stale reviews from 10d9e and jimmylee via c0a4580 May 23, 2023 12:59
@LucRoy LucRoy force-pushed the feature/add-user-storage-threshold branch from 10c22fe to c0a4580 Compare May 23, 2023 12:59
@LucRoy LucRoy requested a review from 10d9e May 23, 2023 17:23
Copy link
Contributor

@10d9e 10d9e left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants