[ZBXNEXT-4516] Rename screens to Dashboard: Rename functions and classes Created: 2017 Jul 26  Updated: 2018 May 22  Resolved: 2018 Apr 26

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 4.0.0alpha6, 4.0 (plan)

Type: Change Request Priority: Minor
Reporter: Valdis Murzins Assignee: Alexander Vladishev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: DEV-654
Team: Team B
Sprint: Sprint 21, Sprint 22, Sprint 23, Sprint 24, Sprint 25, Sprint 26, Sprint 27, Sprint 28, Sprint 29, Sprint 30, Sprint 31, Sprint 32
Story Points: 1

 Description   

Decide on correct naming for dashboard related

  • files
  • classes
  • controllers
  • widget types
  • functions

And update them accordingly.



 Comments   
Comment by Alexander Vladishev [ 2018 Apr 11 ]

The full list of the renamed elements:

Widget names, screen element names and report names
"System status"                               => "Problems by severity"
"Host status"                                 => "Problem hosts"
"Status of Zabbix"                            => "System information"
Controllers
CControllerWidgetHostsView                    => CControllerWidgetProblemHostsView
CControllerWidgetNavigationtreeView           => CControllerWidgetNavTreeView
CControllerWidgetSysmapView                   => CControllerWidgetMapView
CControllerWidgetNavigationtreeItemEditDialog => CControllerWidgetNavTreeItemEdit
CControllerWidgetNavigationtreeItemEdit       => CControllerWidgetNavTreeItemUpdate
CControllerWidgetStatusView                   => CControllerWidgetSystemInfoView
CControllerWidgetSystemView                   => CControllerWidgetProblemsBySvView
CControllerDashbrdWidgetConfig                => CControllerDashboardWidgetEdit
CControllerDashbrdWidgetCheck                 => CControllerDashboardWidgetCheck
CControllerDashbrdWidgetRfRate                => CControllerDashboardWidgetRfRate
Views
monitoring.widget.hosts.view                  => monitoring.widget.problemhosts.view
monitoring.widget.navigationtree.view         => monitoring.widget.navtree.view
monitoring.widget.sysmap.view                 => monitoring.widget.map.view
monitoring.widget.status.view                 => monitoring.widget.systeminfo.view
monitoring.widget.system.view                 => monitoring.widget.problemsbysv.view
Actions and widget types
widget.actlog.view                            => widget.actionlog.view
widget.dscvry.view                            => widget.discovery.view
widget.favgrph.view                           => widget.favgraphs.view
widget.favmap.view                            => widget.favmaps.view
widget.favscr.view                            => widget.favscreens.view
widget.hoststat.view                          => widget.problemhosts.view
widget.navigationtree.view                    => widget.navtree.view
widget.sysmap.view                            => widget.map.view
widget.webovr.view                            => widget.web.view
widget.stszbx.view                            => widget.systeminfo.view
widget.syssum.view                            => widget.problemsbysv.view
Actions
widget.navigationtree.edititemdialog          => widget.navtree.item.edit
widget.navigationtree.edititem                => widget.navtree.item.update
dashbrd.widget.config                         => dashboard.widget.edit
dashbrd.widget.check                          => dashboard.widget.check
dashbrd.widget.rfrate                         => dashboard.widget.rfrate
Constants
WIDGET_DISCOVERY_STATUS                       => WIDGET_DISCOVERY
WIDGET_FAVOURITE_GRAPHS                       => WIDGET_FAV_GRAPHS
WIDGET_FAVOURITE_MAPS                         => WIDGET_FAV_MAPS
WIDGET_FAVOURITE_SCREENS                      => WIDGET_FAV_SCREENS
WIDGET_WEB_OVERVIEW                           => WIDGET_WEB
WIDGET_SYSMAP                                 => WIDGET_MAP
WIDGET_NAVIGATION_TREE                        => WIDGET_NAV_TREE
WIDGET_DATA_OVERVIEW                          => WIDGET_DATA_OVER
WIDGET_TRIG_OVERVIEW                          => WIDGET_TRIG_OVER
WIDGET_ZABBIX_STATUS                          => WIDGET_SYSTEM_INFO
WIDGET_HOST_STATUS                            => WIDGET_PROBLEM_HOSTS
WIDGET_SYSTEM_STATUS                          => WIDGET_PROBLEMS_BY_SV
Widget configuration forms
CActionLogWidgetForm                          => CWidgetFormActionLog
CClockWidgetForm                              => CWidgetFormClock
CDataOverviewWidgetForm                       => CWidgetFormDataOver
CGraphWidgetForm                              => CWidgetFormGraph
CHostsWidgetForm                              => CWidgetFormProblemHosts
CNavigationWidgetForm                         => CWidgetFormNavTree
CPlainTextWidgetForm                          => CWidgetFormPlainText
CProblemsWidgetForm                           => CWidgetFormProblems
CSystemWidgetForm.php                         => CWidgetFormProblemsBySv.php
CSysmapWidgetForm                             => CWidgetFormMap
CTrigOverviewWidgetForm                       => CWidgetFormTrigOver
CUrlWidgetForm                                => CWidgetFormUrl
CWebWidgetForm                                => CWidgetFormWeb

Added database upgrade patch to rename old widget types by new types.

Refactored widget refresh rate controller to accept only one widget instead of array of widgets.

Comment by Alexander Vladishev [ 2018 Apr 11 ]

Available in dev branch svn://svn.zabbix.com/branches/dev/DEV-641

Comment by Alexander Vladishev [ 2018 Apr 11 ]

(1) [F] Translation strings changed:

Strings added:

  • Problem hosts
  • Problems by severity
  • System information

Strings deleted:

  • Host status
  • System status
  • Status of Zabbix

CLOSED

Comment by Alexander Vladishev [ 2018 Apr 20 ]

(2) Documentation needs to be updated

natalja.cernohajeva: necessary update has been made on all specified pages. Also, What's new 4.0 & Upgrade notes 4.0 have been updated.

As it was coordinated with vmurzins, change also affected Dashboard API, following types were re-named at Dashboard object page

TYPES
actlog -> actionlog
dscvry -> discovery
favgrph -> favgraphs
favmap -> favmaps
favscr -> favscreens
hoststat -> problemhosts
navigationtree -> navtree
stszbx -> systeminfo
sysmap -> map
syssum -> problemsbysv
webovr -> web

RESOLVED

 
sasha

  1. fixed dashboard widget/report names
  2. fixed the example in dashboard.get method (diff)
  3. updated Changes 3.4 to 4.0 (diff)

CLOSED

Comment by Nicola Mauri [ 2018 May 22 ]

I would suggest renaming "Plain text" widget too.  Something like "Items values" sounds more easy to understand to me.

Generated at Fri Mar 29 07:14:17 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.