Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / quotaholder / models.py @ 68b991bc

History | View | Annotate | Download (3.7 kB)

# Date Author Comment
68b991bc 04/29/2013 12:12 pm Giorgos Korfiatis

quotaholder: Rename counters to usage_min, usage_max

3679f852 04/29/2013 11:17 am Giorgos Korfiatis

quotaholder: Explicitly set commission's issue_time

Avoid function call as a default value in model.

f6e7a826 04/29/2013 11:14 am Giorgos Korfiatis

quotaholder: Impose non-null commission name

Default to empty string

d521eb8e 04/24/2013 01:33 pm Giorgos Korfiatis

quotaholder: Delete unused helper functions

3a195d2e 04/24/2013 01:31 pm Giorgos Korfiatis

quotaholder: Remove unused Holding flags

15e727f1 04/22/2013 06:54 pm Giorgos Korfiatis

quotaholder: pep8 fixes

b052f360 04/19/2013 12:23 pm Giorgos Korfiatis

Move intdecimalfield.py to snf_django package

Rename it to fields.py and update all migrations that reference the field.

222a4f6a 04/19/2013 11:09 am Giorgos Korfiatis

Move managers.py to snf_django package

6c0f4562 04/12/2013 06:18 pm Giorgos Korfiatis

quotaholder: Unify accept and reject commission code

Incorporate accept/reject functions in resolve_pending_commissions,
in order to enforce a total ordering on locking holdings.
Add a wrapper (resolve_pending_commission) that operates on a single
serial.

79e3da8a 04/08/2013 01:36 pm Giorgos Korfiatis

Prepare quotaholder calls for the new API

- {accept, reject}_commission take a single serial
- resolve_pending_commissions takes a set of serials to accept
and a set of serials to reject
- commission exceptions record the provision on which they are raised...

2864e701 04/05/2013 06:49 pm Giorgos Korfiatis

Turn holding into a counter

The role of Holding is now only to keep track of usage against
a limit. There is no more exporting of resources and thus no need
for the stock counters.

b78f2b29 04/05/2013 06:49 pm Giorgos Korfiatis

Rename capacity to limit

3adbfafa 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove import_limit and export_limit from policy

If needed, they can be simulated by importing from special resources.

d03796c2 04/05/2013 06:48 pm Giorgos Korfiatis

Redesign quota holding

A Holding now tracks the current usage (amount imported)
and the amount available to export (stock).

Counters come in pairs (imported_min, imported_max and
stock_min, stock_max respectively) to allow for a two-step
commission.

For example, issuing a commission to import some quantity...

2b888e60 04/05/2013 06:48 pm Giorgos Korfiatis

Merge Policy model into Holding

Since the removal of quantity, Policy was left with only one value:
capacity. To simplify things, we directly include capacity in Holding.

This makes obsolete the following functions, which are removed:
get_limits, set_limits, get_holding, set_holding.

04dcc30e 04/05/2013 06:48 pm Giorgos Korfiatis

Import resource from no source

Since quantity (initial supply) has been removed from Policy,
there is no direct way to set the initial available resource,
for example the total available VMs for holding cyclades.

This is now achieved by issuing (and accepting) a commission...

ccdb7c02 04/05/2013 06:48 pm Giorgos Korfiatis

wip Merge quotaholder into astakos

quotaholder_django/quotaholder_app becomes astakos/quotaholder
quotaholder_django/test becomes astakos/quotaholder/test

b0727daf 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove dependency from commissioning

Define exceptions locally

1d2b20aa 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove Entity model

8b54001e 04/05/2013 06:48 pm Giorgos Korfiatis

wip Rename entity into holder

8cff5e41 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove CallSerial model and related calls