Commit graph

228 commits

Author SHA1 Message Date
Thomas Gelf
654f905cf8 ProcessChanges: adjust method signature 2016-12-07 23:11:15 +01:00
Thomas Gelf
a7e9d815eb Node: try to avoid side-effects when...
...dealing with state mappings
2016-12-07 22:10:35 +01:00
Thomas Gelf
a784b384f4 NodeCreateAction: allow to add root nodes 2016-12-07 16:02:06 +01:00
Thomas Gelf
03605cac52 TreeRenderer: open nodes in left container 2016-11-30 14:53:40 +01:00
Thomas Gelf
064e6934fb TreeRenderer: fix simulation link 2016-11-30 14:35:13 +01:00
Thomas Gelf
8825b0e343 ProcessController: restructured 2016-11-29 16:58:03 +01:00
Thomas Gelf
c11a181701 Process: add and use new form 2016-11-29 15:32:56 +01:00
Thomas Gelf
991d9f9b05 TileRenderer: incorporate AddNewTile 2016-11-29 15:20:13 +01:00
Thomas Gelf
f820dcfec0 NodeAddChildrenAction: new modification action 2016-11-29 15:06:38 +01:00
Thomas Gelf
9cadf78c00 TreeRenderer: do not cast to string early 2016-11-29 15:04:11 +01:00
Thomas Gelf
857913172b BpNode: use modified loop detection everywhere 2016-11-29 11:22:44 +01:00
Thomas Gelf
b954a67c79 TreeRenderer: remove duplicate actions 2016-11-29 11:21:10 +01:00
Thomas Gelf
ca16f22a62 BusinessProcess/Nodes: some cleanup 2016-11-29 11:20:54 +01:00
Thomas Gelf
cbf8db3073 BpNode: free loop detection from side-effects 2016-11-29 11:11:43 +01:00
Thomas Gelf
e821ccb7a0 TreeRenderer: improve layout, add badges 2016-11-29 01:52:44 +01:00
Thomas Gelf
3a9cefce98 Html: __toString everywhere, add prependContent() 2016-11-29 01:47:05 +01:00
Thomas Gelf
aba771f3aa js, Controller: allow to toggle fullscreen mode 2016-11-29 00:50:20 +01:00
Thomas Gelf
60b66e89b0 TreeRenderer: new renderer, LOTS of cleanup 2016-11-29 00:34:28 +01:00
Thomas Gelf
c56c66d193 BaseElement: add createElement helper 2016-11-28 23:50:29 +01:00
Thomas Gelf
78f02ad403 Html: move translate one level deeper 2016-11-28 23:50:13 +01:00
Thomas Gelf
162c19c023 Content, Controls: add new convenience classes 2016-11-28 22:20:01 +01:00
Thomas Gelf
d3eff54603 Controller: take over view tasks, move to parent 2016-11-28 22:15:20 +01:00
Thomas Gelf
e1d0996cef NodeTile: accept any renderer 2016-11-28 22:12:56 +01:00
Thomas Gelf
e311d086cc BpNode: add id helper 2016-11-28 17:30:27 +01:00
Thomas Gelf
c90b0f0eb1 Attributes: fix PHP 5.3 compatibilty issue 2016-11-28 17:01:01 +01:00
Thomas Gelf
657a103c96 Url: compatibility hack web2 v2.3.4 VS 2.4.0 2016-11-28 16:41:49 +01:00
Thomas Gelf
2bf4b8df19 Url: fix compatibility with older Icinga Web 2 2016-11-28 16:17:31 +01:00
Thomas Gelf
28f6026322 AddNewTile: render an icon 2016-11-28 16:03:12 +01:00
Thomas Gelf
d716b97c25 ProcessController: split logic, render breadcrumb 2016-11-28 16:02:21 +01:00
Thomas Gelf
b109a46843 Renderer: remove some deps, now that we cleaned up 2016-11-28 08:23:53 +01:00
Thomas Gelf
ee99549341 Breadcrumb: cleanup and externalize 2016-11-28 02:26:12 +01:00
Thomas Gelf
4f5969d4b7 AddNew: fix link 2016-11-28 02:10:19 +01:00
Thomas Gelf
9ec932adcd Link: remove superfluous variable 2016-11-28 02:09:45 +01:00
Thomas Gelf
d92198fa10 Img and Icon introduced, used in NodeTile 2016-11-28 02:09:11 +01:00
Thomas Gelf
d17b0efaa7 Html, Renderer: phpcs 2016-11-28 00:24:36 +01:00
Thomas Gelf
dbeb05aac9 Container: remove traces of old class 2016-11-28 00:22:31 +01:00
Thomas Gelf
69a1e454d2 TileRenderer: some cleanup 2016-11-28 00:21:05 +01:00
Thomas Gelf
01a982a0bc MonitoredNode: add new simpler url/link helpers 2016-11-28 00:18:53 +01:00
Thomas Gelf
a986859fdc ActionBar: this is a component and not generic 2016-11-28 00:16:47 +01:00
Thomas Gelf
fbd6aef886 Businessprocess/Renderer: prepare new renderers 2016-11-28 00:12:07 +01:00
Thomas Gelf
ea7e79248c Html: a bunch of new classes, some changes 2016-11-27 23:54:38 +01:00
Thomas Gelf
34ef3f26af Html: introduce a new namespace 2016-11-27 23:54:03 +01:00
Thomas Gelf
a00fdab37f Cleanup, Url handling improvements, some helpers 2016-11-26 21:18:18 +01:00
Thomas Gelf
1f61d8b728 NestingError: add missing exception class 2016-11-26 21:14:38 +01:00
Thomas Gelf
8c05ed7277 Test and implement loop detection
fixes #9786
2016-11-24 10:57:30 +01:00
Thomas Gelf
2fc48f2124 js: Handle collapsed state of multiple trees
fixes #8569
2016-11-24 09:39:44 +01:00
Thomas Gelf
b8df6a8823 BpNode: rename child_nodes to childNode...
...and move method related to children from base Node
2016-11-24 02:40:01 +01:00
Thomas Gelf
cdbd28b25b Link: play nice with those different Url objects 2016-11-24 00:49:09 +01:00
Thomas Gelf
91087b73ab Host/ServiceNode: fix tests using Link component
That way it's no longer directly based on Icinga\Web\Url and runs through.
Also fixed wrong expectations in HostNodeTest
2016-11-24 00:35:22 +01:00
Thomas Gelf
e6c292333b FakeRequest, Url-Wrapper: allow tests involving...
...Url::fromPath

fixes #13301
2016-11-24 00:20:59 +01:00
Thomas Gelf
12a9459eaf LegacyStorageTest: improve readability...
...and move config "loading" to BaseTestCase
2016-11-23 23:03:48 +01:00
Thomas Gelf
8b9716c9b2 Operators: add new tests and a related helper
fixes #13299
2016-11-23 22:41:10 +01:00
Thomas Gelf
4506181f0c BusinessProcess,Node: new helper methods
Mostly (but not only) useful for tests
2016-11-23 20:51:39 +01:00
Thomas Gelf
5189c79a27 LegacyStorage: split header handling 2016-11-23 15:17:25 +01:00
Thomas Gelf
afcf42e871 phpcs: some more 2016-11-23 15:17:25 +01:00
Thomas Gelf
2b98629f3e Modification: move modification handling to...
...a dedicated namespace
2016-11-23 15:17:25 +01:00
Thomas Gelf
9acdba0dc4 various: fix some phpcs PSR2 complaints 2016-11-23 15:17:25 +01:00
Thomas Gelf
a2fd587989 LegacyStorage: reorganize some methods 2016-11-23 15:17:25 +01:00
Thomas Gelf
9e17ff21ba Test: add base test framework 2016-11-23 15:17:25 +01:00
Thomas Gelf
95d8696705 Node: alllow to get any state name, fix typo 2016-11-23 15:17:25 +01:00
Thomas Gelf
db8f0c5475 ProcessChanges,NodeAction(s): cleanup, docs 2016-11-23 15:17:25 +01:00
Thomas Gelf
da3f3d6a63 BusinessProcess: fix (unused) method usesHardStates 2016-11-23 15:17:25 +01:00
Thomas Gelf
924a2fd321 BusinessProcess: fallback for missing host 2016-11-23 15:17:25 +01:00
Thomas Gelf
0251bc5edb Host/ServiceNode: introduce common base class 2016-11-23 15:17:25 +01:00
Thomas Gelf
0b6cf208f0 Node: fix hasMissingChildren() 2016-11-23 15:17:25 +01:00
Thomas Gelf
e93d626d09 Controller, css: add action bar 2016-11-23 15:17:25 +01:00
Thomas Gelf
8151769592 Web\Component: introduce a couple of web components 2016-11-23 15:17:25 +01:00
Thomas Gelf
6da0c7c722 ShipConfigFiles: stop using legacy hook 2016-11-23 15:17:25 +01:00
Thomas Gelf
ac82187f5b BpNode: fix error for missing children 2016-11-23 15:17:25 +01:00
Thomas Gelf
93fff13209 (Bp)Node: add get/hasMissingChildren method 2016-11-23 15:17:25 +01:00
Thomas Gelf
f25f141820 LegacyStorage: be more conservative on pointers 2016-11-23 15:17:25 +01:00
Thomas Gelf
311fd54552 Controller: 404 on missing process or perms 2016-11-23 15:17:25 +01:00
Thomas Gelf
3332a06792 LegacyStorage: add hasProcess, respecting perms 2016-11-23 15:17:25 +01:00
Thomas Gelf
3efd53b97a LegacyStorage: add missing fclose 2016-11-23 15:17:25 +01:00
Thomas Gelf
91fca69566 LegacyStorage: permission check for process lists 2016-11-23 15:17:25 +01:00
Thomas Gelf
d057567247 Controller: provide $bp if loaded 2016-11-23 15:17:25 +01:00
Thomas Gelf
98241dd9cd QuickForm: a couple of small changes 2016-11-23 15:17:25 +01:00
Thomas Gelf
7fcef19c6e permissions: provide a few 2016-11-23 15:17:25 +01:00
Thomas Gelf
1e45dabe02 BpNode: getProblemTree and related methods 2015-11-19 14:49:52 +01:00
Thomas Gelf
63ad013c5a Node: rename hasProblems to isProblem 2015-11-19 14:49:45 +01:00
Thomas Gelf
0f3882e8b2 Node::hasProblems(): new method 2015-11-19 14:49:35 +01:00
Thomas Gelf
fe5181052f BusinessProcess: new method listBpNodes() 2015-11-10 21:11:20 +01:00
Thomas Gelf
a940c160ff LegacyStorage: sort process configs by name 2015-11-02 17:25:51 +01:00
Thomas Gelf
8ce6bf9401 Controller: use local form loader
fixes #10443
2015-10-22 19:19:52 +02:00
Thomas Gelf
3a704a0c52 ShipConfigFiles: director hook sample 2015-10-16 22:53:04 +02:00
Thomas Gelf
20d3eb1e1e ImportedNode: gracefully handle missing files 2015-10-16 22:48:57 +02:00
Thomas Gelf
ae4cf396dc node/simulate: link to overlay 2015-10-07 17:10:26 +02:00
Thomas Gelf
960446a16e Controller: add loadForm helper method 2015-10-06 22:35:44 +02:00
Thomas Gelf
bf5b3424be BpNode: provide also host state types in summary 2015-10-06 22:35:00 +02:00
Thomas Gelf
0c633491d4 QuickForm: initial import, makes things easier 2015-10-06 22:33:05 +02:00
Thomas Gelf
dccee863ef ServiceNode: formatting 2015-10-06 22:29:06 +02:00
Thomas Gelf
1088f877c1 BpNode: fix parent signature 2015-10-06 09:17:16 +02:00
Thomas Gelf
944ec1c880 Node: remove duplicate method 2015-10-06 09:03:10 +02:00
Thomas Gelf
675b74ada9 Node: provide generic helpers 2015-10-06 08:59:22 +02:00
Thomas Gelf
1220fc4ae5 BusinessProcess: simulation overrides "missing" 2015-10-06 08:57:39 +02:00
Thomas Gelf
2b91ec2309 BusinessProcess: remove obsolete sprintf 2015-10-05 18:48:43 +02:00
Thomas Gelf
03ef17328c BusinessProcess: do not store modification date
File mtime should suffice, and this interferes with "idempotent" cm
tools
2015-10-05 17:51:05 +02:00
Thomas Gelf
4a790976af Introduce the NOT operator (!)
refs #10315
2015-10-05 16:50:33 +02:00
Thomas Gelf
3009a28d3d BusinessProcess, BpNode: improve legacy storage
Before this fix depending on tree structure processes used multiple
times as a sub-node could have been stored multiple times, resulting
in warnings at render time.
2015-10-05 16:40:08 +02:00
Thomas Gelf
f5facc02d1 HostNode: override state maps 2015-10-05 16:38:45 +02:00