[ZBXNEXT-1796] Optimization of the way columns with long data are displayed in frontend Created: 2013 Jun 16  Updated: 2014 Sep 01

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 2.0.6
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Marc Assignee: Unassigned
Resolution: Unresolved Votes: 5
Labels: column, frontend, patch, unsquashable, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, CentOS-6.4, PostgreSQL 9.1.9, Apache HTTPD-2.2.15, PHP-5.3.3


Attachments: Text File ZBXNEXT-1796-2.0.8-1-ExpandReduce-hostgroups.patch     PNG File ZBXNEXT-1796-2.0.8-ExpandReduce-hostgroups.png     File ZBXNEXT-1796-2.0.8-ExpandReduce-latestdata.patch     PNG File ZBXNEXT-1796-2.0.8-ExpandReduce-latestdata.png     File ZBXNEXT-1796-2.0.8-ExpandReduce-mediatypes.patch     PNG File ZBXNEXT-1796-2.0.8-ExpandReduce-mediatypes.png     File ZBXNEXT-1796-2.0.8-ExpandReduce-templates.patch     PNG File ZBXNEXT-1796-2.0.8-ExpandReduce-templates.png     File ZBXNEXT-1796-2.0.8-ExpandReduce-triggers.patch     PNG File ZBXNEXT-1796-2.0.8-ExpandReduce-triggers.png     File ZBXNEXT-1796-2.0.8-ExpandReduce.patch     PNG File ZBXNEXT-1796-2.0.8-ExpandReduce.png     Text File ZBXNEXT-1796-2.0.8-administration.mediatypes.list.php.patch     File ZBXNEXT-1796-2.0.9-1.patch     PNG File ZBXNEXT-1796-2.0.9-ExpandReduce-hosts.png     PNG File zbxNext1796-2.2.5-2.png     File zbxNext1796-2.2.5-2.tgz     File zbxNext1796-2.2.5-3.tgz     File zbxNext1796-2.2.5-4.tgz     File zbxNext1796-2.2.5-AdministrationMediaTypesList.patch     File zbxNext1796-2.2.5-ConfigurationActionsList.patch     File zbxNext1796-2.2.5-ConfigurationItemsList.patch     File zbxNext1796-2.2.5-ConfigurationTriggersList.patch     File zbxNext1796-2.2.5-base.patch     File zbxNext1796-2.2.5-zbxNext2100.patch     PNG File zbxNext1796MonitoringItServices.png    

 Description   

There are some fields in frontend which have the potential to be quite long. That makes the frontend look really bad in some circumstances.
For some columns there is a configurable limitation which is better than nothing.

Others like:

  • 'Conditions' in 'Configuration of actions'
  • 'Expression' in 'Configuration of triggers'

are not limited in length.

I wonder if the way how to deal with such columns may be modified and extended by additional columns like the ones mentioned before.
What about not just truncating but imploding the corresponding columns in some way with the option to explode them either individually or globally?



 Comments   
Comment by Marc [ 2013 Jun 18 ]

similar to ZBX-6350

Comment by Marc [ 2013 Jun 20 ]

Column "Used in actions" in Administration -> Media types might be a candidate too

Comment by Marc [ 2013 Oct 09 ]

ZBXNEXT-1796-2.0.8-administration.mediatypes.list.php.patch makes 'CONFIGURATION OF MEDIA TYPES' honor 'Max count of elements to show inside table cell'

Comment by Marc [ 2013 Oct 12 ]

ZBXNEXT-1796-2.0.8-ExpandReduce.patch adds functionality mentioned in issue description for 'CONFIGURATION OF ACTIONS'.
All columns belonging to 'Conditions' are initially reduced to 3 lines and a text length of ZBX_TEXTBOX_FILTER_SIZE * 3.
Columns can be expanded/reduced at once or individually.

Comment by Marc [ 2013 Oct 13 ]

The patches:
ZBXNEXT-1796-2.0.8-1-ExpandReduce-hostgroups.patch
ZBXNEXT-1796-2.0.8-ExpandReduce-mediatypes.patch
ZBXNEXT-1796-2.0.8-ExpandReduce-templates.patch
ZBXNEXT-1796-2.0.8-ExpandReduce-triggers.patch
ZBXNEXT-1796-2.0.8-ExpandReduce-latestdata.patch

add expand/reduce functionality according to their file names.
These patches are build on top of initial patch ZBXNEXT-1796-2.0.8-ExpandReduce which includes the necessary java script extension.

Comment by Marc [ 2013 Nov 04 ]

Attached patch:
ZBXNEXT-1796-2.0.9.patch
Includes the complete previous patches with some slightly visual improvements and additional integration into:

  • Hosts
  • Items

ZBXNEXT-1796-2.0.9.patch lack of patch for common.js needed for behavior seen in ZBXNEXT-1796-2.0.8-ExpandReduce-latestdata.png.
Mentioned patch is included in ZBXNEXT-1796-2.0.9-1.patch

Comment by Pavels Jelisejevs (Inactive) [ 2014 May 08 ]

Not something to be squashed. Although the proposed solution looks OK from first glance, we'll still need to assess possible alternatives before fixing it.

Comment by Marc [ 2014 Aug 17 ]

Attached zbxNext1796-2.2.5-base.patch implements Expand/Reduce functionlity and is mandatory.
All other zbxNext1796-2.2.5-* patches make use of Expand/Reduce functionality in their respective site and are optional.
The patch zbxNext1796-2.2.5-zbxNext2100.patch is only useful when having ZBXNEXT-2100 patch applied

Comment by Marc [ 2014 Aug 18 ]

Attached tarball zbxNext1796-2.2.5-2.tgz includes patches based on zbxNext1796-2.2.5.* with a small modification. In completely collapsed columns the link name is now named according to the respective content (e.g. see Applications in screen-shot)

The tarball also includes some additional patches with 'HideElementOrigin' in their name.
These ones are actually not related to ZBXNEXT-1796 but make use of it.

These patches add the little Expand/Reduce (+/-) to some column heading that are used to un-/hide additional information like Zabbix proxy names in front of hosts or origins (Templates, LLD rules, etc.) of items, triggers, graphs...
This allows not only a more aligned look (think of several proxies names with different length) but also to save some space.

Having this 'patch-pack' applied should prevent almost any horizontal scroll-bar being displayed.

Comment by Marc [ 2014 Aug 21 ]

Note:
Due to the 'poor' implementation of Expand/Reduce-Patch rendering time might increase significantly.
For example execution time described in ZBX-8643 gets almost doubled when zbxNext1796-*-ConfigurationActionsList.patch is applied.

Comment by Marc [ 2014 Sep 01 ]

Attached tarball zbxNext1796-2.2.5-4.tgz additionally includes a patch for IT services:

Generated at Fri Apr 19 07:05:27 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.