2 Commits
Author SHA1 Message Date
Thomas Vincent cde946d9dd fix: repair regressions found in recent develop audit (#7614)
* Fix regressions found in recent commit audit

* fix(database): fetch only the requested first row

* fix(tests): use native PDO fetch behavior

* test(orb): clarify unavailable runtime skips

* test(database): assert malformed metadata query path

* revert(tests): leave macOS Orb integration out of scope
2026-08-08 11:26:44 -07:00
Thomas VincentandTheWitness 453e747d45 fix: update device status by host id instead of hostname (#7427) (#7567)
* fix: update device status by host id instead of hostname

Hostnames are not unique in Cacti, so keying the status write on hostname
let sibling devices overwrite each other's availability every poll.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: add phpdoc to the issue 7427 test helpers

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: append the changelog entry at the end of the issue block

Matches .github/copilot-instructions.md, which appends rather than inserting
in numeric order.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test: use the full licence header on the new test files

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test: treat CACTI_PATH_LOG as a directory and pass ctor args to the statement class

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test: restore host-status config state exactly

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Co-authored-by: TheWitness <thewitness@cacti.net>
2026-08-06 09:21:58 -04:00