centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 240 forks source link

fix(resource): duplicated lines displayed on resource status #12055

Closed adr-mo closed 2 years ago

adr-mo commented 2 years ago

Description

This issue occurs when resources parent_id and id are equal among all the resources stored in centreon_storage.resources. This implies that when we try to retrieve the host of a service in LEFT JOIN statement, the host is returned but the service itself too which creates the duplicates.

Fixes # (issue)

Type of change

Target serie

How this pull request can be tested ?

See Jira ticket

Checklist

Community contributors & Centreon team

sonarqube-decoration[bot] commented 2 years ago

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication