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
Rohit Yadav
323e29bd93
CLOUDSTACK-8701: Add administrative contact block as per SAML IDP expectations
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-30 10:38:39 +05:30
Rohit Yadav
24cf1917b9
CLOUDSTACK-8301: Enable configuring local storage use for system VMs at zone level
...
Backported from #263 for 4.5 branch, original bugfix by @koushik-das et al
More information on:
https://issues.apache.org/jira/browse/CLOUDSTACK-8301
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Enable+configuring+local+storage+use+for+system+VMs+at+zone+level
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit f28287b66c )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-30 10:38:02 +05:30
Rohit Yadav
65f6851603
CLOUDSTACK-8701: Allow SAML users to switch accounts
...
SAML authorized accounts might be across various domains, this allows for
switching of accounts only in case of SAML authenticated user accounts across
other accounts with the same SAML uid/username.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit d3bc159784835b112027a7460647f8750588770a)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-30 10:37:43 +05:30
Rohit Yadav
5571b76cda
CLOUDSTACK-8505: Don't allow non-POST requests for default login API
...
We add a new contract to pass Http request to authentication plugin system. In
the default login API, we disallow non-POST requests.
(cherry picked from commit 9e9b231672 )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Conflicts:
plugins/user-authenticators/saml2/src/org/apache/cloudstack/api/command/SAML2LoginAPIAuthenticatorCmd.java
server/src/com/cloud/api/ApiServlet.java
(cherry picked from commit 8b9b4832f483797c8ab123bf27262634430efcb9)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-30 10:37:43 +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
Rohit Yadav
b2dd5e1374
quota: fix ui to grab currency from the response
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-29 11:45:31 +05:30
Rohit Yadav
def9e90956
quota: add currency to list/readonly apis
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-29 11:35:12 +05:30