Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

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

Conversation

adr-mo
Copy link
Contributor

@adr-mo adr-mo commented Nov 3, 2022

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

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Target serie

  • 21.04.x
  • 21.10.x
  • 22.04.x
  • 22.10.x (master)

How this pull request can be tested ?

See Jira ticket

Checklist

Community contributors & Centreon team

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (master, maintenance).

@adr-mo adr-mo requested review from a team, dmyios and wtermellil and removed request for a team November 3, 2022 12:59
@adr-mo adr-mo changed the title Hotfix mon 15791 resource status displays duplicated resources fix(resource): duplicated lines displayed on resource status Nov 3, 2022
@tuntoja tuntoja requested a review from a team November 4, 2022 09:59
@sonarqube-decoration
Copy link

@tuntoja tuntoja merged commit 4867a88 into 22.10.x Nov 4, 2022
@tuntoja tuntoja deleted the hotfix-MON-15791-resource-status-displays-duplicated-resources branch November 4, 2022 18:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants