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

fix(web): fix the comment deletion for host monitored by poller (#11138) #11483

Closed
wants to merge 429 commits into from

Conversation

callapa
Copy link
Contributor

@callapa callapa commented Aug 2, 2022

Description

Backport of this PR: https://github.com/centreon/centreon/pull/11138
The function GetMyHostPoller deals with a host name and not a host id.
So we have to send the host name related to the comment we want to delete.

Fixes MON-12828

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)

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).

Thebarda and others added 30 commits October 15, 2021 17:06
* Fix options duplication

* Improve option selected code

* Fix filter tests
* fix(unattended): change release to 1 instead of 2

* fix(unattended): use remi7 to install php8 on centos7

* fix: revert release rpm version to 2
* Add a second sort criteria

* Fix tests

* Refactor for readability
* Fix tiles local storage

* Fix test
* problems fixed with PHP 8.0

* fixed centreon-box suggestions

* resolved centreon-bot suggestions

* Delete ldap-test.yml

* Delete log

* Update listImg.ihtml
* enh(resource-status): escape "_" character to use indexed search

* enh(resources): use EXISTS statement instead of INNER JOIN
* Re-import-translation-for-button-export-in-one-click

* Update messages.po

Co-authored-by: Kevin Duret <kduret@centreon.com>
* fix(filter): handle name when saving criterias hg/sg

* fix unit tests

* centreon-bot: fix feedbacks

* Update src/Centreon/Domain/Monitoring/HostGroup/HostGroupService.php

Co-authored-by: alaunois <alaunois@centreon.com>

* Update src/Centreon/Domain/Monitoring/ServiceGroup/Interfaces/ServiceGroupRepositoryInterface.php

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>

* Update src/Centreon/Domain/Monitoring/ServiceGroup/Interfaces/ServiceGroupServiceInterface.php

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>

* Update src/Centreon/Domain/Monitoring/ServiceGroup/Interfaces/ServiceGroupRepositoryInterface.php

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>

* Update src/Centreon/Domain/Monitoring/HostGroup/Interfaces/HostGroupServiceInterface.php

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>

* Update src/Centreon/Domain/Monitoring/HostGroup/Interfaces/HostGroupServiceInterface.php

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>

* Update src/Centreon/Domain/Monitoring/HostGroup/Interfaces/HostGroupRepositoryInterface.php

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>

* Update src/Centreon/Domain/Monitoring/HostGroup/Interfaces/HostGroupRepositoryInterface.php

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>

* Update src/Centreon/Domain/Monitoring/ServiceGroup/Interfaces/ServiceGroupServiceInterface.php

* code-review: take kdus feedback into account

* try to fix API acceptance test

Co-authored-by: alaunois <alaunois@centreon.com>
Co-authored-by: Laurent Calvet <lcalvet@centreon.com>
* Fix filter select width

* Fix loading skeleton width
* add commented line 140 of formMyAccount.php

* remove js effects animation occurences

* fixed error on myFormAccount.php

* add statement to delete contact_js_effects column and fixed psr format

* File restored

* restored files

* delete alter table contact statement

* add sql update script

* edit sql file

* updated sql statement
jeremyjaouen and others added 13 commits July 11, 2022 15:52
… a trap (#11328)

This PR aims to remove the restriction on the uniqueness of the OID of a trap.
* sanitizing and binding sync dir file queries

* Applying some fixes
* Sanitize and bind ACL class queries

Queries   sanitized  and bound using PDO statement

* fix spaces

spaces between (int) cast and variables

* update file delete spaces after comma

* change variables names due to a review

* Line exceeds 120 characters; contains 123 characters
#11458)

* Sanitize and bind ACL host dependency queries

* fix issues
@callapa callapa requested review from a team, TamazC and wtermellil and removed request for a team August 2, 2022 12:00
@sonarqube-decoration
Copy link

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@callapa callapa requested review from a team, bdauria and Thebarda and removed request for a team August 4, 2022 07:44
@bdauria bdauria removed request for bdauria and Thebarda August 9, 2022 09:25
@kduret
Copy link
Contributor

kduret commented Aug 10, 2022

@kduret kduret closed this Aug 10, 2022
@kduret kduret deleted the MON-12828-dev-21.10.x branch August 10, 2022 13:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.