History | View | Annotate | Download (10.1 kB)
astakos: Enhance quota listing
Enable filtering quota by resource, over limit status, usage andlimit values.
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: Revert migration of log timestamps
Because migrating the timestamp fields of model ProvisionLog from stringto datetime takes too long, we keep them in string format.
Alter migrations 0005 through 0007 introduced in commit 164e64d.
quotaholder: Add management commands for commissions
Add commands `commission-list' and `commission-show' to displaypending commissions. The former supports option `--overdue' torestrict the age of pending commissions.
Refs #3557
quotaholder: Store timestamps using DateTimeField
Add new fields issue_datetime in Commission and issue_datetime,log_datetime in ProvisionLog. Migrate away from custom string-basedissue_time and log_time fields.
quotaholder: pep8 fixes
quotaholder: Lock holdings in a single query
Order by primary key when selecting multiple holdings for update;this most probably ensures that locking will happen in that order.
As per commit 2f90645, we select all holdings for the given holders,rather that specifying all tuples (holder, source, resource), in order...
quotaholder: Ignore force option when releasing
Since negative usage makes no sense, we always check this lowerboundary when issuing a commission.
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.