Abhinandan Prateek
4d911fc3b7
QUOTA: fix admin account check, add debug info for serv ice offering, mv
...
credit entry check to a boolena method
2015-12-18 18:32:35 +05:30
Abhinandan Prateek
3b18d74be6
CLOUDSTACK-9174: A deleted account results in NPE
...
When an account is deleted from cloudstack for which quota is still
being calculated and if the quota reaches minimum threshold then
quota service will try to alert the user. This results in NPE and is
fixed by excluding such accounts from alerting and other quota related
mechanisms.
2015-12-17 11:12:25 +05:30
Abhinandan Prateek
a0c90a364e
CLOUDSTACK-9153: When negative credits are added to an account the
...
balance credits can become negative for that account. This will fix will
lock the account if quota is enforced.
2015-12-14 15:31:22 +05:30
Abhinandan Prateek
5bead93672
CLOUDSTACK-9161: fix the quota marvin test
...
1. Create a dummy user, as existing user may already have stale quota
data
2. fix the tests to use the dummy user
3. a boundary condition was revealed and fixed for a new user where
quota service has never run and created bootstrap entries
2015-12-14 15:30:41 +05:30
Abhinandan Prateek
3c7d45589a
QUOTA: Ensuring that the dates displayed are as per user expectations
...
When querying db we use start of next day to query quota usage for
today, but while displaying it to user we still need to show it as
todays date
2015-12-14 15:29:23 +05:30
Abhinandan Prateek
128be3a05b
CLOUDSTACK-9131: Create a new API to check if the plugin is enabled.
2015-12-09 17:11:18 +05:30
Abhinandan Prateek
d928c0dfa5
QUOTA: ENSURING THAT THE DATES DISPLAYED ARE AS PER USER EXPECTATIONS
...
When querying db we use start of next day to query quota usage for
today, but while displaying it to user we still need to show it as
todays date
2015-12-08 09:59:06 +05:30
Abhinandan Prateek
58b3769590
QUOTA REVIEW FIXES
...
Removing tests for start and stop as there is no logic there to test
2015-12-07 12:26:57 +05:30
Abhinandan Prateek
f08a3ee824
QUOTA REVIEW FIXES
...
1. reveiw fixes
2. cleaning hardcoded text from quota.js
3. fixed test cases
2015-12-07 12:04:35 +05:30
Abhinandan Prateek
0151cda7dd
CLOUDSTACK-8592: optimization and fixes
...
1. Process usage entries that have greater than 0 usage
2. Process quota entries only if tariff is non zero
3. If there are credit entries but no balance entry create a dummy
balance entry
4. Remove any credit entries that are before the last balance entry
when displaying balance statement
5. Bug: write the balance entry, boundary condition
2015-12-05 17:37:11 +05:30
Abhinandan Prateek
1e8dc864e9
CLOUDSTACK-8592: adding summary, full listing and enforce quota fix
2015-12-03 12:04:38 +05:30
Abhinandan Prateek
785a2a16ad
CLOUDSTACK-8592: fix misc UI and authorization issues
2015-12-02 14:26:01 +05:30
Abhinandan Prateek
40c95da664
CLOUDSTACK-8592: quota UI with summary page linked to quota usage and
...
quota balance
2015-11-18 15:08:39 +05:30
Abhinandan Prateek
9de4211f5a
CLOUDSTACK-8592: add start and end date with each quota entry
2015-11-16 09:54:19 +05:30
Abhinandan Prateek
ecd6b2084e
CLOUDSTACK-8592: code review fix for empty check on lists
2015-11-16 09:52:00 +05:30
Abhinandan Prateek
8308aa8851
CLOUDSTACK-8592: in case of no quota values available for a period
...
return 0 quota usage and 0 balance, instead of throwing invalid param
exception on dates
2015-11-10 14:48:13 +05:30
Abhinandan Prateek
9b2cf8a2f7
CLOUDSTACK-8592: defined quota labels
2015-11-10 13:29:17 +05:30
Abhinandan Prateek
9c99d036b6
CLOUDSTACK-8592: initial ui changes
2015-11-06 14:54:28 +05:30
Abhinandan Prateek
db3c1bbd79
CLOUDSTACK-8592: Report quotaSummary command returns quota balance, quota usage and
...
state for all account.
2015-11-05 14:19:16 +05:30
Abhinandan Prateek
d9e3b4c922
CLOUDSTACK-8592: adding quotaUpdateCmd that refreshes quota balances,
...
and, sends alerts and statements
2015-11-05 10:25:48 +05:30
Abhinandan Prateek
b4462dc3fd
CLOUDSTACK-8592: adding balance summary report
2015-11-04 17:41:20 +05:30
Abhinandan Prateek
3102dbc59f
CLOUDSTACK-8592: Making statement period configurable
2015-11-03 20:35:47 +05:30
Abhinandan Prateek
c79a2f6f84
CLOUDSTACK-8592: quota framework test fixes
2015-10-30 13:12:49 +05:30
Rohit Yadav
b63778c4b2
quota: fix pom version, causes build failures
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-30 11:57:46 +05:30
Abhinandan Prateek
c909df56e9
CLOUDSTACK-8592: reverting test code
2015-10-29 20:19:21 +05:30
Abhinandan Prateek
fe21b4ddb6
CLOUDSTACK-8592:removing test code
2015-10-29 12:40:30 +05:30
Abhinandan Prateek
5161da6abf
CLOUDSTACK-8592: misc fixes, mainly related to review comments on db
...
transactions
2015-10-29 12:40:17 +05:30
Abhinandan Prateek
6c246acc16
CLOUDSTACK-8592: fixed various Quota*DaoImpls to use the new Transaction
...
callback mechanism
2015-10-21 14:26:50 +05:30
Abhinandan Prateek
cb0fde68f8
CLOUDSTACK-8592: fixed QuotaBalanceDaoImpl to use the new Transaction
2015-10-21 14:26:35 +05:30
Abhinandan Prateek
86e2e279a7
CLOUDSTACK-8592: fixed QuotaTariffDao to use the new Transaction
...
callback pattern
2015-10-21 14:26:05 +05:30
Abhinandan Prateek
677564f7ee
CLOUDSTACK-8592: fix sort order for tariff
2015-10-21 14:25:37 +05:30
Abhinandan Prateek
722805e418
CLOUDSTACK-8592: Incorporating PR changes for quota plugin
2015-10-21 14:25:13 +05:30
Rohit Yadav
7a228f66d2
CLOUDSTACK-8592: Incorporate changes from PR in quota framework and plugin
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-21 14:24:59 +05:30
Rohit Yadav
892a6ebbe5
CLOUDSTACK-8592: Add more unit tests
...
- unit tests for UsageTypes
- unit tests for all Cmd classes
- unit tests for all service and manager impls
- try-catch-finally or try-with-resource in dao impls for failsafe db switching
- remove dead code
- add missing quota calculation case (regression fixed)
- replace tabs with spaces in pom.xmls
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-21 14:22:53 +05:30
Abhinandan Prateek
9808321cf3
CLOUDSTACK-8592: Add changes from review
...
- added marvin test for quota plugin API
- removed unused commented code
- debug messages in debug enabled check
- checks for nulls, fixed access to member variables and feature
- changes based on PR comments
2015-10-21 14:22:37 +05:30
Rohit Yadav
bf5d388d91
quota: check if quota is enabled, only then expose APIs
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-07 10:58:36 +05:30
Abhinandan Prateek
ed28e4ff19
Revert "quota: fixes"
...
This reverts commit fc95ece6cb .
2015-08-04 12:07:31 +05:30
Abhinandan Prateek
173f6ba730
quota:fixes
2015-08-04 11:45:25 +05:30
Abhinandan Prateek
b38f73805a
quota: added checks for quota enforce and threshold per account
2015-08-04 10:29:33 +05:30
Rohit Yadav
57bc5cb904
quota: minor credits ui fixes
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-03 15:33:48 +05:30
Abhinandan Prateek
fc95ece6cb
quota: fixes
2015-08-03 14:15:31 +05:30
Abhinandan Prateek
b0a8598c3c
quota: even if there is no usage for some resources show them in the
...
statement.
2015-08-03 13:32:00 +05:30
Abhinandan Prateek
8943839380
quota: due to interpackage dependency the account lock functionality is pulled
...
into usage
2015-08-03 11:56:25 +05:30
Abhinandan Prateek
bd1d12d830
quota: added min_balance and quota enforce for each account
2015-08-03 09:42:39 +05:30
Abhinandan Prateek
8c81b02d9e
quota: fine tuning dates
2015-07-31 12:42:35 +05:30
Rohit Yadav
9d82488342
quota: send currency with add credits response
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-30 17:31:02 +05:30
Abhinandan Prateek
50c579de3d
quota: restructured/refactored to make quota run inside the usage server
2015-07-30 16:40:39 +05:30
Abhinandan Prateek
2f7ebc7c54
quota: fixed permisison and date flip
2015-07-29 19:34:14 +05:30
Abhinandan Prateek
7c4c67b520
quota fixed misc boundary conditions
2015-07-29 17:20:58 +05:30
Rohit Yadav
60125d3a4e
quota: add quota monthly statement email template
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-29 12:04:23 +05:30