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

Misc work tracker #77

Open
6 of 26 tasks
aahnik opened this issue Apr 29, 2024 · 1 comment
Open
6 of 26 tasks

Misc work tracker #77

aahnik opened this issue Apr 29, 2024 · 1 comment

Comments

@aahnik
Copy link
Contributor

aahnik commented Apr 29, 2024

rough overview of features targetted to be implemented in this PR

  • fix roles decorator leakage (fixed by saur via order of handlers fixing)
  • put async await in old missing places

auth

  • set expiry date for cookies

spaces

  • get a full file (fixes Send full file from backend #63 )
  • make location of storage directory configurable via env var, with default value of storage in cwd. Create empty directory if not exists.
  • assureFileDoesNotExist must consider whether the file it is looking for is in trash or outside trash
  • when we hit /meta/ by id, give space parent (if user is owner)
  • when getFile by id, it would return data, if the current requester has access to requested file's parent dir

users

  • password set/reset with jwt token with limited time validity
  • allow admin to edit, delete, and create users
  • allow admin to promote users to higher role
  • allow admin to allot quotas to users (admin can give quotas, even without users paying for that)

billing

  • implement billing logic for space quotas, and mod token plans
  • /billing/spaces/quotaID
  • /billing/mods/planID

  • paying would add +n month to expiry date
  • can pay for single month, or multiple months (6 or 12) at once

  • after payment is success, unlock the paid feature
  • update space quota , and expiry date a plan
  • update modTokensRemaining
  • define coupon codes
  • system to automatically credit mod tokens at start of billing period (when user has multi-month plan)
  • define limit on how much in advance an user can pay ( 1 mo, 6mo, 1 year)

validations

  • class validators, validate all input dtos

swagger

  • document required validations in input dtos
  • document all input and output dtos
@aahnik
Copy link
Contributor Author

aahnik commented Apr 29, 2024

Send proper error response when email existing

@aahnik aahnik changed the title Misc work #aahnik Misc work tracker Apr 30, 2024
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

No branches or pull requests

1 participant