Adjust astakos to new holding design
Simplifications due to removal of quantity and merging capacity into holding.Also make sure that holders and resources are represented as strings inquotaholder calls.
Compute and show quotas by source
Adjust astakos code to the new nested dict structure of quotas.
wip Update astakos.im to use local quotaholder
Import directly quotaholder.callpoint in endpoint/qh.pyinstead of an HTTP client.Remove code related to entities, such as registering users and services.Remove sync_projects logic.
wip Update astakos.im to simplified quotaholder policy
wip Restructure astakos views
Replace custom transaction context with:
- decorator `commit_on_success_strict', which uses transaction.commit_manually and ensures that the transaction rolls back on any exception
- context ExceptionHandler, which logs and...
Execute astakos-init and user-update in a transaction
Merge branch 'release-0.13' into develop
Conflicts: snf-astakos-app/astakos/im/messages.py snf-astakos-app/astakos/im/views.py version
Merge branch 'tmp-common-email-recipients' into develop
Fix user-set-initial-quota command
Do not display unnecessary message:"Please use either `--from-file' or `--set-capacity' options" while importing quotas from file.
Preserve owner info when modifying project
An admin can modify a project, i.e. create an application based ona previous application. We distinguish the initial applicant, calledthe `owner', from the user who submitted the current application,called the `applicant'....
Merge branch 'release-0.13' into feature-astakos-authpolicies
Specify reason when denying project application
Add field `response' in ProjectApplication model.Add option `-m' in project-control command.
Refs #3493
Change helper function to allow multiple arguments
Change output of astakos-quota --sync
Inform specifically which users, if any, have been synced, instead oflisting the whole diff. The latter can be recovered by giving theoption --verify.
Authentication providers improvements
Major authentication provider refactoring to support
- Modular and easily configurable messages with common context- Fine grained provider policies to support appling specific policies to users and/or groups
Key points:...
Inform user we are working in the background
Print a message about astakos-quota calculating all user quotas,which on a big system takes some time.
astakos-quota: allow syncing with --user
Add 'default' capacity to user-set-initial-quota
pep8 fixes
List quotas for a specified user
Refs #3389
Rename option --force to --no-confirm for clarity
Set initial user quota from the command line
Refs #3373
Add option --set-capacity in user-set-initial-quota that setsinitial quota for a specified user/resource pair.
Importing from a file requires option --from-file.
Add display options in user-list
Refs #3374
Add options --uuid, --displayname, --active, and --filter-by.filter_results() is copied locally to avoid importing from cyclades.
Improve performance of user-list
Prefetch auth providers for all users and store themin a per-user dictionary.
fix and better document quota export/import
Fix some messages
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.
Display name of terminated projects
Unify and rename project management commands
Reorder fields in user-show
pep8 improvements
Encode unicode strings in str
Improve project command help messages
Show project applicant info
cmd version of project context
Edit project management command help messages
Fix formatting of projects
fix syntax errors
Refix project list formatting
Fix user-add management command
set-password & active options
Unify astakos management command formatting
Changes in project management commandsto better expose a pending application
Fix superusers (created by syncdb) command
Restrict argument of approve_application() to application id
Change option to --check-expired
Remove call to uenc
Show `unlimited' max members
Reintroduce --app in project-show
Chain-based project management commands
Fix encoding handling in astakos commands
Change astakos user list & show commands.
Include uuid in user-list & search user also by uuid in user-show.
Rename management commands for clarity
Rename project-approve and project-deny to application-approve andapplication-deny, respectively, to make it clear that the commandsexpect an application ID.
typo fix
Display resource quota in user-show command
Fix user-add --active command
Call activate function to send also the user quota limits.
Handle project-show invalid input
Raise CommandError there is no such project
Fix syntax errorx
Use admin version of state display
Enhanced project-show
Use custom project_transaction_context in project views
Change status in project_list
Output log for project-sync
Provide project show command
Better log printing
Print log in astakos-quota-verify
Split management command into astakos-quota-verify and project-sync
Remove obsolete management command
Advances in syncing quotaholder with astakos
Factor out trigger_sync() as lock_sync() to be used for othersync 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.
Merge 'develop' into feature-projects
Needed for building devflow packages from feature-projects.
Fix messages
Management command to check and perform project expiration
Optimize project-list query
Note that select_related() does not automatically bring`related_name's, such as ProjectApplication.project.Need to specify select_related('project'), which brings`project' (but not `owner', or other related field).
Fix typo
Fix bug in user-set-initial-quota command
Fix AttributeError: 'AstakosUser' object has no attribute 'quota'
Include uuid in user-details command output
Implement project suspension and resumption
Merge membership's SUSPENDED and TERMINATED states into PROJECT_DEACTIVATED.
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.
Implement application denial
Change projects, eliminate development migrations
Change Project's state field and ProjectMembershipHistory's person field;replace all migrations starting 0015 with a single new one.
Need to check for missing data migrations.
Merge branch 'latest-quota' of https://code.grnet.gr/git/synnefo into latest-quota
Conflicts: snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/functions.py
Provide commands for importing/exporting existing user resource policies
Register a user to quotaholder only when is activated
astakos-qh-sync: skip email-unverified users
Astakos-qh-sync will create quotas for all eligible users.Users that have unverified emails are not considered eligible.When users are activated by an admin via user-update --set-active,their email is also marked as verified, therefore they become eligible.
Change layout of project-list
Service management commands update
- New service-update command- service-list now displays service order field
Better output for project-list
Project deactivation/termination
Service token should not expire by default
Fix user details command
Command to trigger syncing
Delete more obsolete code
Project update and suspend functions
Fix activation_sent assignment in user update
Fix add_quota, use user id as quotaholder entity
Fix models
Merge branch 'devel-0.13' of https://code.grnet.gr/git/astakos into latest-quota
Conflicts: snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/management/commands/service-add.py snf-astakos-app/astakos/im/messages.py snf-astakos-app/astakos/im/models.py...
Single model for ProjectApplication & Definition - Membership sync
Identation fix
User state fixes
- Never reset activation_sent date- Check for inactive users too for email/username uniqueness- Check both email/username uniquness in user creation process- Activated users should have both email_verified/activation_sent fields set