Icinga / icingaweb2-module-businessprocess

Create top-level views of your applications in a graphical editor. Rules express dependencies between existing hosts and services and let you alert on application level. Business processes are displayed in a tree or list overview.
https://icinga.com/docs/businessprocess/latest
GNU General Public License v2.0
108 stars 44 forks source link

Duplicate displaynames cause problems in Dropdown #427

Closed moreamazingnick closed 6 months ago

moreamazingnick commented 11 months ago

Describe the bug

Duplicate displaynames cause problems in Dropdown

To Reproduce

Example file

### Business Process Config File ###
#
# Owner           : nicolas
# AddToMenu       : yes
# Statetype       : soft
#
###################################

Storage1 = 
display 0;Storage1;Storage

Database1 = Storage1
display 1;Database1;Database
Storage2 = 
display 0;Storage2;Storage

Webserver = Storage2
display 1;Webserver;Webserver
  1. Create a BP with duplicate Service Displaynames (example file)
  2. Try to add Storage to another Process
  3. Can't differentiate which is which

Expected behavior

Render unique indetifier too for example in brackets

Screenshots

Screenshot 2023-11-17 132346 Screenshot 2023-11-17 132422

Your Environment

Include as many relevant details about the environment you experienced the problem in

moreamazingnick commented 11 months ago

what about this output?

Screenshot 2023-11-22 124907