Commit 2f96a7b
committed
ALEC-296: Add variable help popover, reset, and bulk situation actions
Builds on the previous commit on this branch.
UI:
- Replace the Feather tooltip on the Correlation Variables section
with a click-toggle help popover so we can render bulleted, formatted
guidance that includes the default value for each variable. Feather's
tooltip only accepts a string title, so a popover is required for
bullets / inline code / italics.
- Add a circular-arrow Restore button next to the help icon that resets
alpha/beta/epsilon to their defaults in one click.
- Add two action buttons at the bottom of the page, to the left of
Save Changes:
* "Close All Open Situations"
* "Re-Evaluate All Open Alarms"
Both prompt for confirmation (window.confirm) before firing, since
they are destructive / disruptive.
Backend:
- SituationRest: new POST /alec/situation/closeAll endpoint. Walks
every situation that is not already ACCEPTED/REJECTED, marks it
REJECTED, sends to the cloud client, and forwards an empty-alarm
REJECTED situation to OpenNMS — same mechanism the existing
per-situation reject path uses.
- EngineRest: new POST /alec/engine/reEvaluate endpoint. Calls the
existing driverInit() (destroy + initAsync) so the engine re-applies
the current correlation variables to all currently active alarms.
Tests:
- UI: extended accountSettings.test.ts to cover the help popover
toggle (and presence of bullets + default values), the reset button,
the variables-section visibility on engine switch, the two action
buttons confirming and dispatching, and the no-op path when confirm
is dismissed.
- Backend: extended EngineRestImplTest with a reEvaluate test and
SituationRestImplTest with a closeAllOpenSituations test.1 parent 6626b6e commit 2f96a7b
12 files changed
Lines changed: 5574 additions & 5046 deletions
File tree
- features/ui/src
- main
- java/org/opennms/alec/rest
- resources/ui-ext
- test/java/org/opennms/alec/rest
- ui/src
- containers
- services
- tests
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
191 | 200 | | |
192 | 201 | | |
193 | 202 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
291 | 325 | | |
292 | 326 | | |
293 | 327 | | |
| |||
0 commit comments