749 Commits

Author SHA1 Message Date
Rohit Yadav
1b548b38dc component: refactor and improve resource count usage
Fixes and improves work started in #459

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rohit Yadav
bd00148741 autogenview: use pagesize 20 for desktop users, 10 otherwise
Fixes #489

Set default page size based on screentype, for FHD/4K displays if device
type is desktop use pagesize 20; otherwise use default pagesize of 10.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rohit Yadav
37049622dc compute: allow delete VM group action
Fixes #486

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rohit Yadav
d78fc60d73 image: fix register and edit template and iso cases
Fixes #492

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
davidjumani
56ca7331d6 component: Adding contextual info for resource status (#482)
Fixes #466

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Pearl Dsilva
84cba65c0e image: Hide status column for users other than Root admin (#480)
Fixes #476

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rakesh
fc5bb9f123 component: reusable resource count component for domain, account and projects (#459)
Currenlty "Domain Admins" cannot see how much resources
they are consuming for their domain.
So display a "Resource Count" tab which displays the
current usage and the total allocated resoures

Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Hoang Nguyen
b61c4ae35d plugin: Quota plugin (#298)
Fixes #295

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
davidjumani
30c4e3fae0 compute: Creating custom form to delete vm (#478)
Fixes #477

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Pearl Dsilva
5124467010 config: Hide order column for non-admins in templates view (#474)
Fixes  #473

Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
davidjumani
4fa8c37183 src: Diabling actions for readonly admin (#469)
Fixes #467

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
sureshanaparti
ec056cd280 iam: UI changes for Dynamic roles improvements (#353)
This PR addresses the below UI improvements for current Dynamic roles functionality.

Export rules of a role to a CSV file, with name: .csv_
Import a role with its rules using a CSV file.
Create a role from any of the existing role.

Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Hoang Nguyen
7e7dbaf65c compute: VM deployment form group template/iso (#470)
Fixes #468

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Hoang Nguyen
360bc5f050 infra: Add support to manage network service providers (#252)
Fixes #250

 - Add support for all the network service providers which are not already supported
 - Each NSP must be implemented in its separate component
 - For each NSP component, add buttons and their forms in a modal and display a list of such NSP devices/resources in a table with pagination

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rohit Yadav
fdfa38ac78 auth: wait for auto-discovery before showing view
This partially reverts change from
b194ad205b558803b7a1c0c8cc177e5b14e80835 which introduces loading of
dashboard while auto-discovery takes place in background. The cons is
that user will feel that login is taking time, but he'll be allowed to
redirect to a page before session timeout/logout. In #456 a similar
usability issue was added. However, a tab refresh will be faster
because in b194ad205b558803b7a1c0c8cc177e5b14e80835 we've added support
for using cached discovered APIs.

Fixes #456

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rohit Yadav
5c066bf96c network: fix network related issues
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rohit Yadav
1edb992710 src: router-link fixes
Fixes router-link issues for user role

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rohit Yadav
0420ddb6a2 config: remove redundant information for VM
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Rohit Yadav
c3658eacdd config: implement group actions for vm, event and alerts
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:20 +05:30
Pearl Dsilva
2af61a2ddf iam: account form with saml option (#170)
- New accounts form with option to enable SAML when applicable
- LDAP import form with saml support
- SAML authorisation action form for users

Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
a8c9f2a339 listview: Fixing change order available to read only admin (#461)
Fixes #457

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
538e87652a src: fix translation key usage
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
af87c93e7d compute: Adding custom Vue to change the vm service offering (#413)
Fixes #381

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
0e933a2a84 iam: Fixing ldap form (#444)
Fixes #112

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
68989bd939 infocard: show project for resources having a projectid
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
039f4429a7 views: show doclink icon for custom action forms
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
7c4c21f489 config: fix column label to say VM name for backups in listview
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 9d3f040c16087ec2e511098a03a28407f8267bdb)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
4dc6f84c62 auth: Removing setting a cookie for sessionkey (#453)
Primate should not set sessionkey cookie

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
c38a1e4bf5 autogenview: switch project if a valid UUID projectid query is passed
Fixes #450

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
d6f6487813 config: allow admins to configure global footer html
Fixes #452

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Abhishek Kumar
1a3e659958 autogenview: fix fill edit/update forms (#441)
Fix update host form issue (update forms in general)
Fixes #417

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
28b1b9dbe8 compute: Adding custom change affinity view (#419)
Fixes #386

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Abhishek Kumar
10e6d59bc1 infra: vr healthcheck (#428)
Fixes #362

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Hoang Nguyen
029e13c37d network: Add support for tiers in PF, LB rules for a VPC (#379)
Fixes #333
Fixes #438

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
d0d71c2c03 network: Adding pvlan option for l2 and fixing passing none for no pvlan type (#373)
This adds the option to create PVLAN for L2 networks, as well as fixes the issue caused by passing 'none' as the PVLAN type when no secondary VLAN type is selected.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rakesh
bcdb8f4067 iam: Allow creating Compute/Disk offering as Domain admin (#446)
Currently only "ROOT" admin can create compute and
disk offering. If we login as domain admin then we
cant create a compute and disk offering as domain
id's is not passed to the api. If we login as
domain admin we need to set "isPublic" to false
so that domain id list will be displayed

Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Hoang Nguyen
ac0e5daabd config: support custom color for @link-color (#445)
Fixes #442

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
f70fc408be sections: add doc links (#435)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Pearl Dsilva
92e0c5a405 store: Get logged in user's info (#440)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Hoang Nguyen
50327ae339 primate: Add support for UI customisation (#372)
- New config.json global config file
- Customisation: API endpoint, app name, doc link, logo, error and banner images, theme
- Basic external plugin support to allow users to write UI plugins in any framework, build and import/plug a html file as integration

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
0c0181511d compute: new instance hardware component
Refactor existing component in line of the VPC tab component

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
0f2cfa8817 config: icon and action loading fixes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
32cc572a35 config: implement togglable metrics view
Metrics view switch for vm, volume, zone, cluster, host and storagepool

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
1b02a732c5 dashboard: loading and assorted fixes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
c7added60b infra: fix rbd pool user decorator
Fixes #437

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
775739d751 components: Fix show details in settings tab (#433)
Fixes #393

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
davidjumani
71fbb6b84a network: Add bypassvlanoverlapcheck parameter when create private gateway (#431)
Fixes #403

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Hoang Nguyen
d857979b9e compute: New Instance dialog improvements (#401)
* add scroll to vm info

* fix "un-choose" the Zone/Pod/Host and row selected when changing page sections

* remove 'un-choose' selection in zone, cluster, pod, host

* fix issue when selected page, hidden cpu/ram affinity groups

* revert affinityGroup total count

* fix error lint & disk offering selection

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Rohit Yadav
aed9e4cca6 network: don't show acquire public IP in listview
The acquire IP feature is already implemented as a tab feature for
isolated networks and VPC.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30
Hoang Nguyen
20d3c62e44 network: Acquire public IP address does not give IP selection option (#423)
Fixes  #392

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:19 +05:30