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: Change user_for_token decorator
user_for_token after successful user authenticationsets the request user attributeThe wrapped methods no more need the ``user`` argument:they can get the token holder by the request object
astakos: rename api utility methods
astakos: fix user api utility calls
fix typo
astakos: Fix one test
Fix race condition in one of Astakos tests.
astakos: Various fixes to tests
Do not user 'assertItemsEqual' method of unittest is only supported inpython 2.7.
Also, some arguments have been renamed.
astakos: Fix bug in getting membership
Search based on 'person__id' and not 'id'.
astakos: Remove deprecated Project methods
add_member, remove_member were not used.
astakos: Visually separate apps in project-show
astakos: Handle prompt for additional login methods
astakos: Exclude non existing services form Service.catalog
Always return services that exist in database. If a known service existsuse the predefined presentation data as base dict upon which we build upthe returned info by merging the data stored in service model and the...
astakos: Proper string type check
using basestring also handles unicode objects
astakos: Control project members by membership id
astakos: Add reason for all actions on applications
For cancel and dismiss, it is for now just a placeholder.
astakos: Cleanup some project methods
astakos: Make submit_application arguments explicit
astakos: Remove unneeded import of a constant
astakos: Cleanup input of submit_application
Form passes only a tuple (name, limit) for each selected resource,omitting presentational data.
astakos: Handle pair of exceptions properly
astakos: Remove unused project_error_view
Merge branch 'tmp-allow-in-projects' into feature-quotas
astakos: Resources metadata improvements
- Allow admin to overwrite default resources presentation data using ASTAKOS_RESROUCES_META setting. dict_merge is used to accomodate admin from declaring all available metadata parameters.- Enforce allow_in_projects resource policy in project application...
quotaholder: Allow resolving empty commissions
When resolving a pending commission, handle the case where the commissionhas been issued with no provisions.
Merge branch 'develop' into feature-quotas
astakos: Control exposing resources in projects
Add attribute `allow_in_projects' in Resource model (True by default).Set this flag for astakos.pending_app to False in the descriptionof astakos resources.
astakos: Migrate user settings for pendings_app limit
Provide console script astakos-migrate-0.14.Also update related upgrade notes.
astakos: Reconcile resources
Sync number of pending applications to quotaholder.
astakos: accept commission immediately after issue
Unify these operations when registering a pending application,in order to make sure no commission can be left pending.
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.
Revert quotaholder's name to quotaholder_app
In order to facilitate migrations.
quotaholder: Rename counters to usage_min, usage_max
quotaholder: Explicitly set commission's issue_time
Avoid function call as a default value in model.
quotaholder: Impose non-null commission name
Default to empty string
astakos: remove unwanted logging
astakos: Fix twitter access token request failure
The oauth_verifier received from the executed callback has to be passedto the access_token request (it is no more optional)https://dev.twitter.com/discussions/16443#comment-36666
Updated twitter oath service urls
astakos: Migrate service and resource names
- Rename 'pithos+' to 'pithos'- Prepend resource names with 'service_name.'
Merge branch 'feature-change-astakos-commands' into feature-quotas
Conflicts: snf-astakos-app/astakos/im/management/commands/resource-list.py snf-astakos-app/astakos/im/management/commands/service-list.py snf-astakos-app/astakos/im/management/commands/service-modify.py...
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.
Conflicts: astakosclient/astakosclient/__init__.py astakosclient/astakosclient/errors.py astakosclient/astakosclient/tests.py docs/index.rst
astakos: Separate importing resources from setting limits
`snf-manage resource-import' does not provide a way to change thedefault base quota any more. When importing a resource for the firsttime, it sets the limit to zero.
Use `snf-manage resource-modify' to change limits. It supports both...
astakos: Correct qh call to auto accept commissions
quotaholder: Delete unused helper functions
quotaholder: Remove unused Holding flags
quotaholder: Remove default values in required args
Also remove unused `context' argument and replace empty list defaultvalues with None.
astakos: Further validate input in quota API calls
quotaholder: Remove unused utils and api.py
quotaholder: Integrate unit tests in django tests
astakos: Update projects tests
astakos: Define and export local resources
astakos: Replace some explicit settings imports
importing setting names explicitly makes it hard to write tests thatdepend on specific setting values and polutes the module namespace.
In this commit only settings that are currently used in tests whererefactored.
astakos: Initial tests for project views
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.
Handle max pending applications as a quotable resource
Assume a resource `astakos.pending_app' related to service `astakos'.On submitting an application, issue a commission that will update therelated counter if possible, and accept the commission on success....
quotaholder: Update unit tests
quotaholder: Change provisions argument to list
It is the API code's task to transform the input dict to list.
quotaholder: pep8 fixes
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: Reintroduce foreign key from Resource to Service
Also merge all migrations from 0026 to 0032.
astakos: Move helper function from qh to quotas.py
astakos: Use `with' to open file in management command
astakos: Sync users when importing base quotas from file
astakos: Standardize arguments of project calls
All calls take a request_user (of type AstakosUser) argument.
pep8 and style changes
astakos: Enroll in project even if request is pending
astakos: Move get_resources in resources.py
Rename users_quotas to astakos_users_quotas
astakos: Move quota syncing code in quotas.py
astakos: Decouple listing from syncing quotas code
Sync user after changing base quota
Respect user-specific quota when changing resource default
Do not update holding limit if there exist user-specific base quotafor the particular resource.
quotaholder: Do no side effect on failed commissions
Make sure that no Commission or Provision entry is created whenissue_commission fails, even if the transaction is committed.
astakos: remove js debug statement
quotaholder: Fix printing of holding key
quotaholder: Improve data of NoCapacityError
Replace `available' by two fields: `limit' and `usage'.
astakos: Change response for API call `quotas'
The following indicators are returned for each holding:"limit": the quota limit (as before)"usage": the current usage (pessimistically, includes any pending allocations)"pending": the difference of max and min allocation, indicates...
Service catalog fix
also include services for which no existing presentation data exist.Admin can use ASTAKOS_SERVICE_META setting to customize the servicepresentation metadata.
Store service access url in database
Astakos: ui minor fixes
Refs: #3573Correct onclick functionality in project create page.Discover missing div tag in project details page.
Update astakos usage view
Update view to use the introduced astakos quotas api.
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
Move intdecimalfield.py to snf_django package
Rename it to fields.py and update all migrations that reference the field.
Move managers.py to snf_django package
astakos: Remove obsolete ProjectResourceGrant fields
astakos: Handle source correctly in initial_quotas
astakos: Remove obsolete fields of AstakosUserQuota
Remove quantity, import_limit, export_limit.Update user-set-initial-quota management command.
astakos: Remove obsolete project-related model fields
Several fields of models Project and ProjectMembership were relatedto the external syncing to quotaholder and have become obsolete sincethe inclusion of quotaholder in astakos.
Cleanup CLRF's
Remove resource/service model dependencies
- Remove foreign key dependency between Service/Resource model. Replace it with a service CharField to keep track of the service identifier that the resource was registered from.- Remove all references to resource service name in resource lookups
Use updated resource models in projects views
Update resource-list management command
Modify resource limit from the command line
Services api/presentation logic cleanup
- Remove presentation information from Service model (order, icon)- To access the list of services filled with both presentation and api data use Service.catalog(). The method fills a dict with service identifiers and service metadata through the following steps...
Astakos missing Service model migrations
New call astakos/api/service_quotas
Returns quotas for all resources associated with the service that makesthe call.
astakos: update service-add and service-list
astakos: fix default empty dict setting