icingaweb2-module-director icon indicating copy to clipboard operation
icingaweb2-module-director copied to clipboard

Changing the basket definition removes all other custom objects

Open w1ll-i-code opened this issue 1 year ago • 0 comments
trafficstars

Expected Behavior

Editing the basket after objects where added should not reset the basket.

Current Behavior

If you try to change the baskets definition it will be overwritten

Possible Solution

If the object already exists in the database, update the structure, but keep other objects in.

Steps to Reproduce (for bugs)

  • create a basket with Custom Selection command
  • add a command to the basket
  • change basket definition to also include Command Template
  • Notice that the command previously added was removed from the basket.

Your Environment

  • Director version (System - About): 1.11.0
  • Icinga Web 2 version and modules (System - About): 2.10.5
  • Icinga 2 version (icinga2 --version): r2.14.0-1
  • Operating System and version: rhel 8.9
  • Webserver, PHP versions: 7.4.33

w1ll-i-code avatar Jan 11 '24 14:01 w1ll-i-code