-
Notifications
You must be signed in to change notification settings - Fork 1
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
📌 Add Netbox v4.1.* compatibility #2
Conversation
Hello @fanshan, Thank you for your interest in this plugin and for opening the PR. You're correct that this patch removes the safeguards preventing the plugin from running against NetBox 4.1, but it will require both automated and manual testing before I can accept these changes. For this purpose, I recommend reordering and expanding the task list as follows:
Would you be interested in helping with testing and fixing any upgrade-related errors/bugs? In my initial testing, I encountered several GraphQL-related errors. Otherwise, I can aim to provide a compatible version within the next few days. |
Hello @pheus, I can try to fix errors raised by automated tests and update the plugin dependencies. Another question: do you want to keep compatibility with Netbox version inferior to v4.1.0? |
Thank you very much for your help!
At this stage of development, it is fine to raise the minimum required version to 4.1.0. |
Hello @pheus, I still have this kind of error when I run the tests:
Does this error tell you something? |
Hi @fanshan! Thank you for getting this far! I haven't encountered this error before. From my understanding of the test case in NetBox, it seems to be testing an invalid permission setting, which should return an empty query result with an error code or message. In your case, the GraphQL query returns the object without any errors, which is unexpected. You can find the relevant NetBox code here: Would you mind sharing your current code? |
Hi @fanshan, I was able to narrow down the problem. It's actually related to GraphQL changes introduced in v4.0.10 and v4.0.11. Here are the relevant PRs: I will update the code to ensure compatibility with v4.0.11. |
Hi @fanshan, It seems that with these changes, there are no more errors with NetBox versions 4.1.0, 4.1.1, and 4.1.2. If you're still interested, you can update your fork and rebase your changes on top. Afterward, I would be happy to accept your PR. Nonetheless, I really want to thank you for your time and effort. |
2859a8a
to
a51103d
Compare
a51103d
to
e773e83
Compare
Hello @pheus, It's was fine ! Tests pass and the plugin is improved :-) Branch rebased. Let me know if you want to change the plugin version. |
Hello @fanshan, Thank you very much for this great work! 🚀 |
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.
Well done! Thank you very much 🥇
Hello,
Thank you for developing this plugin. We would like to tests it, but we use Netbox v4.1.* versions.
For that, I propose a little patch I think is not complete. I have noted these last points to see with you in order to finalize this PR:
If you see any other point to raise, I can update this PR as well.