dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

New dashboard UI: Ability to customize custom resource list view columns and filter by resource fields

Open axeal opened this issue 5 years ago • 1 comments

What kind of request is this (question/bug/enhancement/feature request):

Feature request

Steps to reproduce (least amount of steps as possible):

The user would like the ability to customize the list view of a custom resource type in the new dashboard UI, such that they can display fields from a custom resource. Alongside this they would like the ability to filter the custom resource view based on fields in the custom resource, and not just the name of the custom resource instance.

Environment information

  • Rancher v2.4.5

gz#11879

axeal avatar Aug 21 '20 10:08 axeal

Internal reference: SURE-2364

gaktive avatar Apr 21 '22 23:04 gaktive

This is possible with the Advanced Filter feature (both column visibility and custom filtering). It's only enabled in some Elemental resources though, and requires some tweaks before it's applied generically to all lists (@aalves08 can provide links to PRs/issues)

richard-cox avatar Nov 08 '22 13:11 richard-cox

The feature is available for usage in rancher/dashboard from this PR (merged): https://github.com/rancher/dashboard/pull/7134

It can filter by the table cols displayed (if they allow to do so) and also the resource labels, with the application of multiple filters which work with partial search + the user has the ability to display labels as table cols as well.

To activate, just apply the flag hasAdvancedFiltering to the ResourceList component

Ex: <ResourceList :has-advanced-filtering="true" />

aalves08 avatar Nov 08 '22 15:11 aalves08

This feature is now available, I'm closing this.

manuelecarlini avatar Nov 09 '22 12:11 manuelecarlini

Reopening for QA to test out. Related PR (which wasn't linked): https://github.com/rancher/dashboard/pull/7134

gaktive avatar Nov 17 '22 23:11 gaktive

I think there's been some confusion. The feature is now available but has only been applied to Elemental resources. Think the ask here is to have the feature available for CRDs.

In this context we should probably work out how to persist these settings per user?

richard-cox avatar Nov 21 '22 09:11 richard-cox

@mantis-toboggan-md Need to discuss this one - its about CRD table views, not the advanced filtering.

nwmac avatar Nov 22 '22 10:11 nwmac

Here's a mockup: https://xd.adobe.com/view/7d08b50a-526b-466b-9ca4-f222a9f9e0ad-285b/

It adds a page in the Global Settings in which the user can introspect a cluster to define which table columns to show on tables of that resource type across all clusters.

kwwii avatar Nov 24 '22 16:11 kwwii