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

fix(filter): handle name when saving criterias hg/sg #10330

Merged
merged 14 commits into from
Oct 20, 2021

Conversation

adr-mo
Copy link
Contributor

@adr-mo adr-mo commented Oct 19, 2021

This fixes an issue when editing a filter. Front-end does not send the ids anymore but only the names of servicegroups and hostgroups as criterias. this needs to be reflected on backend when an update action is sent for the filter

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
  • Updating documentation (missing information, typo...)

Target serie

  • 20.04.x
  • 20.10.x
  • 21.04.x
  • 21.10.x (master)

How this pull request can be tested ?

See Jira ticket for details

Checklist

  • 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 made corresponding changes to the documentation.
  • I have rebased my development branch on the base branch (master, maintenance).

@adr-mo adr-mo requested review from a team, callapa, a-launois and kduret and removed request for a team October 19, 2021 13:58
@adr-mo adr-mo requested a review from a team October 19, 2021 15:06
adr-mo and others added 8 commits October 20, 2021 10:31
Co-authored-by: alaunois <alaunois@centreon.com>
…GroupRepositoryInterface.php

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

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

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

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

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

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

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>
callapa
callapa previously approved these changes Oct 20, 2021
a-launois
a-launois previously approved these changes Oct 20, 2021
@adr-mo adr-mo dismissed stale reviews from a-launois and callapa via f7dbb1a October 20, 2021 08:40
a-launois
a-launois previously approved these changes Oct 20, 2021
callapa
callapa previously approved these changes Oct 20, 2021
@adr-mo adr-mo dismissed stale reviews from callapa and a-launois via 82b5690 October 20, 2021 13:35
@sonarqube-decoration
Copy link

@callapa callapa requested review from a-launois and kduret October 20, 2021 14:03
@adr-mo adr-mo merged commit 5fb626a into develop Oct 20, 2021
@adr-mo adr-mo deleted the MON-11353-editing-filter-with-dynamic-criterias branch October 20, 2021 14:09
adr-mo added a commit that referenced this pull request Oct 22, 2021
* 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>
adr-mo added a commit that referenced this pull request Oct 22, 2021
* 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>
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.

4 participants