Ticket #366 (closed enhancement: fixed)

Opened 3 years ago

Last modified 21 months ago

Quota call for getting available quota for app.

Reported by: robert Owned by: dpovshed
Priority: major Milestone: MediaMosa 3.0
Component: Core Version:
Keywords: Cc:
MoSCoW: Must Have Estimated time after impact analysis:
Related to project: none Tested: no
Accepted: no Estimated Hours: 0

Description

The only way to get app quota is on the user or group call. But this only works on existing users or groups. We could use a /app/quota REST call that returns the quota info about the current app.

Change History

Changed 2 years ago by Frans

  • moscow changed from Should Have to Must Have
  • milestone changed from MediaMosa X.X to MediaMosa 2.4

Changed 2 years ago by dpovshed

  • status changed from new to closed
  • resolution set to ready_for_review

/app/quota implemented in revision 1508. Requires Mediamosa version 3.0.0 .

Changed 2 years ago by robert

  • status changed from closed to reopened
  • resolution ready_for_review deleted

Changed 2 years ago by robert

  • owner set to robert
  • status changed from reopened to assigned

Changed 2 years ago by robert

  • owner changed from robert to dpovshed

@dennis;

You only return the quota of the app that the app totally has, but not what is used and available. See the call /user/$user_id for example. That call returns the available quota of the user. You need to the same as that call with out the other stuff (user data).

The problem now is that /user/$user_id will fail if the user does not exist, but every user has an app. There is currently no method to get the same info about the app in /user/$user_id call when the $user_id does not exists.

Changed 2 years ago by robert

  • status changed from assigned to closed
  • resolution set to fixed

Changed 21 months ago by forgacs

App_id = 1

GET: /app/quota

Note: See TracTickets for help on using tickets.