History | View | Annotate | Download (7.9 kB)
astakos: Change response for API call `quotas'
The following indicators are returned for each holding:"limit": the quota limit (as before)"usage": the current usage (pessimistically, includes any pending allocations)"pending": the difference of max and min allocation, indicates...
astakos: Add user parameter in service_quotas API call
Using this parameter, the service can query the quotas of a specificuser.
astakos: Handle source correctly in initial_quotas
Sync quotas efficiently when importing resources
When changing the default base quota (uplimit) for a preexisting resource,do a bulk update of the related holdings.When importing a new resource, create the new related holdings.
Prompt the admin for the uplimit in the management command, if a config...
New call astakos/api/service_quotas
Returns quotas for all resources associated with the service that makesthe call.
API call for resources
New quota functions in astakos
Handle quotas as nested dictionaries indexed by:user uuid, source, resource name
Move quota-related code out of models.py
Intention is to collect all quota-related code to a single file.