Skip to content

CLOUDSTACK-10129: Show account, network info in VR list view#2327

Merged
yadvr merged 1 commit into
apache:masterfrom
shapeblue:vr-view-fix
Nov 16, 2017
Merged

CLOUDSTACK-10129: Show account, network info in VR list view#2327
yadvr merged 1 commit into
apache:masterfrom
shapeblue:vr-view-fix

Conversation

@yadvr

@yadvr yadvr commented Nov 16, 2017

Copy link
Copy Markdown
Member

This shows the owner account and network of a VR in the VR list view,
and for VPCs shows the VPC name and redundant state of the VPC rVR.

screenshot from 2017-11-16 10-30-45

Pinging for review @PaulAngus @borisstoyanov @resmo @nvazquez @DaanHoogland @wido @ustcweizhou @rafaelweingartner and others

@wido

wido commented Nov 16, 2017

Copy link
Copy Markdown
Contributor

LGTM based on the code

@wido wido added this to the 4.11 milestone Nov 16, 2017
@ustcweizhou

Copy link
Copy Markdown
Contributor

@rhtyd I suggest to show 'Network' or 'VPC' in 'Type' field, and show the network/vpc name in 'Network' field.

@borisstoyanov borisstoyanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just UI change no need to run integration tests

@yadvr

yadvr commented Nov 16, 2017

Copy link
Copy Markdown
Member Author

@ustcweizhou thanks, I see your point. The router type is not something return by the API, but set by the UI limited to VPC, Project and System. I think it may be a good idea to show network/vpc/project name in another column, probably not under the 'network' column?

This shows the owner account and network of a VR in the VR list view,
and for VPCs shows the VPC name and redundant state of the VPC rVR.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr

yadvr commented Nov 16, 2017

Copy link
Copy Markdown
Member Author

I made some more changes considering suggestions from @ustcweizhou and now, we show project names in Account tab and VPC name (with redundant router state in parenthesis) in network column: (this is not perfect but useful in knowing what VR belongs to what account/project or vpcs)
screenshot from 2017-11-16 16-45-51

@yadvr

yadvr commented Nov 16, 2017

Copy link
Copy Markdown
Member Author

Can you re-review @wido @ustcweizhou @borisstoyanov thanks.

@rafaelweingartner rafaelweingartner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM here
@rhtyd I only have a minor remark there.

Comment thread ui/scripts/system.js
router.guestnetworkname = router.vpcname;
}

if ("isredundantrouter" in router && router.isredundantrouter) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you can use directly router.isredundantrouter here without needing to check if the property isredundantrouter exists in the object router; undefined is interpreted as false.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I get defensive writing code. I guess this is not be necessary here.

@nvazquez nvazquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rhtyd, LGTM

@resmo

resmo commented Nov 16, 2017

Copy link
Copy Markdown
Member

LGTM

@yadvr yadvr merged commit a1008f9 into apache:master Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants