Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im @ 9202a57d

# Date Author Comment
9efd0075 02/13/2014 04:20 pm Kostas Papadimitriou

astakos: A bit of refactoring of projects views

- Update project views to work with the updated projects logic
- Use api.projects methods when applicable
- Common project view decorator
- Common view for app/project details

4df9dfc9 02/13/2014 04:20 pm Kostas Papadimitriou

astakos: Display both summed up and per project quota in usage view

0de7c5a7 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Make project-list a ListCommand

Use --filter-by to filter by owner and name.

Refs #5014

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

astakos: Adapt resource reconciliation

Assume base project when reconciling astakos resources.

9202a57d 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Fix project notification recipients

Notify applicant on an application action; notify project owner on project
actions if owner exists.

5dc97d69 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Add command project-modify

Add a management command that directly modifies an initialized project.

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

astakos: Refactor resource-modify

Remove interactive operations, rename default-quota to base-default.

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

astakos: Modify resource project default

Add support in resource-modify for changing the project_default.

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.

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

astakos: Sync project-based quota

Update quota code to take into account the differentiated sources.
There is no more need to lock the user when updating quota; locking
the project is now adequate.

Update quota listing in management commands; introduce option --quota in...

44d950c6 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Improve printing in quota-verify

Also add option to delete project and user holdings that do not correspond
to actual astakos entities.

64a43a9a 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Disable setting user base quota

Remove functionality from management commands `quota' and `user-modify'
for setting base quota. They will now be handled through projects.

362dadaa 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Adapt to new project/app scheme

c3763b39 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Make ProjectResourceGrant fields non null

Field project_capacity now requires a value; field project_application
was mistakenly set nullable.

2c1a5a15 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Introduce base projects

Every user is associated with a special-purpose `base' project. Its
mission is to manage the user's base quota.

2c960473 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Make base project when creating user

Make base project along with the user with the same uuid. Enable the
project upon user acceptance.

d1c95ad9 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Mark project membership as initialized

Add flag `initialized' on ProjectMembership. It is set to true once a user
is accepted. It is used to distinguish users that have registered
project quota (but may have been removed since then).

552df4cd 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Fill grants' project_capacity

Each resource grant that a project provides is now also associated with
a project-level limit. This is set by consulting the existing user-level
limit and the max members allowed. If the latter limit is not set, we
consider the project's current number of active members.

5e3c112a 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Add project default in resources

Add field `project_default' in resources. This will serve as a skeleton to
fill project quota (both project-level and member-level limits) for
resources not specified by the application.

The field is initialized by consulting the default base quota (field...

8af74daf 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Make limit_on_members_number a bigint

We need bigint in order to represent infinite as 2**63-1.

11922155 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Replace application None values

None will from now on denote a missing field of the application. Use empty
string for missing string and the conventional max int (2**63-1) for a
missing limit.

2ffe077d 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Store all project info on the project model

A project entry will contain all information needed to operate a project.
An application will store just the information provided by the applicant.

88f5242e 02/12/2014 06:47 pm Giorgos Korfiatis

astakos: Identify projects with a uuid

Introduce field `uuid'; use it to refer to projects in the API and the
management commands.

9255938e 02/10/2014 02:40 pm Kostas Papadimitriou

astakos: Typo fix

7f3bbafa 02/10/2014 02:40 pm Giorgos Korfiatis

astakos: Reduce import clutter in functions.py

84498bca 02/10/2014 02:40 pm Giorgos Korfiatis

astakos: Refactor notification code

Introduce generic notify functions that consult a dict for a given action.

74c9dfca 02/10/2014 02:40 pm Giorgos Korfiatis

astakos: Remove unneeded argument

62d30634 02/10/2014 02:40 pm Giorgos Korfiatis

astakos: Introduce private projects

A private project can only be accessed by its owner and its members.
No user can join the project; but the owner can enroll members.

b10f66b9 02/10/2014 01:36 pm Giorgos Korfiatis

common: Do not encode key paths as string

Handle explicitly key paths as lists of keys. This allows the key
to be any python object, as is the case in python dicts.

Provide utility unpack() to convert from a string representation to
a list of keys. It assumes that a key is either a string or an integer...

27e51b28 01/30/2014 04:48 pm Olga Brani

astakos: Change contact form textarea size

9dd66900 01/23/2014 02:28 pm Kostas Papadimitriou

astakos: Display auth provider identifier in user-show command

db34e6ad 01/22/2014 03:33 pm Kostas Papadimitriou

astakos: Prevent erroneus race conditions in simultaneous signups

Refs: #4966

3d6d8464 01/22/2014 12:11 pm Christos Stavrakakis

cyclades: Improvements to Astakos stats

Improve the exposed stats from the Astakos API and the way they are
displayed in 'stats-astakos' management command.

28456640 01/20/2014 04:07 pm Kostas Papadimitriou

astakos: Handle pending third party provider validation issues

skip validation errors and reset invalid field values for received user
metadata.

d56fa78c 01/17/2014 04:59 pm Giorgos Korfiatis

Catch EOF in astakos/quota commands

Abort operation when raw_input raises an EOFError.

d9a7f0bb 01/17/2014 04:57 pm Giorgos Korfiatis

Fix stdout/stderr write in astakos/quota commands

Write actual command output and user prompts to stdout; error and progress
messages to stderr.

8a217fa2 01/08/2014 06:05 pm Olga Brani

astakos: Filter for project-list table

36dacb92 01/08/2014 06:05 pm Olga Brani

astakos: Table manipulation using DataTables.js

Pagination, filtering and sorting of tables in projects-list
and members-list view is done client-side using DataTables.js

fb9d96e9 01/08/2014 06:05 pm Olga Brani

astakos: Table manipulation style improvments

bd47df34 01/08/2014 06:05 pm Olga Brani

astakos: Fix members list table checkbox bug

99ec73ba 01/08/2014 06:05 pm Olga Brani

astakos: Extend form.innerlabels cookie bug fix

bdd13ca7 01/08/2014 05:46 pm Kostas Papadimitriou

astakos: Typo fix

6d9f2d63 01/08/2014 05:46 pm Kostas Papadimitriou

astakos: Django 1.4.1 compatibility

3f40ce16 01/08/2014 05:46 pm Kostas Papadimitriou

astakos: Handle invalid provider ids

9e900cc5 01/08/2014 05:46 pm Kostas Papadimitriou

astakos: Update tests

43b4d5e8 01/08/2014 05:46 pm Kostas Papadimitriou

astakos: Fix add members url in project details view

84f6149c 01/08/2014 05:03 pm Giorgos Korfiatis

astakos: Disallow deletion of accepted users

1e3612ac 01/08/2014 05:02 pm Giorgos Korfiatis

astakos: Accept users with non-zero quota usage

Due to a non-handled case during the introduction of the user moderation
framework, there can exist non-accepted users with non-zero quota usage.
This can have happened if a user was set inactive before that migration....

d8e3cf57 01/08/2014 04:35 pm Giorgos Korfiatis

astakos: List quota for accepted users only

Don't attempt to show quota for non-accepted users, since they don't have
any.

e6ec1867 12/29/2013 07:08 pm Kostas Papadimitriou

astakos: Fix initial resource usage ordering

b1697f6b 12/20/2013 03:35 pm Constantinos Venetsanopoulos

astakos: fix tests after verbal message changes

c3d059f5 12/20/2013 02:25 pm Constantinos Venetsanopoulos

astakos: 'activation' -> 'verification'

Change all Astakos messages to reflect the new sign up procedure:

  • first send a verification email
  • user clicks on verification link
  • mark as pending moderation
  • activate
2c6bc262 12/20/2013 02:07 pm Kostas Papadimitriou

astakos: Update astakos tests

d0d3646d 12/20/2013 02:00 pm Kostas Papadimitriou

astakos: Handle third party unverified user change password form submition

bd2c6bc5 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Improved email validator

Custom EmailValidator class backported from django 1.6

d7030402 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Existing third party identifier handling in signup

remove both existing third party authentication and unverified user entries
when the third party identifier gets used.

69a6ca1a 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Prerender password input value in profile form

95b7c3f6 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Improve invalid activation code handling

display error message instead of returning a 404 response

300ad310 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Auth provider presentation fix

prevent encoding errors

526dad9e 12/12/2013 02:17 pm Olga Brani

astakos: style fix for sortable tables thead

91a9dbe4 12/05/2013 02:39 pm Giorgos Korfiatis

astakos: Hide empty project list in view

11d5fd8b 12/05/2013 12:13 pm Kostas Papadimitriou

astakos: Set initial signup values if available

prefill third party signup form with initial values (first name, last name,
email) if available in the third party provider response.

Conflicts:

snf-astakos-app/astakos/im/views/target/shibboleth.py
b08aadc0 12/05/2013 12:13 pm Kostas Papadimitriou

astakos: Shibboleth EPPN migration functionality

Prior to this commit astakos used the mod_shib2 EPPN header value as the
unique identifier for associating shibboleth idp users to astakos user entries.

This commit alters this behaviour and from now on astakos resloves unique...

412048af 12/05/2013 12:13 pm Kostas Papadimitriou

astakos: Log shibboleth exception and merge fixes

ea05b306 12/04/2013 04:40 pm Sofia Papagiannaki

astakos: Fix test

5764728a 12/03/2013 09:47 pm Sofia Papagiannaki

astakos: Revoke access granted to resource

be67d92e 12/03/2013 09:47 pm Sofia Papagiannaki

astakos: Minor improvements in validate token api call

Add tests for validate access token endpoint

671e4232 12/03/2013 09:47 pm Sofia Papagiannaki

astakos: Additional tests for validating access token

2f8a7c0e 12/03/2013 09:47 pm Sofia Papagiannaki

astakos: Configure oa2 app

e28a4841 12/03/2013 09:43 pm Sofia Papagiannaki

astakos: Extend oa2 app

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

91884d63 11/29/2013 02:26 pm Giorgos Korfiatis

Add some missing Copyright notices

Also add 2013 in package COPYRIGHT files.

af4d8c34 11/28/2013 01:13 pm Giorgos Korfiatis

astakos: Cache endpoints in POST /tokens

Since endpoints are rarely altered, we speed up POST /tokens by caching
them.

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.

733f013d 11/25/2013 04:54 pm Giorgos Korfiatis

astakos: Associate only accepted users with projects

Allow project enrollment and ownership only for users that are accepted,
not just email_verified.

Also change base quota only for accepted users.

1808f7bc 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Refactor user creation

Provide auth.make_user() as the single way to create a new user. This
function is responsible to set all automatically generated fields, such as
username, uuid, and token. Clean up AstakosUser.save(), that used to
update these fields, and remove AstakosUser.__init__(). Remove trigger...

fa1e77f4 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Make user uuid field non-null

Set a uuid to any user missing one and set the field null=False.

f6ff3033 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Lock user in im views

Make sure that views modifying users run in a transaction and lock users
before updating.

ef1fb98b 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Reset user sign flags when adding new terms

When new terms are added, set has_signed_terms=False for all users, forcing
them to accept the new terms. If there are no terms, a new user is created
with has_signed_terms=True.

With this change we can skip querying the terms when authenticating a user,...

fb619437 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Use TestCase instead of TransactionTestCase

We need to be sure that code runs in a transaction (provided by TestCase).
If we need in some case to test the transactional behavior itself,
we could there use TransactionTestCase.

5ae8216a 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Remove unused user creation forms

InvitedLocalUserCreationForm, InvitedThirdPartyUserCreationForm,
ShibbolethUserCreationForm, and InvitedShibbolethUserCreationForm
were not used.

e066eedb 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Correct realname splitting

If a realname splits in more than two parts, store the whole value
as last_name. Also use the util function rather than initializing
a temporary AstakosUser, where needed.

47ea6978 11/25/2013 11:32 am Sofia Papagiannaki

astakos: Remove stack traceback

c94dcec3 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Preserve visibility flags on register

When re-registering an existing resource, do not override the visibility
flags. They may have been modified by the administrator.

Also fix field naming in resource-list.

5a0f9d6c 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Enhance quota listing

Enable filtering quota by resource, over limit status, usage and
limit values.

45112d5a 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Modify base quota in bulk

Add option `--all' in command user-modify to support setting base quota
for all users. Exceptions can be specified with `--exclude'.

Also select user for update in user-modify.

548938f6 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Speed up setting quota for one resource

When registering a new resource or updating base quota for a single
resource, compute and set holdings just for this resource.

46b6a8b4 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Speed up computing initial_quota

Restructure code to avoid an extra join and dict manipulations.

d5421da4 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Revert moderation of non-verified users

Migration 0031 accepted users to whom activation email had been sent, even
if their email had not been verified. This is an inconsistent state. We
set moderated = False for inactive users. If there are any active users in...

2e46be99 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Make limits possibly infinite

Register new resources with unlimited quota.

d61d6007 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Rename --limit to --default-quota

Use a more descriptive name for this resource-modify option. Also change
resource-list column `limit' to `default_quota'.

f72ba65d 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Preserve existing quota on default change

View the resource defaults as a skeleton to be consulted when accepting
a new user. All users keep their quota in AstakosUserQuota.

Operate resource-modify in bulk, in order to avoiding updating the
quotaholder separately for each resource.

2dc27ac1 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Add resource visibility flags

Rename flag `allow_in_projects' to `ui_visible'. Add flag `api_visible'.
The former entails the latter.

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.

a69ad12b 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Split quota commands

Introduce quota-list and quota-verify.

90e7da53 11/22/2013 04:44 pm Giorgos Korfiatis

Remove resource import/export commands

They have been subsumed by the respective service import/export commands.

b22da62e 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Avoid multiple user lookups in quota sync

Also, remove unneeded param of astakos_users_quotas.

30edd93d 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Recompute quota when updating a resource

Avoid stateful update of holdings when a resource limit changes; rather
recompute and set all affected users' quota.

41e92ef2 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Replace decimal field with bigint

Any values that happen to be greater than the new max (2**63-1)
are reduced to this value.

72313b77 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: pep8 fixes