History | View | Annotate | Download (9.9 kB)
quotaholder: Do not check provision integrity
The API is responsible to provide valid data to the backend.
quotaholder: Merge similar provisions
Make sure that issue_commission handles a single provision per (holder,source, resource) tuple by merging similar provisions.
quotaholder: Speed up set_quota with bulk_create
Instead of updating every single holding, delete all after loading them,then reinsert them updated with bulk_create.
astakos: Recompute quota when updating a resource
Avoid stateful update of holdings when a resource limit changes; ratherrecompute and set all affected users' quota.
quotaholder: Ignore force option when releasing
Since negative usage makes no sense, we always check this lowerboundary when issuing a commission.
astakos: Adapt tests to 2.6-style unittest
Define assertGreater, assertIn, assertRaises in snf_django.utils.testing
quotaholder: Unify included data in overLimit errors
Replace `available' with `usage' and `limit' in NoQuantityErrorto make it similar to NoCapacityError.
quotaholder: Allow resolving empty commissions
When resolving a pending commission, handle the case where the commissionhas been issued with no provisions.
Revert quotaholder's name to quotaholder_app
In order to facilitate migrations.