1. 15 Oct, 2013 1 commit
  2. 04 Oct, 2013 1 commit
  3. 04 Jun, 2013 1 commit
    • Giorgos Korfiatis's avatar
      astakos: Record the service originating a resource · 9ef530af
      Giorgos Korfiatis authored
      Add field service_origin in model Resource as well as in the
      resource definitions, indicating the service where the resource
      comes from. It is not a foreign key, in order to allow deleting
      a component/service, without affecting registered resources and
      quota.
      
      API call /service_quotas uses this field to identify relevant
      resources.
      9ef530af
  4. 03 Jun, 2013 1 commit
    • Giorgos Korfiatis's avatar
      astakos: Lift old-style services to components · ba8549dd
      Giorgos Korfiatis authored
      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.
      ba8549dd
  5. 20 May, 2013 2 commits
    • Giorgos Korfiatis's avatar
      astakos: Lock chain for projects, user for syncing · e3b982f4
      Giorgos Korfiatis authored
      Lock project's chain for every operation affecting either a project or
      an application. Subsequently, lock user when needing to sync or to issue
      commission to update pending_app quota.
      
      In views, replace locking qh_add_pending_app with check_pending_app_quota,
      which will only query quota, so that to respect the above mentioned order.
      
      Order by id when locking multiple users.
      e3b982f4
    • Giorgos Korfiatis's avatar
      astakos: Remove some unused imports · 0ad5d74b
      Giorgos Korfiatis authored
      Also add a missing import in quotas.py
      0ad5d74b
  6. 16 May, 2013 2 commits
  7. 15 May, 2013 1 commit
    • Giorgos Korfiatis's avatar
      astakos: Improve quota syncing · 1542c439
      Giorgos Korfiatis authored
       - Split code that lists and syncs quotas
       - Merge the latter with qh_sync_users
       - Move qh_sync_projects in quotas.py; sync only active members
       - Add missing select for update in project suspend
       - Clean up quotas.py
      1542c439
  8. 14 May, 2013 2 commits
  9. 29 Apr, 2013 4 commits
  10. 23 Apr, 2013 2 commits
    • Giorgos Korfiatis's avatar
      astakos: Rename get_service_quotas to service_get_quotas · f2b4640e
      Giorgos Korfiatis authored
      So that it follows the naming scheme of other astakosclient calls.
      f2b4640e
    • Giorgos Korfiatis's avatar
      Handle max pending applications as a quotable resource · c02fa17e
      Giorgos Korfiatis authored
      Assume a resource `astakos.pending_app' related to service `astakos'.
      On submitting an application, issue a commission that will update the
      related counter if possible, and accept the commission on success.
      On approving/denying/cancelling an application, update the counter
      likewise.
      
      We always charge the application `owner'; however, if the `applicant'
      is a project admin, we issue commission in force mode which succeeds
      even if it exceeds the limit.
      
      In order to pre-emptively check in the UI, follow the same process in
      `dry run' mode, which issues a commission and rejects it on success.
      
      Remove option of user-update to set its limit.
      
      Refs #3349
      c02fa17e
  11. 22 Apr, 2013 8 commits
  12. 19 Apr, 2013 2 commits
  13. 18 Apr, 2013 3 commits
  14. 08 Apr, 2013 1 commit
  15. 05 Apr, 2013 2 commits