Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / functions.py @ 1e361a6d

History | View | Annotate | Download (31.4 kB)

# Date Author Comment
5dcf6618 05/13/2013 01:44 pm Giorgos Korfiatis

Revert "astakos: Fix bug in getting membership"

This reverts commit 7ce770be9fd9668fff4088eff2421cbeb0cc311e.

Update astakos tests to use membership id.

2215cd87 05/13/2013 11:47 am Giorgos Korfiatis

astakos: Remove an obsolete function

7ce770be 05/09/2013 04:14 pm Christos Stavrakakis

astakos: Fix bug in getting membership

Search based on 'person__id' and not 'id'.

7f3c4920 05/02/2013 03:49 pm Giorgos Korfiatis

astakos: Control project members by membership id

64d0c13e 05/02/2013 12:56 pm Giorgos Korfiatis

astakos: Add reason for all actions on applications

For cancel and dismiss, it is for now just a placeholder.

6da04174 05/02/2013 11:54 am Giorgos Korfiatis

astakos: Make submit_application arguments explicit

eee9ec4d 05/01/2013 05:28 pm Giorgos Korfiatis

astakos: Cleanup input of submit_application

Form passes only a tuple (name, limit) for each selected resource,
omitting presentational data.

3966d268 05/01/2013 04:43 pm Giorgos Korfiatis

astakos: Handle pair of exceptions properly

3f5851eb 04/29/2013 05:11 pm Giorgos Korfiatis

astakos: Reconcile resources

Sync number of pending applications to quotaholder.

9e3af524 04/29/2013 05:11 pm Giorgos Korfiatis

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.

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

Revert quotaholder's name to quotaholder_app

In order to facilitate migrations.

0a7a4104 04/23/2013 06:04 pm Kostas Papadimitriou

astakos: Replace some explicit settings imports

importing setting names explicitly makes it hard to write tests that
depend on specific setting values and polutes the module namespace.

In this commit only settings that are currently used in tests where
refactored.

9770ba6c 04/23/2013 02:50 pm Giorgos Korfiatis

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 the
related counter if possible, and accept the commission on success....

d07ce657 04/22/2013 04:18 pm Giorgos Korfiatis

astakos: Standardize arguments of project calls

All calls take a request_user (of type AstakosUser) argument.

7a08e179 04/22/2013 04:18 pm Giorgos Korfiatis

pep8 and style changes

e05c541e 04/22/2013 04:17 pm Giorgos Korfiatis

astakos: Enroll in project even if request is pending

44104cd3 04/22/2013 04:02 pm Giorgos Korfiatis

astakos: Move quota syncing code in quotas.py

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

Import resources from definition and config files

Register a service's resources giving option --json <file>.
The json file is expected to represent a dictionary with keys
"service" and "resources".

Currently the default base quota (uplimit) for each resource is read...

6cc50d6a 04/11/2013 01:21 pm Giorgos Korfiatis

Cleanup obsolete quota code

aee9a389 04/10/2013 03:22 pm Giorgos Korfiatis

Force query to list before passing as argument

An unevaluated query ends up being used as an argument of intended list
type to another query, which fails in the case of an EmptyQuerySet, which
is not iterable.

aa27f246 04/05/2013 06:49 pm Giorgos Korfiatis

Move quota-related code out of models.py

Intention is to collect all quota-related code to a single file.

8cbea11d 04/05/2013 06:49 pm Giorgos Korfiatis

Sync to quotaholder by recomputing user quotas

On a user joining/leaving a project or on a project definition change,
we used to compute quota diffs for affected users and add them up
to existing values in quotaholder.

We now switch to recomputing all quotas for affected users and resetting...

f77363c2 04/05/2013 06:48 pm Giorgos Korfiatis

wip Update astakos.im to use local quotaholder

Import directly quotaholder.callpoint in endpoint/qh.py
instead of an HTTP client.
Remove code related to entities, such as registering users and services.
Remove sync_projects logic.

992b81b6 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove check whether membership is pending sync

It is not needed any more, syncing to quotaholder will happen
in a single transaction along with the call initiating the change.

570015d2 04/05/2013 06:48 pm Giorgos Korfiatis

wip New, simplified syncing to quotaholder

878d9cf3 04/02/2013 08:49 am Kostas Papadimitriou

Merge branch 'tmp-common-email-recipients' into develop

31bc3a62 03/27/2013 11:26 pm Kostas Papadimitriou

Astakos email notification improvements

- Use project setting SERVER_EMAIL as sender to all email notifications.
- Remove astakos specific DEFAULT_CONTAC_EMAIL in favor of snf-common's
CONTACT_EMAIL setting.
- Remove DEFAULT_CONTACT_EMAIL and ADMINS astakos specific settings in favor of...

db472f3d 03/26/2013 06:42 pm Giorgos Korfiatis

Impose pending application limit on owner

We used to check the limit on applicant; however we would like to
to control pending applications per the original applicant, i.e the
owner. The check is ignored when the applicant is a project admin.

f30f0170 03/26/2013 06:42 pm Giorgos Korfiatis

Log project actions

6f25ec42 03/26/2013 03:50 pm Kostas Papadimitriou

Merge branch 'release-0.13' into feature-astakos-authpolicies

2b745492 03/26/2013 01:30 pm Giorgos Korfiatis

Specify reason when denying project application

Add field `response' in ProjectApplication model.
Add option `-m' in project-control command.

Refs #3493

5d5ce247 03/15/2013 07:49 pm Kostas Papadimitriou

Astakos logging improvements

use the common user_log display method accross logging calls

5df4c364 03/07/2013 07:01 pm Kostas Papadimitriou

Astakos logging fixes

Removed with_logging wrapper which inconsistently extracted user/request
arguments. Logging statements placed explicitly within login/logout
methods.

Fix admin notification logging

a989b48e 02/27/2013 05:10 pm Giorgos Korfiatis

Optimize computation of astakos user quotas

c7c0ec58 02/27/2013 03:45 pm Giorgos Korfiatis

Add per-user limit on pending applications

Add UserSettings model for storing integer-valued settings.
If an entry is missing, a default synnefo setting is consulted.

The limit can be set/unset with snf-manage user-update.

e30537f1 02/21/2013 07:47 pm Sofia Papagiannaki

Bug fixing

abd8467c 02/14/2013 04:28 pm Giorgos Korfiatis

Create membership without causing DB error on existence

ea1e5d9f 02/14/2013 04:28 pm Giorgos Korfiatis

Make ForUpdateManager thread-safe

The manager held a global flag `_for_update' on a single manager object,
which could be read or set by multiple threads.

select_for_update() is now provided by a subclass of QuerySet.
It must be used as the last modifier of a query set,...

9301c7f9 02/14/2013 04:27 pm Sofia Papagiannaki

Fix change email text

c9b3d7b0 02/14/2013 04:27 pm Kostas Papadimitriou

Update email change email content

- Include EmailChange instance in template context
- Email body improvements

0932ac43 02/14/2013 04:27 pm Giorgos Korfiatis

Automate the stress test for projects

8c7229a8 02/14/2013 04:27 pm Giorgos Korfiatis

Generalize instance checks for integers

c1007621 02/14/2013 04:26 pm Giorgos Korfiatis

Add LEAVE_REQUESTED state on ProjectMembership

c10f1cf5 02/14/2013 04:26 pm Giorgos Korfiatis

Utility function get_project_by_name

d9907a5e 02/14/2013 04:26 pm Giorgos Korfiatis

Check user status when creating project membership

466cc12c 02/14/2013 04:26 pm Giorgos Korfiatis

Notify for project enrollment

bb6a4465 02/14/2013 04:26 pm Giorgos Korfiatis

Add membership notifications

97e93991 02/14/2013 04:26 pm Kostas Papadimitriou

Ensure only verified users are added to a project

since users get registered at quotaholder during the activation process
(qh_register_user_with_quotas call in `activate` method -- im/functions.py).

An additional safer check in `create_membership` method might be...

beda5f0f 02/14/2013 04:26 pm Georgios D. Tsoukalas

fix project admin permissions

6cee26a0 01/30/2013 05:20 pm Giorgos Korfiatis

Restrict argument of approve_application() to application id

610d0948 01/26/2013 09:28 pm Giorgos Korfiatis

Remove obsolete function get_project_id_of_application_id

a75dbd7b 01/25/2013 12:26 pm Giorgos Korfiatis

View for cancelling a pending application

d4660e00 01/24/2013 07:04 pm Giorgos Korfiatis

Changes in project_detail

Distinguish project/application view as well as
owner/simple user mode

8cf9b2dd 01/23/2013 06:59 pm Giorgos Korfiatis

Use custom project_transaction_context in project views

7d145e78 01/23/2013 06:51 pm Sofia Papagiannaki

Change feedback email sender and body

aad0e329 01/22/2013 06:55 pm Giorgos Korfiatis

Option to cancel membership request

3e3743f2 01/22/2013 05:56 pm Giorgos Korfiatis

wip More progress with chains

ff67242a 01/22/2013 01:28 pm Giorgos Korfiatis

wip Project views by chain_id

01bdbd17 01/22/2013 11:58 am Giorgos Korfiatis

Checks for operations on applications

14f7f6a5 01/22/2013 11:30 am Giorgos Korfiatis

Fix membership checks

d4fc6292 01/21/2013 11:45 pm Giorgos Korfiatis

Checks for membership functions

f9224cc0 01/21/2013 09:11 pm Sofia Papagiannaki

Fix unicode urlencoding in feedback call

3c049f6d 01/21/2013 02:16 pm Giorgos Korfiatis

Better log printing

84a3f701 01/18/2013 04:59 pm Giorgos Korfiatis

Advances in syncing quotaholder with astakos

Factor out trigger_sync() as lock_sync() to be used for other
sync processes in addition to sync_projects().
Implement sync_users(), which registers users and their quotas.
Use both sync processes in astakos-qh-sync management command.

7eadc230 01/17/2013 06:52 pm Giorgos Korfiatis

Management command to check and perform project expiration

db99f198 01/15/2013 02:56 pm Giorgos Korfiatis

Implement project suspension and resumption

Merge membership's SUSPENDED and TERMINATED states into PROJECT_DEACTIVATED.

79991070 01/14/2013 07:40 pm Giorgos Korfiatis

Remove unused update_application()

3c638f72 01/14/2013 07:40 pm Giorgos Korfiatis

Add states DISMISSED and CANCELLED in ProjectApplication and related calls
Fix defaults in DateTimeFields

0514bcc7 01/14/2013 05:50 pm Giorgos Korfiatis

Changes in registering to quotaholder

Add an 'uplimit' (default) field in Resource;
change AstakosUserQuota fields to IntDecimalField;
pass all four limits of initial quotas to the quotaholder;
register services and resources explicitly upon creation;
a wrapper for get_quota.

19eb3ee6 01/11/2013 04:33 pm Giorgos Korfiatis

Implement application denial

21e0fdad 01/10/2013 05:40 pm Giorgos Korfiatis

Register a user to quotaholder only when is activated

b6fe8bb8 01/10/2013 04:31 pm Giorgos Korfiatis

New state handling for astakos projects and memberships

Distinguishes is_active, is_pending flags from actual states in ProjectMembership;
likewise is_active, is_modified flags in Project.
Splits syncing in pre-process, actual syncing, and post-process.

a3eb3a95 01/08/2013 07:17 pm Giorgos Korfiatis

Refactor notifications

907f15db 01/08/2013 06:56 pm Giorgos Korfiatis

Remove bypass checks; refactor some checks

ee4aa6eb 01/08/2013 04:19 pm Giorgos Korfiatis

Check user credentials in submit_application

8c3e6cb5 01/08/2013 04:00 pm Kostas Papadimitriou

Missing var

69c822cc 01/08/2013 03:57 pm Giorgos Korfiatis

wip Simplify submit/update application

15ca2bea 01/08/2013 03:57 pm Giorgos Korfiatis

Refactor submit application; always mark precursor as REPLACED

1352dabb 01/08/2013 03:32 pm Kostas Papadimitriou

Fix typo

4e057833 01/08/2013 02:19 pm Sofia Papagiannaki

Fix policy checking

e47fb17a 01/08/2013 01:38 pm Sofia Papagiannaki

Perform membership checks during add member form validation

be4811c0 01/08/2013 11:16 am Giorgos Korfiatis

Fix a dict iteration

b0686c16 01/07/2013 06:20 pm Giorgos Korfiatis

Fix join/leave policy checks

272cf735 01/04/2013 09:36 pm Sofia Papagiannaki

Membership policies kept in settings instead of db

5b9e9530 01/04/2013 07:32 pm Giorgos Korfiatis

Project deactivation/termination

a073c3b2 01/04/2013 12:02 pm Giorgos Korfiatis

Add member limit check in do_join_project

c8dfbe98 01/04/2013 11:21 am Giorgos Korfiatis

Fix some arg names

8dcaa6ac 01/03/2013 11:29 pm Giorgos Korfiatis

Simple refactor: do_* methods always take a project_id argument;
select_for_update for project and membership

fcc1e93f 12/21/2012 05:48 pm Sofia Papagiannaki

Delete more obsolete code

eb9ff37a 12/21/2012 04:41 pm Sofia Papagiannaki

Project update and suspend functions

03869281 12/20/2012 02:09 am Sofia Papagiannaki

Fix leave project in case of auto_accept policy

7dd3047d 12/19/2012 11:07 pm Sofia Papagiannaki

Separate function for enroll member

f7fc5a34 12/19/2012 06:11 pm Giorgos Korfiatis

Fix typos

fc61dfb7 12/19/2012 05:30 pm Sofia Papagiannaki

Fix member join when join policy is auto_accept

5cfd4acb 12/19/2012 05:26 pm Sofia Papagiannaki

Fix add_quota, use user id as quotaholder entity

974ee6a6 12/19/2012 04:34 pm Sofia Papagiannaki

Several fixes

3e47bb0b 12/19/2012 02:57 pm Sofia Papagiannaki

Trigger syncing from the views

3d4a0a9b 12/19/2012 10:59 am Sofia Papagiannaki

Fix notification error messages

172ce682 12/18/2012 04:21 pm Sofia Papagiannaki

Merge branch 'devel-0.13' of https://code.grnet.gr/git/astakos into latest-quota

Conflicts:
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/notifications.py
snf-astakos-app/astakos/im/urls.py
snf-astakos-app/astakos/im/views.py

34a76cdb 12/17/2012 07:29 pm Kostas Papadimitriou

Change email process improvements

- Allow replacement of previously email change requests
- Cleanup expired email change requests in change email view
- Log email change
- Warn user for existing pending requests
- Redirect to profile on change email actions (failed or succeded)