Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / quotaholder_app @ 35cbac33

# Date Author Comment
35cbac33 02/26/2014 06:03 pm Giorgos Korfiatis

astakos: Use custom CommandError in mngt commands

18304586 02/26/2014 05:53 pm Giorgos Korfiatis

astakos: Replace str with unicode

Define unicode in astakos models rather than str.

fe4000a3 02/13/2014 04:20 pm Giorgos Korfiatis

quotaholder: Do not check provision integrity

The API is responsible to provide valid data to the backend.

daa780fa 02/13/2014 04:20 pm Giorgos Korfiatis

quotaholder: Merge similar provisions

Make sure that issue_commission handles a single provision per (holder,
source, resource) tuple by merging similar provisions.

44d950c6 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Improve printing in quota-verify

Also add option to delete project and user holdings that do not correspond
to actual astakos entities.

508e13e3 02/13/2014 03:19 pm Giorgos Korfiatis

quotaholder: Migrate holdings for pool projects

Recreate quota holdings for all initialized projects and memberships.

e508cd2b 01/08/2014 05:03 pm Giorgos Korfiatis

quotaholder: Delete holdings of non-accepted users

Delete all holdings with a holder that does not correspond to an accepted
user uuid. This is expected to affect only holdings with zero usage, because
an astakos migration has previously accepted users with non-zero usage for...

07239400 01/08/2014 04:35 pm Giorgos Korfiatis

quotaholder: Revert holding deletion

Revert deletion of holdings for non accepted users, introduced in cfc934f.

cfc934ff 12/17/2013 04:12 pm Giorgos Korfiatis

quotaholder: Delete holdings of non-accepted users

Users would previously acquire quotas on email verification; this is now
done on user acceptance. We delete holdings for non-moderated and for
rejected users.

28330325 11/27/2013 03:24 pm Giorgos Korfiatis

quotaholder: Reuse holding IDs in set_quota

For efficiency reasons, commit 20c6de3 deletes and recreates holdings
instead of updating them one by one. In order not to exhaust the IDs, we
reuse the deleted ones.

5a0f9d6c 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Enhance quota listing

Enable filtering quota by resource, over limit status, usage and
limit values.

548938f6 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Speed up setting quota for one resource

When registering a new resource or updating base quota for a single
resource, compute and set holdings just for this resource.

20c6de35 11/22/2013 04:44 pm Giorgos Korfiatis

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.

30edd93d 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Recompute quota when updating a resource

Avoid stateful update of holdings when a resource limit changes; rather
recompute and set all affected users' quota.

41e92ef2 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Replace decimal field with bigint

Any values that happen to be greater than the new max (2**63-1)
are reduced to this value.

c7e03d20 10/09/2013 04:52 pm Giorgos Korfiatis

astakos: Remove custom ForUpdateManager

Remove custom manager that implemented select_for_update(), since this
is already implemented in Django 1.4.

d758784b 08/05/2013 02:39 pm Christos Stavrakakis

Fix stale import statements

Commit 7cfc0ce moved code from webproject to snf_django. This commit
fixes some stale imports that skipped renaming.

7cfc0cef 08/05/2013 12:45 pm Christos Stavrakakis

snf-django: Move ListCommand to snf-django

snf-webproject contained the generic ListCommand, and because of this it
had a dependency from snf-django-lib. This commit moves this command from
snf-webproject to snf-django-lib and removes this dependency. Also,...

c3b42b86 06/10/2013 11:45 am Giorgos Korfiatis

quotaholder: Revert migration of log timestamps

Because migrating the timestamp fields of model ProvisionLog from string
to datetime takes too long, we keep them in string format.

Alter migrations 0005 through 0007 introduced in commit 164e64d.

a4451f59 05/28/2013 06:22 pm Giorgos Korfiatis

quotaholder: Add management commands for commissions

Add commands `commission-list' and `commission-show' to display
pending commissions. The former supports option `--overdue' to
restrict the age of pending commissions.

Refs #3557

164e64d5 05/28/2013 06:21 pm Giorgos Korfiatis

quotaholder: Store timestamps using DateTimeField

Add new fields issue_datetime in Commission and issue_datetime,
log_datetime in ProvisionLog. Migrate away from custom string-based
issue_time and log_time fields.

ea1369dc 05/27/2013 05:27 pm Giorgos Korfiatis

quotaholder: pep8 fixes

f7b7da5d 05/20/2013 05:48 pm Giorgos Korfiatis

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...

2e7924de 05/20/2013 03:14 pm Giorgos Korfiatis

astakos: Remove some unused imports

Also add a missing import in quotas.py

01b8fb9a 05/16/2013 06:41 pm Giorgos Korfiatis

quotaholder: Ignore force option when releasing

Since negative usage makes no sense, we always check this lower
boundary when issuing a commission.

aba462a2 05/16/2013 02:55 pm Giorgos Korfiatis

astakos: Adapt tests to 2.6-style unittest

Define assertGreater, assertIn, assertRaises in snf_django.utils.testing

3a8e56bc 05/14/2013 11:14 am Giorgos Korfiatis

quotaholder: Unify included data in overLimit errors

Replace `available' with `usage' and `limit' in NoQuantityError
to make it similar to NoCapacityError.

7585a768 04/30/2013 06:06 pm Giorgos Korfiatis

quotaholder: Allow resolving empty commissions

When resolving a pending commission, handle the case where the commission
has been issued with no provisions.

69c1afae 04/29/2013 01:36 pm Giorgos Korfiatis

quotaholder: Add migrations

Migration 0001 should be faked on an existing database.
Migration 0002 adds new fields.
Migration 0003 populates the new fields based on the old ones.
Migration 0004 deletes unneeded fields and tables.

ec5e00aa 04/29/2013 12:13 pm Giorgos Korfiatis

Revert quotaholder's name to quotaholder_app

In order to facilitate migrations.