Skip to content

feat: sort service cube details by severity (#144) - #177

Open
DanielVdWP wants to merge 4 commits into
Icinga:mainfrom
DanielVdWP:fix/144-sort-cube-details-by-severity
Open

DanielVdWP wants to merge 4 commits into
Icinga:mainfrom
DanielVdWP:fix/144-sort-cube-details-by-severity

Conversation

@DanielVdWP

Copy link
Copy Markdown

Description

Fixes #144.

Service cube detail links currently open the Icinga DB service
list without explicitly setting the sort order.

As a result, services contributing to the cube's problem state
may not appear at the top of the list.

This change makes the service details view sort by severity
in descending order by default.

Changes

  • Add default severity sorting to Icinga DB service cube detail links.
  • Preserve existing dimension filters and cube slices.
  • Keep host cube sorting unchanged.
  • Preserve compatibility with the legacy IDO backend.
  • Add automated regression tests.

Testing

The regression was reproduced against the original implementation
using GitHub Actions with PHP 8.3 and PHP 8.4.

Both environments reproduced the missing severity sort parameter.

After applying the fix, the same tests passed on both PHP versions.

Additional checks verify that existing filters, dimensions,
cube slices and legacy IDO behavior remain unchanged.

Regression tests use the actual production widget classes with
lightweight dependency stubs. Full Icinga Web integration testing
has not been performed.

CI results

Bug reproduction:
https://github.com/DanielVdWP/icingaweb2-module-cube/actions/runs/35562301760

Fix validation:
https://github.com/DanielVdWP/icingaweb2-module-cube/actions/runs/35562324845

@cla-bot cla-bot Bot added the cla/signed label Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add default sort by severity

1 participant