Skip to content

added better idempotency for zabbix-service #1412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from

Conversation

ljvdhooft
Copy link
Contributor

SUMMARY

This adds better idempotency that checks every parameter for change and updates only the changed ones. Also fixes a small bug that requires the "propagation_value" if "propagation_rule" is not set, because "propagation_rule" had a default value. This has been removed so that if both parameters are not used an error won't raise.

ISSUE TYPE
  • Bugfix Pull Request
  • Feature Pull Request

@BGmot
Copy link
Collaborator

BGmot commented Feb 16, 2025

@ljvdhooft
That's a lot of changes. Please re-base against main branch of this repository and push your code again.

Lars van der Hooft and others added 6 commits March 31, 2025 16:29
formatted service_ids as list
- from "extend" to ["serviceid"]
this is for the comparison between the existing child/parent service and the passed child/parent service
- added sorting by serviceid
@ljvdhooft
Copy link
Contributor Author

hi, please check again. Tests passed locally

Comment on lines +9 to +11
branches:
- dev
- main
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this?

Copy link

codecov bot commented Apr 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.71%. Comparing base (bd86d7d) to head (28f0b5a).
Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1412      +/-   ##
==========================================
- Coverage   79.05%   78.71%   -0.34%     
==========================================
  Files          47       47              
  Lines        5958     6010      +52     
  Branches     1539     1566      +27     
==========================================
+ Hits         4710     4731      +21     
- Misses        768      782      +14     
- Partials      480      497      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@BGmot
Copy link
Collaborator

BGmot commented May 16, 2025

Retired in favour of #1538
Thanks @ljvdhooft !

@BGmot BGmot closed this May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants