Skip to content

fix: legacy facility rules (Fixes #459), message details flyout, uncounted paging, callback filters, column resizing, timespan presets, Trim, default saved search; upgrade docs - #468

Merged
TheWitness merged 10 commits into
developfrom
docs/upgrade-instructions
Nov 18, 2026

Conversation

@TheWitness

@TheWitness TheWitness commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #459

Follow-up to #464. It started as a documentation fix for upgrades and now also fixes the problems found while testing 5.0.

1. Upgrade documentation (docs)

Replacing the plugin files does not upgrade the plugin; until the upgrade runs, Plugin Management shows the old version and new pages such as Recommendations return Permission Denied. The README gains an Important: Upgrading the Plugin section that explains the two supported methods (cli/syslog_schema.php --upgrade, recommended, or Disable then Enable to open the Upgrade Advisor), why upgrades never start automatically during ordinary page or poller requests (only the CLI method runs outside the web server; the Upgrade Advisor runs inside the request that confirms it), that the version in Plugin Management (not --audit, which only checks table existence) confirms completion, and what the 5.0 upgrade adds.

2. Recommendations: callbacks instead of full page loads

The Import button, filters and the import submission now behave like Report Rules and the other Syslog Settings pages (loadPageNoHeader, init function in js/functions.js). The import form carries a file, which Cacti's AJAX form handler (form_end(true), $.post of serialised fields) cannot send, so it is posted as FormData; the server answers {"next": ...} and the result is shown with the usual session messages.

3. Re-importing an export reported 860 failures

Cause: the stricter identifier check added during the #464 review only allowed message-word characters, but 860 bundled identifiers come from vendor documentation and contain | (683, e.g. %ASA|PIX-3-331001), # (167, e.g. %FCDD-SLOT#-3-LOG_FCDD_ERR), or ( ) " < > :. The export could therefore not be imported again, and nothing explained why.

Fix:

  • Imports accept any identifier up to 190 characters without spaces or line breaks, so every export round-trips. The user's real 18.4 MB export now imports with 27,315 accepted and 0 rejected.
  • Every rejected record is written to the Cacti log with its position, identifier and reason (SYSLOG WARNING: Recommendation import rejected record 3 (identifier 'BAD ID'): the identifier contains spaces or line breaks), store failures are logged, and each import ends with a one-line summary.
  • On-screen results now read "Added X, updated Y and left Z unchanged".
  • Identifiers that can never match a message are flagged with an informational note on import and save, and a new Can Match filter lists them (exactly the 860 in the bundled data). The PHP check and the SQL REGEXP behind the filter share one definition and are tested to agree.

4. How matching works, explained on the page

A collapsible How Recommendations Are Matched box on the list (and the README) states the rules: only the Identifier column is matched; the message is split into words (letters, digits, _ . - /, with any leading % retained as a literal character); a match is exact equality with one whole word, ignoring case, with no contains/starts-with/ends-with search and no wildcards. The % is not optional or a wildcard: %LINK-3-UPDOWN matches only that prefixed word, while LINK-3-UPDOWN matches only the unprefixed word. This follows the legacy CEMDB lookup, which captures %...: and queries the resulting name with equality (WHERE name = ...), without stripping or adding the prefix. All vendors are checked, longest identifier first, up to three.

5. Alert Rule page looked like the Dark theme in Deepness

The plugin has per-theme CSS files, but they only held the status-legend palette; every other Syslog surface samples jQuery UI colours at runtime. Deepness ships Dark's jquery-ui.css unchanged, so .ui-widget-content is Dark's black tiled texture. That is what the alert/removal rule filter panel showed, and what the Syslog tab sampled.

  • The rule filter panel now sits on the form row's own surface in every theme (the theme still supplies the border).
  • css/deepness.css (loaded only for Deepness) maps the sampled tokens to Deepness's --dp-* palette, overriding Dark's black.

6. Test rule dialogs are not modal

The Alert, Removal and Report Rules Test rule preview dialogs use modal: false (including the error dialog), so the rule can be edited and re-tested while the preview stays open.

7. Report Rules: Filter Builder, Test button, text area

  • Filter Builder never appeared. The page listed "Filter Builder" as a match type but never rendered the builder (and defaulted new reports to a non-existent matchesc type). Report Rules now use the same Filter Builder as Alert and Removal Rules. syslog_get_report_sql() compiles Filter Builder reports through the shared compiler into bound SQL over the stored syslog table (joining host and program names) and syslog_process_reports() passes the bound values ahead of its time-window placeholders. The list shows a readable summary (for example Message contains FLOWVIEW).
  • Test button. Reports get the same Test rule button; syslog_rule_preview() accepts report and syslog_report_preview() runs the report's own query against the most recent 10,000 stored messages, read-only, without sending email.
  • Message Match String is a text area, 2 rows normally and 6 rows for SQL Expressions.
  • SQL Expression reports had an empty Host column (and logged Undefined array key "host") because the query never resolved the host name. Host and program names are now selected through correlated sub-queries, so unqualified columns such as host_id in a hand-written expression stay unambiguous.

Query Builder vs Filter Builder: they are the same component. Cacti\Syslog\QueryBuilder is the server-side compiler and the Filter Builder is its UI, already used by Alert and Removal Rules; Report Rules now use it too.

8. "An invalid form control is not focusable" when creating SQL Expression rules

Switching an Alert (or Removal) rule to SQL Expression hid the Filter Builder but left its required value input enabled, so HTML5 validation tried to focus a hidden field and Create silently did nothing. changeTypes() now disables the hidden builder (setDisabled(!filterMode || !allowEdits)). The `message` LIKE '%FLOWVIEW%' alert from the report creates on both pages.

9. Theme audit

Each theme was measured in the browser (page surfaces, sampled tokens and WCAG contrast of every Filter Builder control on the Syslog tab and the Alert Rule page):

  • Midwinter: the rule Filter Builder inherited Midwinter's mid-grey base text, about 3.5:1. css/midwinter.css now maps the builder tokens to Midwinter's own variables (which also follow its light colour mode) and adds the light legend palette for that mode.
  • Paper Plane: its buttons are light text on a dark fill, so the sampled accent made the Syslog search builder's + AND/OR/NOT/Group buttons white on white (1.0:1). syslogThemeTokens() now falls back to the body text colour, with a faint tint, whenever the sampled accent is under 3:1 against the panel surface, so other themes with inverted buttons are covered too.
  • Layout: on the rule edit pages the builder used the log view's fixed column widths and overflowed Cacti's form column (670 px in a 524 px column at 1366 px wide). The rule builders now use flexible columns.
  • Classic, Modern, Dark, Deepness, Paw, Sunrise, Cacti, Carrot, Hollyberry and Raspberry already used the right palette; every builder control is now at least 4.5:1 in every theme (the decorative • connector at least 4:1).

10. Issue #459: legacy "Facility is" rules matched kern (Fixes #459)

Cause: the reporter's debug output shows removal rules taking 54 of 55 incoming messages before alerts run, so no alert ever saw its messages. On the incoming table, legacy "Facility is" removal and alert rules compared the stored facility name (for example local7) with the numeric facility_id column. MySQL evaluates 'local7' as 0, which is kern. A facility removal rule therefore removed or transferred the wrong messages, and a facility alert never fired for its own facility. The rule preview, the rule editor, removal against stored messages, syslog_manage_items() and reports already resolved the name through syslog_facilities; only the incoming-table paths did not. The SQL is unchanged since 4.2, so this predates 5.0.

Fix: a shared syslog_incoming_facility_condition() resolves the name through syslog_facilities (an id is compared directly) in the removal processor and in both alert SQL builders. syslog_process.php --debug now names every removal rule that matched and how many messages it took, and notes host-level alerts skipped for having no matches. The reporter's log showed 6 rules found but only 5 processed, with no way to see which removal rule took the traffic.

Reproduced and verified with the real syslog_process.php --debug on a test install: a "Facility is local7" removal rule took the kern message and left local7 alone, and after the fix it removes only its own facility. A "Facility is local7" alert now fires on the %SYS-5-CONFIG_I message, and the reporter's SQL Expression alert fires alongside it.

The reporter has not shared their removal rules, so this is the defect in the path their log points at rather than a confirmed match for their configuration. The new debug lines will name the rule if anything else is responsible.

11. Review feedback on the latest commit

  • Host != X / Program != X Filter Builder conditions on reports, and retroactive removal against stored messages, were inverted because mapping names to ids dropped the negation.
  • Test could sync a stale builder left on window by AJAX navigation from another rule page; it now uses the builder inside the tested form.

12. Message details flyout (feature)

Clicking a System Logs or Alert Logs row opens a Message details flyout docked on the right, laid out like the reference design: GENERAL (date, device, program, facility and priority badges, sequence, and the alert rule for alert-log entries), MESSAGE (full text, Copy message, Copy link), RECOMMENDATIONS and ACTIONS (create alarm, device or removal rule; filter by device or program).

  • Callback and dispatch. The row's own data renders immediately. The flyout then calls syslog.php?action=message_details&source=main|remove|alert&id=<seq>[&logtime=], which reads the record server-side by table and sequence id (optional logtime for partition pruning) and returns JSON with the record, rule links and matching recommendations, reusing the hover lookup. Rows that do not name a record fall back to the message-only lookup. window.syslogShowMessageDetails(source, id) opens any record, and Copy link produces syslog.php?tab=syslog&details=main:<seq>, which reopens it even when it is not on the current page.
  • Placement. The flyout is moved to <body>: Midwinter lifts its filter panel above #main's stacking context, which covered a flyout nested inside it. It starts at the top of Cacti's content column in every theme, takes the sampled theme tokens (including Deepness's palette), survives the page's auto refresh by reopening the same record, and is removed when AJAX navigation leaves the page.
  • Verified headless on all 12 themes: nothing covers the flyout, text contrast is at least 7.5:1, and no horizontal overflow. tests/browser/compact_workspace.cjs now stubs the dispatch and checks the request, the body placement, the recommendation rendered as text, the fallback lookup and Copy link visibility.

13. Horizontal scroll bar on the results table (bug)

The results wrapper (.syslogResultsMain, overflow-x: auto) was 5px wider than its box in Deepness and most themes: Cacti's column-resize handle on the last header cell sits at right: -5px and overhangs the table, so the scroll bar appeared, especially with overlay scroll bars on hover. That handle is now kept inside its cell. In Midwinter the grid also sat beside the theme's floated tab bar at zero width (a grid will not overlap a float), pushing the whole table 675px off the page; the workspace now clears floats. Every theme measured 0px overflow afterwards.

14. Skip Total Row Count (feature)

On large installations the COUNT(*) behind the page navigation can be the most expensive query on the log views. A new Skip Total Row Count checkbox under Settings > Syslog > General Settings (syslog_skip_row_count, off by default) skips it on the System Logs and Alert Logs tabs. The page query reads one record beyond the page (including the inner limits of the stored-plus-removed union), syslog_uncounted_page() drops that record and drives Cacti's own html_nav_bar(..., $page_count = false): Previous and Next with the current page number, Next only while more records remain, and a first page that holds everything still reads "All N Messages". Verified live with MySQL's general log: no log-table COUNT queries with the setting on (6 with it off), 12 matches paged as 10 + 2 with Next only on page 1, exactly 10 shown as "All 10 Messages".

15. Host filter: full page load and duplicate conditions (bug)

postSyslog() submitted a hidden form, so clicking a host or program, Go, Clear, Refresh and saved searches all reloaded the whole page. It now posts to syslog.php?header=false and replaces #main, as Cacti's own loaders do; only Export still uses the hidden download frame. Host and program filters (from the table or the message details) are added only when they do not already limit the search: a plain, non-negated top-level field = value, compared without case, while every top-level connector is AND. Pills already in scope are marked. Verified live: same window after each action, a second click on the same host sends nothing, and Export still downloads.

16. Column resizing sorted instead (bug)

The message cell's width: 100% (which gives long messages their ellipsis) claims all spare width under the automatic table layout, squeezing every other column to its content, so widths set by dragging were ignored; releasing the drag over the header text then fired Cacti's sort click. The log tables now pin each column at its rendered width and use table-layout: fixed, the message column absorbs width changes instead of Cacti's default of taking them from the neighbouring column, and a capture-phase handler swallows the click that ends a resize. Verified live: dragging Device 89→210px keeps Program at 89px, releasing over another header no longer sorts, and a normal header click still sorts.

17. Grouped Count (bug)

The Count column of grouped messages uses number_format_i18n() (for example 1,500).

18. Menus and dropdowns stay open (bug)

Opening the Manage or View options menu, or a select dropdown (Select2 on 1.2, selectmenu on 1.3), now closes the others, and clicking elsewhere closes them all.

19. Save Search: non-modal, with a Default toggle (feature)

The Save prompt is modal:false and has a Default checkbox. A tab's default saved search (user setting syslog_default_search_syslog|alerts) is applied the first time the tab is opened in a session that has no filter yet. It is never reapplied over an existing session filter, a submitted search, Clear or Reset. Saving another default replaces it, and deleting it clears it. The list labels it "(Default)".

20. Real buttons, theme colors, Rows inline (bug)

Search, Clear, Refresh, Export, Save and the Manage menu items are <button> elements of equal height. Search is type=submit, so each theme's primary button style applies in place of the old fixed green. "Results limit" is now Rows and sits on the action row.

21. Date presets aligned with the timespan selector (feature)

In the last now offers 30 minutes to 2 years, with calendar months and years. A new In the range operator (logtime during "this_week") offers Day Shift, This Day/Week/Month/Year and Previous Day/Week/Month/Year. It is computed with the database clock and honors the user's First Weekday and the Day Shift Start/End settings. "Not in the last" is unchanged.

22. Trim selector restored (feature)

Beside Refresh: Fit Column (the default, with an ellipsis), All Text (wrapped), or 30, 50, 75, 100, 150 or 300 characters. It is saved by Save Settings as syslog_trimval, and the flyout always shows the full message.

23. Review and SonarCloud feedback on 65a57bf

  • Column resizing now also treats the Alert Logs message column (logmsg) as the flexible column.
  • The self-handling clipboard promises are marked void (S9383, reliability rating).

24. Review feedback on 4fe8a6c

  • Deleting a saved search clears it as the default of both tabs; a default that no longer resolves (deleted or unshared by someone else) is dropped on first entry.
  • Report Test previews show host and program for every legacy match type (contains/begins/ends/host/facility/program).
  • The default-search helpers live in includes/functions.php, so the tests no longer evaluate extra syslog.php excerpts (Sonar dynamic code execution).

Verification

  • Pest: 791 pass (the known ProcessHelperCompat warning remains); changed-line coverage 100% (269/269); manifest and i18n checks pass.
  • In a browser on a throwaway Cacti 1.2.32:
    • Import, filters and clear never reloaded the page (a window marker survived).
    • The user's export imported in keep mode (27,315 unchanged, 0 rejected) and a mixed file in replace mode (added, updated, 3 rejected with the expected log lines).
    • Can Match = No listed exactly 860.
    • Deepness: the alert panel and Syslog tab showed Deepness colours.
    • SQL Expression alert and removal rules create; Report Rules save in SQL mode (6-row text area, hidden builder disabled) and in Filter Builder mode, and the builder reloads on edit.
    • Test rule on Alert, Removal and Report Rules opens with modal: false and no overlay; the report preview found the 2 seeded FLOWVIEW messages.
    • A forced syslog_process_reports() run sent both reports (2 items each, no warnings), and an SQL report using host_id = 1 AND program_id = 1 matched.
    • All 12 themes re-measured after the fixes.

Replacing the plugin files does not upgrade the plugin. Add an Important
section to the README that says so, describes the two supported methods
(cli/syslog_schema.php --upgrade, recommended, or Disable then Enable to
open the Upgrade Advisor), explains that upgrades are started explicitly
so schema changes and data loads never run inside website or poller
requests, lists the symptoms of a skipped upgrade, and notes what the 5.0
upgrade adds. Link it from Installation and Recommendations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 18, 2026 14:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documentation incorrectly guarantees upgrades run outside web requests and presents a table-existence audit as proof of completion, misleading operators about upgrade execution and status.

2 open issues
What changed in this PR

Clarifies how to explicitly upgrade the Cacti Syslog plugin after replacing its files, including the steps needed to access the 5.0 Recommendations page. Documentation only; no runtime changes.

Changes:

  • Documents CLI and Plugin Management upgrade methods, with guidance on when to use each.
  • Adds verification guidance and links from Installation and Recommendations.
  • Records the documentation update in the 5.0 changelog.
File Description
README.md Adds explicit upgrade instructions, verification guidance, and Recommendations prerequisites.
CHANGELOG.md Records the clarified upgrade procedure under 5.0.

Review effort: Balanced

Comment thread CHANGELOG.md Resolved
Comment thread README.md Resolved
…epness styles

Recommendations:
* Import button, filters and the import submission run as callbacks like
  the other Syslog Settings pages. The import form carries a file, which
  Cacti's AJAX form handler cannot send, so it is posted as FormData and
  the server answers with the page to load next.
* Re-importing a full export rejected 860 bundled records: the identifier
  check only allowed message-word characters, but vendor documentation
  identifiers contain | # ( ) " < > and :. Imports now accept any
  identifier without spaces (up to 190 characters), so every export can be
  imported again unchanged.
* Each rejected record is written to the Cacti log with its position,
  identifier and reason, store failures are logged, and a one-line summary
  closes every import. On-screen messages say added / updated / unchanged.
* Identifiers that can never match a message are reported on import and
  save, and a Can Match filter lists them (860 in the bundled data).
* The list explains exactly how matching works (identifier column only,
  whole-word, case-insensitive, optional leading %, no wildcards), as does
  the README.

Themes:
* The alert and removal rule filter panel no longer inherits the tiled
  jQuery UI background that Dark (and Deepness, which reuses Dark's jQuery
  UI styles) gives ui-widget-content.
* css/deepness.css maps the runtime-sampled Syslog surface tokens to the
  Deepness palette instead of Dark's black.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TheWitness TheWitness changed the title docs: make the plugin upgrade steps explicit fix: recommendations import round-trip, callbacks and matching help; Deepness styles; upgrade docs Nov 18, 2026
The Upgrade Advisor runs the upgrade inside the enabling web request, so
only the CLI keeps it out of the web server; upgrades merely never start
automatically during ordinary requests. --audit only checks that tables
exist (and connecting can create missing ones), so the stored version in
Plugin Management is the completion check.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TheWitness

Copy link
Copy Markdown
Member Author

This is work in process. There are multiple bugs and this pull will be getting updates over the next several hours.

…ntrast

- Report Rules: show the Filter Builder (it was listed but never rendered),
  compile Filter Builder reports to bound SQL for processing, add a Test
  button that previews matches against the most recent stored messages,
  and make the Message Match String a text area (taller for SQL).
- SQL Expression reports resolve host and program names, fixing the empty
  Host column and "Undefined array key" warnings in report emails.
- Alert and Removal rules: disable the hidden Filter Builder in SQL
  Expression mode so its required fields no longer block Create with
  "An invalid form control is not focusable".
- Rule Test preview dialogs are no longer modal.
- Themes: map the rule Filter Builder to Midwinter's palette (it inherited
  a 3.5:1 mid-grey), fall back to body text when a theme's sampled button
  accent is unreadable on the panel (Paper Plane: white on white), and keep
  the rule Filter Builder inside the form column.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TheWitness TheWitness changed the title fix: recommendations import round-trip, callbacks and matching help; Deepness styles; upgrade docs fix: report Filter Builder and Test, modeless previews, SQL rule create, theme contrast, recommendations import; upgrade docs Nov 18, 2026
@TheWitness
TheWitness requested a balanced review from Copilot November 18, 2026 15:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Report filters invert host and program exclusions, causing previews and scheduled emails to select excluded entries, while stale builder state can make report tests use a previous rule’s conditions.

2 open issues
2 resolved since last review

Review effort: Balanced

Comment thread includes/functions.php Resolved
Comment thread js/functions.js Resolved
…n; Test uses this form's builder

- Legacy "Facility is" removal and alert rules on the incoming table
  compared the stored facility name with the numeric facility_id column,
  which MySQL evaluates as 0 (kern): removal rules took kern messages
  instead of their own facility and facility alerts never fired. Resolve
  the name through syslog_facilities, as the preview, editor and
  stored-table removal already did.
- syslog_process.php --debug names each removal rule that matched and
  notes host-level alerts skipped without matches.
- syslog_removal_filter_normalize() dropped the negation of "!=" host and
  program conditions when mapping names to ids, inverting report filters
  and retroactive removal (review feedback).
- testSyslogRule() picks the builder inside the tested form, not a stale
  global left by AJAX navigation from another rule page (review feedback).

Fixes #459

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TheWitness TheWitness changed the title fix: report Filter Builder and Test, modeless previews, SQL rule create, theme contrast, recommendations import; upgrade docs fix: legacy facility rules (Fixes #459), report Filter Builder and Test, modeless previews, SQL rule create, theme contrast, recommendations import; upgrade docs Nov 18, 2026
@TheWitness
TheWitness requested a balanced review from Copilot November 18, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

ID-based report expressions can pass Test but fail to save because save validation uses the wrong schema, while previews also leave existing Host and Program names blank.

No open issues 🎉

2 previously missed issues

In code that hasn't changed since last review

High severity Save validation uses the wrong schema for report expressions

syslog_reports.php:38

A report expression such as host_id = 1 AND program_id = 1 can pass Test but cannot be saved: api_syslog_report_save() still validates it with syslog_get_alert_sql() at line 338. That query targets syslog_incoming, which has host and program rather than those ID columns, so validation reports an unknown column. Use syslog_get_report_sql() and its bind parameters for save validation so Save, Test and scheduled reports use the same schema.

Medium severity Report previews omit Host and Program names

includes/​functions.php:8150

Legacy report queries omit names that the new preview displays: Facility and Program reports show a blank Host column, while message, Host and Facility reports show a blank Program column even when those names exist. Resolve both names from host_id and program_id in the preview's sample query before rendering the rows.

2 resolved since last review

Review effort: Balanced

- Clicking a System Logs or Alert Logs row opens a right-hand Message
  details flyout. It renders the row at once, then dispatches
  syslog.php?action=message_details (stored, removed or alert-log record by
  sequence id) for the record and its matching recommendations, falling back
  to the message lookup for rows without a record id. The flyout lives on
  <body> so no theme layer covers it, survives auto refresh, and Copy link
  yields a details= address that reopens the record.
- The last header cell's column-resize handle overhung the table by 5px and
  kept a horizontal scroll bar on the results area; Midwinter's floated tab
  bar also squeezed the results grid to zero width.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TheWitness
TheWitness requested a balanced review from Copilot November 18, 2026 17:17
@TheWitness TheWitness changed the title fix: legacy facility rules (Fixes #459), report Filter Builder and Test, modeless previews, SQL rule create, theme contrast, recommendations import; upgrade docs fix: legacy facility rules (Fixes #459), message details flyout, results overflow, report Filter Builder and Test, modeless previews, theme contrast, recommendations import; upgrade docs Nov 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues requiring resolution.

No open issues 🎉

Review effort: Balanced

…lumn resizing, grouped count format

- Add a Skip Total Row Count general setting. When on, the System Logs and
  Alert Logs tabs skip the COUNT(*) queries, read one record beyond the page
  and page with Previous/Next until the last page.
- postSyslog() reloads results as a callback into #main instead of a full
  form POST (exports still use the hidden download frame). Host and program
  filters, from the table or the message details, are added only when they
  do not already limit the search, and pills already in scope are marked.
- Column resizing: the message column claimed all spare width under the
  automatic layout so dragged widths were ignored, and releasing the drag
  over the header text sorted the column. Use the fixed layout with the
  message column absorbing changes, and swallow the click that ends a resize.
- Format the grouped Count column with number_format_i18n().
- Replace the hardcoded IP in the browser test stub (SonarCloud).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TheWitness
TheWitness requested a balanced review from Copilot November 18, 2026 17:55
@TheWitness TheWitness changed the title fix: legacy facility rules (Fixes #459), message details flyout, results overflow, report Filter Builder and Test, modeless previews, theme contrast, recommendations import; upgrade docs fix: legacy facility rules (Fixes #459), message details flyout, uncounted paging, callback filters, column resizing, results overflow, report Filter Builder; upgrade docs Nov 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The selectors do not recognize the Alert Logs Message column’s logmsg identifier, incorrectly fixing its width and disrupting column resizing and neighbor restoration.

1 open issue

Review effort: Balanced

Comment thread js/functions.js Resolved
… presets, Trim

- Opening a Manage/View options menu or a select dropdown closes the others;
  clicking elsewhere closes them all
- Save Search prompt is modeless and gains a Default toggle applied on first
  entry to a tab when the session has no filter
- Action and menu controls are real <button> elements; Search uses the theme's
  primary colors; Results limit becomes Rows on the action row
- Date conditions follow Cacti's timespan selector: more In the last presets
  and a new In the range operator (Day Shift, This/Previous Day..Year)
- Restore the Trim selector beside Refresh (Fit Column, All Text, 30-300 chars)
- Column resizing also treats the Alert Logs message column (logmsg) as the
  flexible column; mark the self-handling clipboard promises as ignored

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TheWitness TheWitness changed the title fix: legacy facility rules (Fixes #459), message details flyout, uncounted paging, callback filters, column resizing, results overflow, report Filter Builder; upgrade docs fix: legacy facility rules (Fixes #459), message details flyout, uncounted paging, callback filters, column resizing, timespan presets, Trim, default saved search; upgrade docs Nov 18, 2026
@TheWitness
TheWitness requested a balanced review from Copilot November 18, 2026 18:18
Comment thread tests/bootstrap-unit.php Fixed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The rule preview omits available Host or Program values for legacy report types, and deleting a shared saved search can leave the other log tab pointing to a deleted default.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread includes/functions.php Resolved
Comment thread syslog.php Resolved
- Move the default saved search helpers into includes/functions.php and
  clear a deleted search's default on both log tabs, since both list it;
  a default that no longer resolves is dropped on first entry
- Report Test previews resolve host and program names for every legacy
  match type instead of leaving them blank
- Tests no longer evaluate extra syslog.php excerpts for the helpers

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because byte-based length validation can reject valid non-ASCII identifiers that fit the database’s character-based limit.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Match each message identifier as logged; a leading percent is not an alias for its unprefixed form. Align tests and matching explanations with the legacy CEMDB lookup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@TheWitness
TheWitness merged commit 16c6fdd into develop Nov 18, 2026
6 of 11 checks passed
@TheWitness
TheWitness deleted the docs/upgrade-instructions branch November 18, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need help on Alerts Rules not working anymore

5 participants