Feature #1611

Add support for default quotas

Added by Carlos Martín over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:10/26/2012
Priority:NormalDue date:
Assignee:Carlos Martín% Done:

0%

Category:Core & System
Target version:Release 4.0
Resolution:fixed Pull request:

Description

Some thoughts:

If the default quotas are edited, they should be immediately available to all users and groups; otherwise users wouldn't be able to know how much resources they can consume.
Having the default quotas information inside each User and Group doesn't seem very practical, so we could try to implement it this way:
  • A quota limit of '0' is unlimited, we could say '-1' means the default one
  • Create a new xmlrpc call, something like one.system.conf or one.system.defaultquotas. The commands would make a call for the pool, another for the default quotas, and substitute the '-1' limits.

Related issues

Duplicates Feature #1317: Support skel files to set quotas automatically for new users Closed 06/27/2012

Associated revisions

Revision c04f35d5
Added by Carlos Martín over 8 years ago

Feature #1611: Start working in support for default User quotas

Revision 8ed9fa88
Added by Carlos Martín over 8 years ago

Feagture #1611: Make the default quotas work for both user and group

Revision 1fde5eca
Added by Carlos Martín over 8 years ago

Feature #1611: Add xml-rpc methods to retrieve and update the default user & group quotas

Revision 38f2a8da
Added by Carlos Martín over 8 years ago

Feature #1611: Add a top level xml element to the default quota info methods

Revision 2fd07e84
Added by Carlos Martín over 8 years ago

Feature #1611: Add default quota info and update methods to ruby oca

Revision a3b30e7b
Added by Carlos Martín over 8 years ago

Feature #1611: Show the default quotas limit in oneuser/group list

Revision b42fe133
Added by Carlos Martín over 8 years ago

Feature #1611: New (provisional?) method oneuser defaultquota

Revision edfed5e5
Added by Carlos Martín over 8 years ago

Feature #1611: Create new class DefaultQuotas, and disable the limit '-1' for def. quotas

Revision 08f8806d
Added by Carlos Martín over 8 years ago

Feature #1611: DefaultQuotas methods to & from xml

Revision c35887f3
Added by Carlos Martín over 8 years ago

Feature #1611: Add persistence to default quotas, in a new DB table

Revision 534e7934
Added by Carlos Martín over 8 years ago

Feature #1611: When a new usage quota is created, the limit is set to -1 (use default)

Revision cb136107
Added by Carlos Martín over 8 years ago

Feature #1611: Fix quota cleanup

Revision 3cbcc77b
Added by Carlos Martín over 8 years ago

Revert "Feature #1611: Add default quota info and update methods to ruby oca"

This reverts commit 2fd07e84562d3f7222c16deccaf364a4c5ba4910.

Revision f3ca471b
Added by Carlos Martín over 8 years ago

Feature #1611: Move default quotas ruby oca methods to new class System

Revision 7021d81b
Added by Carlos Martín over 8 years ago

Feature #1611: Merge default quota and individual quota update methods

Revision f4a70487
Added by Carlos Martín over 8 years ago

Feature #1611: Show default quota limits in oneuser/group show

Revision 9195c37f
Added by Carlos Martín over 8 years ago

Feature #1611: Add a simple exception message in the rare cases when a pool can be retrieved, but the def. quotas can't

Revision d2a88b03
Added by Carlos Martín over 8 years ago

Feature #1611: Use the helper client in oneuser/group defaultquota method

Revision 87f307c1
Added by Carlos Martín over 8 years ago

Feature #1611: Fix bug in onegroup/user defaultquota, file argument was ignored

Revision 84f51531
Added by Carlos Martín over 8 years ago

Feature #1611: Fix bug in Quota::cleanup_quota.

A limit of 0 now is not the default one, which means that the limit was set manually and should not be automatically cleaned

Revision fba20049
Added by Carlos Martín over 8 years ago

Feature #1611: Instead of changing negative limits to 0, report the error

Revision 9d3fb429
Added by Carlos Martín over 8 years ago

Feature #1611: Better handling of default vs non-default quotas

Revision d680315f
Added by Carlos Martín over 8 years ago

Feature #1611: Clean DefaultQuotas to/from xml methods

Revision a7acfca2
Added by Ruben S. Montero over 8 years ago

feature #1611: Safer virtual destructor for Quotas

Revision e4a601dd
Added by Ruben S. Montero over 8 years ago

feature #1611: Default attribute for quotas can only be set at initialization

Revision d6091c43
Added by Ruben S. Montero over 8 years ago

feature #1611: Abstracts system properties and system DB management

Revision 332b6bf0
Added by Carlos Martín over 8 years ago

Feature #1611: Migrator creates new system table, and changes the quota limits from '0' to '-1'

Revision 0d96871c
Added by Carlos Martín over 8 years ago

Feature #1611: Add default quotas methods to Java OCA

Revision 1433a078
Added by Carlos Martín over 8 years ago

Feature #1611: Add tests for default quotas in Java OCA

Revision 581827c8
Added by Carlos Martín over 8 years ago

Feature #1611: Start working in support for default User quotas

Revision 80c3810a
Added by Carlos Martín over 8 years ago

Feagture #1611: Make the default quotas work for both user and group

Revision e413495c
Added by Carlos Martín over 8 years ago

Feature #1611: Add xml-rpc methods to retrieve and update the default user & group quotas

Revision ef438293
Added by Carlos Martín over 8 years ago

Feature #1611: Add a top level xml element to the default quota info methods

Revision 9cc2c8f8
Added by Carlos Martín over 8 years ago

Feature #1611: Add default quota info and update methods to ruby oca

Revision 2f17547e
Added by Carlos Martín over 8 years ago

Feature #1611: Show the default quotas limit in oneuser/group list

Revision 0aa5df9b
Added by Carlos Martín over 8 years ago

Feature #1611: New (provisional?) method oneuser defaultquota

Revision cad2422f
Added by Carlos Martín over 8 years ago

Feature #1611: Create new class DefaultQuotas, and disable the limit '-1' for def. quotas

Revision dad6caf0
Added by Carlos Martín over 8 years ago

Feature #1611: DefaultQuotas methods to & from xml

Revision 855d34f9
Added by Carlos Martín over 8 years ago

Feature #1611: Add persistence to default quotas, in a new DB table

Revision 78d95b87
Added by Carlos Martín over 8 years ago

Feature #1611: When a new usage quota is created, the limit is set to -1 (use default)

Revision 9bdb6931
Added by Carlos Martín over 8 years ago

Feature #1611: Fix quota cleanup

Revision 3ccedecb
Added by Carlos Martín over 8 years ago

Revert "Feature #1611: Add default quota info and update methods to ruby oca"

This reverts commit 2fd07e84562d3f7222c16deccaf364a4c5ba4910.

Revision 03728207
Added by Carlos Martín over 8 years ago

Feature #1611: Move default quotas ruby oca methods to new class System

Revision bd3178e9
Added by Carlos Martín over 8 years ago

Feature #1611: Merge default quota and individual quota update methods

Revision c70d5593
Added by Carlos Martín over 8 years ago

Feature #1611: Show default quota limits in oneuser/group show

Revision 1a481947
Added by Carlos Martín over 8 years ago

Feature #1611: Add a simple exception message in the rare cases when a pool can be retrieved, but the def. quotas can't

Revision b0f65f9e
Added by Carlos Martín over 8 years ago

Feature #1611: Use the helper client in oneuser/group defaultquota method

Revision f9e2017b
Added by Carlos Martín over 8 years ago

Feature #1611: Fix bug in onegroup/user defaultquota, file argument was ignored

Revision 645655f0
Added by Carlos Martín over 8 years ago

Feature #1611: Fix bug in Quota::cleanup_quota.

A limit of 0 now is not the default one, which means that the limit was set manually and should not be automatically cleaned

Revision 5a987f25
Added by Carlos Martín over 8 years ago

Feature #1611: Instead of changing negative limits to 0, report the error

Revision 71e4f381
Added by Carlos Martín over 8 years ago

Feature #1611: Better handling of default vs non-default quotas

Revision b874ead9
Added by Carlos Martín over 8 years ago

Feature #1611: Clean DefaultQuotas to/from xml methods

Revision 046673f8
Added by Ruben S. Montero over 8 years ago

feature #1611: Safer virtual destructor for Quotas

Revision ca609e98
Added by Ruben S. Montero over 8 years ago

feature #1611: Default attribute for quotas can only be set at initialization

Revision 4865ee98
Added by Ruben S. Montero over 8 years ago

feature #1611: Abstracts system properties and system DB management

Revision d3017487
Added by Carlos Martín over 8 years ago

Feature #1611: Migrator creates new system table, and changes the quota limits from '0' to '-1'

Revision 9e3b533e
Added by Carlos Martín over 8 years ago

Feature #1611: Add default quotas methods to Java OCA

Revision 94f90035
Added by Carlos Martín over 8 years ago

Feature #1611: Add tests for default quotas in Java OCA

Revision 9179e73a
Added by Carlos Martín over 8 years ago

Feature #1611: Insert default quotas element in the USER & USER_POOL xmls

This saves the extra xmlrpc call each time the pool/user is shown

Revision c40fdb1d
Added by Carlos Martín over 8 years ago

Feature #1611: Do not parse xml strings again in the cli

History

#1 Updated by Ruben S. Montero over 8 years ago

  • Status changed from New to Closed
  • Assignee set to Carlos Martín
  • Resolution set to fixed

Also available in: Atom PDF