Skip to content

Conversation

@adfost
Copy link
Contributor

@adfost adfost commented Sep 9, 2021

Screen Shot 2021-09-09 at 9 40 20 AM

Adds a page showing volumes for a tenant.

@adfost adfost force-pushed the accessrulebugfix branch 3 times, most recently from 149f5fd to 67c4c3f Compare September 9, 2021 17:27
@dvaldivia dvaldivia requested review from Alevsk, bexsoft and dvaldivia and removed request for Alevsk September 9, 2021 19:25
width: 120,
},
{
label: "Tenant",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This column is redundant, please remove it

tags:
- OperatorAPI

/namespaces/{namespace}/tenants/{tenant}/list-pvcs:
Copy link
Collaborator

Choose a reason for hiding this comment

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

the verb GET implies listing, and this endpoint is about the pvc resource, can you rename it to /namespaces/{namespace}/tenants/{tenant}/pvcs

}

// List all PVCs
listAllPvcs, err2 := clientset.CoreV1().PersistentVolumeClaims("").List(ctx, listOpts)
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can actually filter by namespace here

Comment on lines 94 to 101
{
type: "view",
onClick: (record: any) => {
history.push(
`/namespaces/${record.namespace}/tenants/${record.tenant}`
);
},
},
Copy link
Collaborator

@bexsoft bexsoft Sep 9, 2021

Choose a reason for hiding this comment

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

Not sure if this action is needed as you are in the tenant and it only redirects you to summary page

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1 this action doesn't make sense for this listing, let's remove it

Copy link
Collaborator

@dvaldivia dvaldivia left a comment

Choose a reason for hiding this comment

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

Make sure you are on prettier 2.3.2

prettier --version
2.3.2

and format your files.

Comment on lines 94 to 101
{
type: "view",
onClick: (record: any) => {
history.push(
`/namespaces/${record.namespace}/tenants/${record.tenant}`
);
},
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

+1 this action doesn't make sense for this listing, let's remove it

Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

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

LGTM

@bexsoft bexsoft requested a review from dvaldivia September 11, 2021 03:44
@dvaldivia dvaldivia merged commit e6086af into minio:master Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants