Alignak-monitoring-contrib / alignak-webui

Web User Interface for Alignak monitoring framework
GNU Affero General Public License v3.0
8 stars 4 forks source link

Realm "alias" wrong content #287

Closed spea1 closed 7 years ago

spea1 commented 7 years ago
# -----------------------------------------------------------------------------
# alignak-object-list-realms.json
# -----------------------------------------------------------------------------
_all_children               [ (0) ]
_children                   [ (0) ]
_id                         "59331807a9fb6e02ea91662e"
_level                      0
_parent                     null
_tree_parents               [ (0) ]
alias                       ""
default                     true
definition_order            100
global_critical_threshold   5
global_warning_threshold    3
hosts_critical_threshold    5
hosts_warning_threshold     3
imported_from               "unknown"
name                        "All"
notes                       ""
services_critical_threshold 5
services_warning_threshold  3
mohierf commented 7 years ago

What is wrong with this ?

spea1 commented 7 years ago

alias in realm is empty https://github.com/Alignak-monitoring-contrib/alignak-backend-import/issues/77

realm2

mohierf commented 7 years ago

Ok. If the alias is empty, the WebUI set its value to the name field ... perharps it is not a good idea to have done this ... I will change

mohierf commented 7 years ago

Indeed, the alias is used in many places in the WebUI to display a "friendly" name for the objects. If the alias is not defined, it is replaced with the object name. This is why your realm, which has no alias, looks like having one ...

I think this behavior is a quite good solution and I will make not change for this.