Commit graph

878 commits

Author SHA1 Message Date
Johannes Meyer
e2f792e69a ci: Let the icingabot trigger L10n updates 2020-05-27 09:19:12 +02:00
Eric Lippmann
346ace79d0
Merge pull request #282 from Icinga/fix/handled-node-rendering
Fix rendering of state-balls for critical-handled nodes
2020-05-27 08:25:47 +02:00
Eric Lippmann
5037d8fea0
Merge pull request #280 from Icinga/fix/delete-node-rendering
Fix tile rendering for Bp nodes with unconfirmed deleted monitored nodes
2020-05-27 08:24:51 +02:00
Eric Lippmann
e0dffd34a0 Raise version to 2.3.0 2020-05-27 08:24:30 +02:00
Ravi Kumar Kempapura Srinivasa
49bc0dd363 Use the correct state-balls for critical/down-handled nodes in TreeRenderer::render()
Use the state-balls that are added for critical/down-handled nodes in TreeRenderer::render(), in case the nodes are critical/down and handled.
2020-05-27 08:23:41 +02:00
Ravi Kumar Kempapura Srinivasa
b3686906a5 Use the correct state-balls for critical/down-handled nodes in NodeTile::render()
Use the state-balls that are added for critical/down-handled nodes in NodeTile::render(), in case the nodes are critical/down and handled.
2020-05-27 08:23:16 +02:00
Ravi Kumar Kempapura Srinivasa
aaba2fb884 Introduce state-balls for critical/down-handled nodes
Earlier we did not have different state-balls for critical/down-handled nodes. They were assigned critical/down state-balls. Now, we are introducing new state-balls for these nodes.
2020-05-27 08:22:27 +02:00
Ravi Kumar Kempapura Srinivasa
b39d953fee Fix tile rendering for Bp nodes with unconfirmed deleted monitored nodes
Earlier in NodeRemoveAction the states were recalculated for the BpNodes. Hence, the state for parent nodes with unconfirmed deleted monitored nodes (host/service) is set to Unknown. This results in incorrect tile rendering for the parent nodes. Therefore, any call to methods which recalculate the states are removed.

fix #279
2020-05-19 16:42:09 +02:00
Eric Lippmann
a212d6ea5e
Merge pull request #272 from Icinga/fix/emptyNode-count1-#225
Fix problems with empty nodes
2020-05-14 10:29:55 +02:00
Eric Lippmann
6b5afa63c8
Merge pull request #274 from Icinga/unify-documentation
Update docs for operators and about section
2020-05-14 09:55:45 +02:00
Niko Martini
c22d4b648a Document operators
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2020-05-11 14:29:29 +02:00
Eric Lippmann
e50ba76e35 doc: Remove outdated files 2020-05-11 14:28:15 +02:00
Eric Lippmann
1778519ad7 doc: Introduce about section 2020-05-11 14:26:54 +02:00
Eric Lippmann
eca9f779a9 doc: Move chapters 2020-05-11 14:26:36 +02:00
Ravi Kumar Kempapura Srinivasa
1bc6bf6236 Use gray tiles and state-balls for the entire branch of empty BpNode
The node state is recursively calculated in case the node contains only BpNodes as its children and are empty. The gray tiles and state-balls are used for the entire branch if the children are empty.
2020-05-11 11:45:33 +02:00
Ravi Kumar Kempapura Srinivasa
6cc5eb8e74 Check recursively for Empty BpNodes
In BpNode::recalculateState() the BpNode needs to be recursively checked if its children is empty using BpNode::isEmpty() instead of BpNode::hasChildren().
2020-05-11 11:45:27 +02:00
Ravi Kumar Kempapura Srinivasa
e19612bd4a Extend abstract isEmpty() method to check for empty nodes in child nodes
We need to check recurively whether the BP Nodes contatin only child BpNodes which are empty and set the entire tree to state NODE_EMPTY state in this case.
2020-05-11 11:45:17 +02:00
Ravi Kumar Kempapura Srinivasa
51c7fdf6c9 Fix 'Trying to access a missing business process node <$name>'
If the imported node is empty or was deleted at a later time, then in NodeTile::render() $link should not be rendered. Also, NodeTile::addDetailsAction() should not add a `href` to this tile.
2020-05-11 11:45:05 +02:00
Ravi Kumar Kempapura Srinivasa
d8567896f2 Fix 'missing node' errors for empty child nodes
Before the child empty nodes where set to missing nodes by BpNode::isMissing().

This has been corrected in this fix by checking if whether a child node is an empty node or not.
2020-05-11 11:44:55 +02:00
Ravi Kumar Kempapura Srinivasa
233e9758fa Show gray tiles and gray state badges for empty states
New tiles and state badges that are of color gray is introduced for empty nodes.
2020-05-11 11:44:50 +02:00
Ravi Kumar Kempapura Srinivasa
7de814a4af Set state to NODE_EMPTY in case of empty nodes
In case of empty nodes, the state is set to NODE_EMPTY now.
2020-05-11 11:44:41 +02:00
Ravi Kumar Kempapura Srinivasa
e533ff95f5 Introduce NODE_EMPTY state for empty nodes
An empty node state called `NODE_EMPTY` has been introduced with a value of 128 in class `Node`, and this state has been mapped to value *0* in structure `$stateToSortStateMap`.
2020-05-11 11:44:30 +02:00
Ravi Kumar Kempapura Srinivasa
32abce2529 Don't show state-badges for empty nodes
Before, the empty nodes were to be considered as missing nodes. Correspondingly, the counter for missing in BpNode::getStateSummary() was increased if an empty node is encountered.

Now, the empty nodes are not assumed as missing nodes and the counter for missing is not increased for this case.
2020-05-11 11:44:14 +02:00
Johannes Meyer
0892d1e90b Add L10n-update workflow 2020-04-30 11:19:42 +02:00
Johannes Meyer
6c4b75acb7
Merge pull request #273 from Icinga/fix/php74-compat
Fix PHP 7.4 compatibility
2020-02-27 13:25:50 +01:00
Johannes Meyer
d2d64365b6 php-diff: Don't use curly braces for string offset access 2020-02-27 10:41:54 +01:00
Eric Lippmann
a06fba34b3 Remove abstract function Node::__construct() 2020-02-27 10:08:16 +01:00
[.::MDT::.]
df29918a75 Update 81-History.md
fix typo
2020-02-26 15:10:20 +01:00
Ravi Kumar Kempapura Srinivasa
f5166f4348 Fix 'vsprintf(): Too few arguments' unexisting imported node exception
If the imported node does not exist, no arguments is  passed to BpConfig::addError() by ImportedNode::createFailedNode(). Added 'if' condition in BpConfig::addError() in case no arguments are passed to vsprintf.

refs #234
2020-02-26 15:09:17 +01:00
Ravi Kumar Kempapura Srinivasa
1278480b6e Fix 'vsprintf(): Too few arguments' in ProcessController::showAction()
Before, we called printf twice because BpConfig::addError()
already makes use of printf. The exception only occured for
nodes that have a percent sign (%) in their name.

fixes #234
2020-02-26 15:09:17 +01:00
mdkamijo
3ffbce0709
Make it possible to delete imported nodes (#248)
It is possible to import process nodes from other processes. But there
are no way, via the GUI, to remove the imported process nodes from the
current process/process node.
This commit makes it possible to remove imported process nodes, no matter
where which process they comes from.
2020-02-26 14:53:34 +01:00
Eric Lippmann
5395b42bab Fix URL param overrides upon rendering
Before, we used setParams() instead of with() to populate the parameters
which is especially problematic with imported nodes where the config
paramter got overriden for every subsequent node.

fixes #228
2020-02-26 14:18:40 +01:00
Eric Lippmann
125bf37ba8 Fix superfluous base target overrides
* Fix drill down of the tile/tree action icon links
* Set base target only on parent containers

This also fixes the dashboard integration where we only override the
base target of the div.tiles containers.

fixes #243
2020-02-26 14:17:39 +01:00
Johannes Meyer
4e6e1f0819 Node: Add __unbound__ parent node in getPaths() if there are no parents
fixes #245
2020-02-26 13:47:24 +01:00
Johannes Meyer
3772950f6e
Merge pull request #262 from Icinga/bugfix/grey-out-triangles-242
Add animations for breadcrumbs on impact
2020-02-26 13:14:36 +01:00
Johannes Meyer
9835dc9c03
Merge pull request #264 from Icinga/fix/check-command-handling-256
ProcessCommand: handle errors as UNKNOWN
2020-02-26 12:02:08 +01:00
Johannes Meyer
cb1cd24bfe de_DE: Avoid anglicisms
resolves #257
2020-02-26 12:00:15 +01:00
Yonas Habteab
1397c8a7af ProcessCommand:handle some other errors as UNKONWN
fixes #256
2020-02-26 10:23:30 +01:00
Johannes Meyer
27f1c41a42
Merge pull request #267 from Icinga/github-lint-tests
Add PHP action workflow
2020-02-26 10:17:43 +01:00
Johannes Meyer
144bcdf852 Remove space after reference operators 2020-02-26 09:19:31 +01:00
Johannes Meyer
8333846003 Add PHP action workflow 2020-02-26 09:13:59 +01:00
Feu Mourek
3bf808bfb6 Fix the delay 2020-02-25 16:26:18 +01:00
Feu Mourek
467fd70d41 Fix hover being blue 2020-02-25 16:11:01 +01:00
Yonas Habteab
09cb5ef6fe ProcessCommand: handle error as UNKNOWN
fixes #256
2020-02-25 16:04:40 +01:00
Feu Mourek
37a429b3ec Add animations for breadcrumbs on impact
refs #242
2020-02-25 14:52:32 +01:00
Eric Lippmann
a2309c4786
Merge pull request #255 from Icinga/new-cli-options-and-display-name-usage
New CLI options and display name usage
2020-02-06 09:43:59 +01:00
Eric Lippmann
a2854e8cf4 Use display_name as alias for host and service nodes 2020-02-05 15:01:22 +01:00
Dominik Seidel
8ef1dfcbdc CLI: Add options --downtime-is-ok and --ack-is-ok 2020-02-05 15:01:22 +01:00
Dominik Seidel
1414e76d94 CLI: Add options --blame and --root-cause 2020-02-05 15:01:22 +01:00
Johannes Meyer
8ee87ec1f6 css: Remove mix-blend-mode instruction 2019-12-12 14:46:30 +01:00