Commit graph

13 commits

Author SHA1 Message Date
Ravi Srinivasa
6198cd8d9b
Alternative custom property support with dictionary handling
Introduce a first-class DirectorProperty concept that extends the existing
data-fields model with rich, structured variable types. Custom variables can
now be defined globally under a new "Custom Variables" section and assigned
to Icinga objects (hosts, services, commands, etc.).

Supported types: string, number, boolean, fixed-array, dynamic-array,
datalist-strict, datalist-non-strict, fixed-dictionary, and
dynamic-dictionary (one level of nesting allowed).

Key changes:
  - DirectorProperty object with CRUD, inheritance, and apply-for rule support
  - New form elements: Dictionary, DictionaryItem, NestedDictionary,
    NestedDictionaryItem, ArrayElement, IplBoolean
  - CustomvarController for managing global property definitions
  - VariablesController for per-object variable assignment
  - BasketSnapshotCustomVariableResolver for basket import/export of properties
  - REST API: IcingaObjectHandler extended to expose and accept structured vars
  - IcingaConfigHelper: renders dictionaries/arrays to valid Icinga 2 DSL
  - CustomVarRenderer updated for icingadb hook display
  - DB migration upgrade_192.sql: new director_property and related tables
  - CLI: MigrateCommand for migrating legacy vars to properties;
    HostsCommand for bulk host custom variable management
2026-05-15 13:41:00 +02:00
raviks789
b18cf4f80d Fix editing of custom variables for multi-selected objects 2025-03-25 15:56:11 +01:00
raviks789
5298c8ee5d IcingaMultiEditForm: Fix editing custom vars with space in their name 2024-11-07 11:21:46 +01:00
Thomas Gelf
9269b054f2 IcingaMultiEditForm: store modifications to branch
...when being in a branch
2022-02-06 19:14:35 +01:00
Thomas Gelf
da909907fd IcingaMultiEditForm: use IcingaObjectFormHook 2019-04-24 11:20:40 +02:00
Thomas Gelf
34a0179103 IcingaMultiEditForm: fix multi-object delete
fixes #677
2017-05-03 12:03:10 +02:00
Thomas Gelf
0de1987389 IcingaMultiEditForm: prepare elements before...
...adding fields

fixes #707
2017-02-17 16:41:41 +01:00
Thomas Gelf
ee0def7d2b Lots of files: make IDE users happy 2016-11-01 18:28:36 +01:00
Thomas Gelf
9414068eee IcingaMultiEditForm: remove superfluous dot 2016-10-20 02:13:19 +00:00
Thomas Gelf
a8c37695a9 IcingaMultiEditForm: translate '' to null 2016-10-14 20:13:35 +00:00
Thomas Gelf
23ef9a707c MultiEdit: make it independent of an object type 2016-10-14 18:32:34 +00:00
Thomas Gelf
6a54e00402 MultiEdit: code cleanup, add custom var support
fixes #12465
fixes #12906
fixes #11614
2016-10-14 17:17:07 +00:00
Thomas Gelf
69237b8ae9 MultiEditForm: first shot, provides imports
refs #12465
2016-10-14 13:46:06 +00:00