Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / api / quotas.py @ edc51a21

History | View | Annotate | Download (10.9 kB)

# Date Author Comment
8735e44e 02/13/2014 04:20 pm Kostas Papadimitriou

astakos: Filter out not associated sources from user quota api response

return only resources that are related to projects the user has active
membership to.

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

astakos: Get service related project quota

Add API call for a service to request the project quota for its own
resources.

2aba7764 12/03/2013 02:44 pm Sofia Papagiannaki

snf_django: Change error status code if request method is not valid

Return 405 (NotAllowed) instead of 400 (BadRequest)
Add Allow header in the response containing the list of valid methods

9b10cb20 12/02/2013 05:52 pm Kostas Papadimitriou

astakos: Ensure computed result gets returned

Relying on cache.get is not always safe

56bbece7 11/28/2013 01:13 pm Giorgos Korfiatis

astakos: Cache visible resources in GET /quotas

Speed up GET /quotas by caching the list of API visible resources.
For consistency, apply the cache in GET /resources, too.

85ae5a4c 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Restrict resource access in API

Make available in the API only resources with api_visible=True.

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

astakos: Remove custom commit_on_success decorator

Prior to 1.3, django wouldn't set the transaction dirty upon a DB
exception and thus wouldn't trigger a rollback, resulting in a dangling
aborted DB exception. See https://code.djangoproject.com/ticket/9964...

b694875c 10/01/2013 06:56 pm Christos Stavrakakis

wheezy: Rename depricated HttpRequest attribute

From django docs:
"""
HttpRequest.raw_post_data renamed to HttpRequest.body

This attribute was confusingly named HttpRequest.raw_post_data, but it
actually provided the body of the HTTP request. It’s been renamed to...

51db2da2 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Fix some issues pointed out by pyflakes

d4e4e501 07/25/2013 12:46 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.3' into develop

Conflicts:
Changelog
snf-astakos-app/astakos/im/messages.py
snf-pithos-app/pithos/api/manage_accounts/__init__.py
snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py
snf-pithos-app/pithos/api/settings.py...

8ff1e8d9 07/18/2013 05:57 pm Giorgos Korfiatis

astakos: Use api_method_not_allowed in quota API

8fb8d0cf 06/17/2013 04:22 pm Giorgos Korfiatis

astakos: pep8 fixes

bea584e1 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Lift old-style services to components

Add model Component and migrate services along with their token
and UI URL to this new model. Rename service to component where
needed.

Add field service_type in Resource and fill it based on the name
of the service that used to own the resource.

bd1f667b 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Import new-style services and resources

78c3a39c 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: remove user argument from the api methods

User request.user field (set by user_for_token decorator)

79b5d61b 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: WIP move all api calls under ``/astakos/api``

Refs: #3340

2931c601 05/02/2013 04:36 pm Kostas Papadimitriou

astakos: Proper string type check

using basestring also handles unicode objects

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

Revert quotaholder's name to quotaholder_app

In order to facilitate migrations.

3a1bed03 04/25/2013 05:49 pm Giorgos Korfiatis

astakos: Set and return commission names in API calls

Support issue_commission's `name' parameter for an optional description
of the commission. Include this field in the dict returned by
get_commission.

Change astakosclient accordingly.

3f7b6f6f 04/25/2013 12:43 pm Giorgos Korfiatis

astakos: Correct qh call to auto accept commissions

4df49ee7 04/24/2013 01:15 pm Giorgos Korfiatis

astakos: Further validate input in quota API calls

ad730cc5 04/23/2013 04:12 pm Giorgos Korfiatis

astakos: Validate input of quota-related API calls

271d2c4c 04/23/2013 03:40 pm Giorgos Korfiatis

astakos: Rename get_service_quotas to service_get_quotas

So that it follows the naming scheme of other astakosclient calls.

bbf79074 04/23/2013 11:48 am Giorgos Korfiatis

quotaholder: Change provisions argument to list

It is the API code's task to transform the input dict to list.

948e15bc 04/22/2013 06:47 pm Giorgos Korfiatis

Turn callpoint into a module of functions

Class structure is no more needed; there is no need for initialization,
since the code is used internally.

08043775 04/22/2013 04:14 pm Giorgos Korfiatis

astakos: Move get_resources in resources.py

5afce44d 04/19/2013 01:28 pm Giorgos Korfiatis

astakos: Add user parameter in service_quotas API call

Using this parameter, the service can query the quotas of a specific
user.

b830f774 04/19/2013 12:29 pm Giorgos Korfiatis

Move transaction.py to snf_django package

bb005bc2 04/18/2013 12:20 pm Giorgos Korfiatis

New call astakos/api/service_quotas

Returns quotas for all resources associated with the service that makes
the call.

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.

befa5997 04/11/2013 02:07 pm Giorgos Korfiatis

Merge branch 'develop' into feature-quotas

Conflicts:
snf-astakos-app/astakos/im/api/service.py
snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py

a4398c8c 04/08/2013 02:14 pm Giorgos Korfiatis

Remove client_key parameter from quotas API

It is not necessary, since the service token in used for authorization.
The api_method decorator is modified so that it passes to the method
the service data through the request object.

1028e568 04/08/2013 01:43 pm Giorgos Korfiatis

API call for resources

18f21257 04/08/2013 01:41 pm Giorgos Korfiatis

API calls for quotas and commissions