Skip to content

Conversation

@DaanHoogland
Copy link
Contributor

Description

This PR...
Fixes: #5596

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@DaanHoogland DaanHoogland added this to the 4.16.1.0 milestone Dec 2, 2021
@DaanHoogland
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5745 (SL-JID-874)

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

lgtm

@DaanHoogland
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5745 (SL-JID-879)

Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

code LGTM

details: ['name', 'id', 'description', 'type', 'traffictype', 'vpcid', 'vlan', 'broadcasturi', 'cidr', 'ip6cidr', 'netmask', 'gateway', 'aclname', 'ispersistent', 'restartrequired', 'reservediprange', 'redundantrouter', 'networkdomain', 'zonename', 'account', 'domain'],
columns: () => {
var fields = ['name', 'state', 'type', 'vpcname', 'cidr', 'ip6cidr', 'broadcasturi', 'domain', 'account', 'zonename']
if (!['Admin'].includes(store.getters.userInfo.roletype)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

may be, this can be moved to a util method isAdmin()

Suggested change
if (!['Admin'].includes(store.getters.userInfo.roletype)) {
if (!isAdmin()) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense but

$ grep -r isAdmin\ \(\)\ \{ ui/src/*
ui/src/views/compute/KubernetesServiceTab.vue:    isAdmin () {
ui/src/views/network/CreateNetwork.vue:    isAdmin () {
ui/src/views/network/UpdateNetwork.vue:    isAdmin () {
ui/src/views/network/CreateIsolatedNetworkForm.vue:    isAdmin () {
ui/src/views/network/CreateL2NetworkForm.vue:    isAdmin () {
ui/src/views/network/CreateSharedNetworkForm.vue:    isAdmin () {
ui/src/views/offering/AddComputeOffering.vue:    isAdmin () {
ui/src/views/offering/AddDiskOffering.vue:    isAdmin () {
ui/src/views/offering/AddNetworkOffering.vue:    isAdmin () {
ui/src/views/offering/AddVpcOffering.vue:    isAdmin () {
ui/src/views/offering/UpdateOfferingAccess.vue:    isAdmin () {

I think it should also be unified and made available in a generic way, than.

@DaanHoogland DaanHoogland linked an issue Dec 6, 2021 that may be closed by this pull request
@sureshanaparti
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5745 (SL-JID-882)

Copy link

@utchoang utchoang left a comment

Choose a reason for hiding this comment

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

LGTM!

@sureshanaparti
Copy link
Contributor

Verified UI, Broadcast URI column not displayed for user.

@sureshanaparti
Copy link
Contributor

Smoke tests not required for UI changes. Merging this based on the LGTMs, manual test and travis job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

UI - As User - Broadcast URI column available to user, but blank

6 participants