History | View | Annotate | Download (9.8 kB)
astakos: Lift old-style services to components
Add model Component and migrate services along with their tokenand UI URL to this new model. Rename service to component whereneeded.
Add field service_type in Resource and fill it based on the nameof the service that used to own the resource.
astakos: Import new-style services and resources
astakos: remove user argument from the api methods
User request.user field (set by user_for_token decorator)
astakos: WIP move all api calls under ``/astakos/api``
Refs: #3340
astakos: Proper string type check
using basestring also handles unicode objects
Revert quotaholder's name to quotaholder_app
In order to facilitate migrations.
astakos: Set and return commission names in API calls
Support issue_commission's `name' parameter for an optional descriptionof the commission. Include this field in the dict returned byget_commission.
Change astakosclient accordingly.
astakos: Correct qh call to auto accept commissions
astakos: Further validate input in quota API calls
astakos: Validate input of quota-related API calls
astakos: Rename get_service_quotas to service_get_quotas
So that it follows the naming scheme of other astakosclient calls.
quotaholder: Change provisions argument to list
It is the API code's task to transform the input dict to list.
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.
astakos: Move get_resources in resources.py
astakos: Add user parameter in service_quotas API call
Using this parameter, the service can query the quotas of a specificuser.
Move transaction.py to snf_django package
New call astakos/api/service_quotas
Returns quotas for all resources associated with the service that makesthe call.
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 singleserial.
Merge branch 'develop' into feature-quotas
Conflicts: snf-astakos-app/astakos/im/api/service.py snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py
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 methodthe service data through the request object.
API call for resources
API calls for quotas and commissions