-
Notifications
You must be signed in to change notification settings - Fork 254
fix issue 1479 - netbox_service - More than one result returned for #1484
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
fix issue 1479 - netbox_service - More than one result returned for #1484
Conversation
47a3c14 to
5a4514c
Compare
|
I have this on my list to take a look at, sorry for the delay |
|
So, my main problem with this PR is that there are a couple changes in this PR. They are valid changes and good to have, but I would feel more comfortable if we broke them apart so that if there was a problem, we could easily revert. If that is even possible? I do understand why they are all part of this PR but changes to how we parse the version string from the Netbox API response is always a little fraught. We recently got bitten by a change that the Docker deployment of NetBox does where they append their release version to the string, so that is why I am a little shy about this PR. If this is indeed an all or nothing change, I would appreciate some unit tests around version string parsing just to give me peace of mind. Thanks, and great work. |
5a4514c to
588215d
Compare
|
Just remembered that the CI tests run against live Netbox so the version string does get parsed and tested in CI. Sorry, brain fart. I think this is good. |
sc68cal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs yamllint fix to some change of fragments
|
Thank you for your comments. They're helping me to get familiar with this project. You’re doing a great job!
|
|
Excellent idea. I've approved and merged the changes for yamllint, so thank you for that. If you rebase this PR on the latest from devel that should get this PR to pass CI |
|
Alright, thanks. I'll rebase and modify this PR afterwards. |
|
merged 1491 |
|
Tested duplicate service names - Result
Take‑away:
|
c5c1f01 to
418a7ac
Compare
|
I still struggle with: I'll try push later on to have the pipeline green |
329beb9 to
418a7ac
Compare
- elif parent == "services":
is workaround for Netbox 4.3.0 - 4.4.3 - #20554
GET Parent_object_type wrong data type - integer instead of string
Just delete parent_object_type and parent_object_id
GET is broken anyway
418a7ac to
3c504af
Compare
|
Great, pipeline is green. I have nothing to add. |
|
Great job, thank you for breaking this into different PRs, this made things far easier to review. |
|
Yeah, breaking the original work into multiple PRs definitely made the whole process smoother. |
Related Issue
Issue #1479
(and PR #1427 seems missing ALLOWED_QUERY_PARAMS part)
Modified Behavior
parent_object_typeandparent_object_idtoservicesALLOWED_QUERY_PARAMS_build_query_paramsfor services and Netbox 4.3.0 - 4.4.3ipam/services: GET parent_object_type - wrong data type - integer netbox#20554
New Behavior
None
...
Contrast to Current Behavior
You'll be able to create more services with the same name but different parent. For netbox 4.4.4 and never
Parent param introduced in Netbox 4.3.0
...
Discussion: Benefits and Drawbacks
Services will work correctly again for Netbox 4.4.4 (4.3.0) and never
parent_object_typeandparent_object_idshould be added toservicesALLOWED_QUERY_PARAMS...
Changes to the Documentation
None
...
Proposed Release Note Entry
...
Double Check
develbranch.