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
Copy link
Copy Markdown
Member

@yadvr yadvr commented Nov 16, 2017

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
Copy link
Copy Markdown
Contributor

wido commented Nov 16, 2017

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.

Copy link
Copy Markdown
Contributor

@borisstoyanov borisstoyanov left a comment

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
Copy link
Copy Markdown
Member Author

yadvr commented Nov 16, 2017

@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
Copy link
Copy Markdown
Member Author

yadvr commented Nov 16, 2017

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
Copy link
Copy Markdown
Member Author

yadvr commented Nov 16, 2017

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

Copy link
Copy Markdown
Member

@rafaelweingartner rafaelweingartner left a comment

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.

Copy link
Copy Markdown
Contributor

@nvazquez nvazquez left a comment

Choose a reason for hiding this comment

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

Thanks @rhtyd, LGTM

@resmo
Copy link
Copy Markdown
Member

resmo commented Nov 16, 2017

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