Project

General

Profile

Feature #32

Provide a way to organize the Inventory display in the Hosts page

Added by Oded Ben Ozer almost 11 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Currently the Inventory display is not very useful for me because I usually need to go through multiple pages of facts to find the specific fact I need.
I think that most people have a small number of facts that are more "relevant" then others.
It will be nice to be able to choose the facts that I want to be displayed in the head of the list,Maybe via a checkbox'ble(new word ?) list of all facts names foreman has collected in the "settings" page.
Even better would be a way to explicitly set the order of these "relevant" facts - maybe vi a "move from A column to be B column" style UI.
All this would have to take into account the fact that different machines have different facts names,so a "relevant" fact might not exist on some hosts.


Related issues

Related to Foreman - Feature #87: Filtering on fact nameRejected2009-11-23
Related to Foreman - Feature #1344: Allow customization of columns in host view.Resolved2011-11-22
Related to Foreman - Feature #1403: [foreman] [UI] - tables columns should be resizableNew2011-12-19
Related to Foreman - Feature #29059: Custom field on host viewNew

History

#1 Updated by Ohad Levy almost 11 years ago

This will require some thought, as not all facts are available for every host.

I'll keep in mind once we start redoing the basic UI

#2 Updated by Oded Ben Ozer over 10 years ago

In case it wasn't clear, heres an example of a "move from A column to be B column" UI :

(uploded for Issue #82)

Even better would be and "push up" "push down" buttons so you don't need to add/remove entries to change the order.

#3 Updated by Ohad Levy about 9 years ago

  • Assignee set to Amos Benari

#4 Updated by Romain Vrignaud almost 8 years ago

  • Category set to Web Interface
  • Target version set to 1.1

For now on host page one have no choice and always see (name, OS, Env, Model, Hostgroup, LastReport) facts.
The aim of this feature is to be able to custum layout with for instance (name, OS, Hostgroup, RAM, DELL tag, Kernel version)

Maybe different layout would be save and each user could set a default layout.

#5 Updated by Benjamin Papillon almost 8 years ago

One of the admins I know asked me exactly the same feature. He don't want the OS column but the ipaddress one instead.
Customising this list can be helpful for some admins.

#6 Updated by Ohad Levy over 7 years ago

  • Target version deleted (1.1)

#7 Updated by Kristian Botnen over 7 years ago

Is there any activity on this?

Ive started implementing this on my own installation.

Ill start out with one column at first, IP-adress. That is extending the list view.

But Ill look into make the "Extra column" configurable, so that you could choose which value to put into the column. I think defaulting to IP-adress will be wise since the IP-adress will be available for all hosts.

- K -

#8 Updated by Daniel Lobato Garcia over 7 years ago

I'm implementing this on a per-user basis.

Users and non-users have some sensible defaults (current properties, name, os, environment, etc..) stored in a field in the database, User - "custom_host_table", just a string that is generated through an UI similar to the one Oded Ben Ozer posted.

When an user visits http://foreman/hosts, the page will load this list of custom columns and will populate it with whatever the user has on the mentioned "custom_host_table" property, or it will load the default values if user.current is not set.

Any chance of this going upstream?

#9 Updated by Daniel Lobato Garcia over 7 years ago

Latest foreman as of Jan 8th 2013 has something like this

What I'm doing essentially looks the same.

#10 Updated by Ohad Levy over 7 years ago

Daniel Lobato Garcia wrote:

I'm implementing this on a per-user basis.

Users and non-users have some sensible defaults (current properties, name, os, environment, etc..) stored in a field in the database, User - "custom_host_table", just a string that is generated through an UI similar to the one Oded Ben Ozer posted.

When an user visits http://foreman/hosts, the page will load this list of custom columns and will populate it with whatever the user has on the mentioned "custom_host_table" property, or it will load the default values if user.current is not set.

Any chance of this going upstream?

I would love to extend Settings model to include a User settings,
this way we could reuse the settings table and make settings smart enough to load the system wide defaults or the specific user settings (in general)

I think this would be the most flexible solution long term as well (for any type of settings that makes sense for a user to override).

#11 Updated by Benjamin Papillon almost 7 years ago

  • Related to Feature #1403: [foreman] [UI] - tables columns should be resizable added

#12 Updated by Dominic Cleal almost 7 years ago

  • Description updated (diff)

The foreman_column_view plugin also helps here, as it allows you to add an additional column to the host list or to the left of the host show page:

https://github.com/GregSutcliffe/foreman_column_view

#13 Updated by Ohad Levy almost 6 years ago

  • Assignee deleted (Amos Benari)

#14 Updated by usps tracking over 2 years ago

- removed spam -

#15 Updated by Marek Hulán 3 months ago

Also available in: Atom PDF