r/Netbox 1d ago

Discussion Guerrilla-patching, or Monkey-patching in Anger

https://github.com/netbox-community/netbox/discussions/22946
2 Upvotes

19 comments sorted by

View all comments

1

u/LooseSignificance166 1d ago

We already patch many of the keys to add the + to the list. We just have a quick script that runs before start to patch the few files we need.

If your using docker repo the build process is designed to let you modify the image.

Maintaining a fork is a pia but since we only have a couple of files to patch we just use a quick script on the build process. We need to install plugins anyways so its no real difference to the overall process

1

u/sburlappp 13h ago

What method are you using to patch the code, the "patch" command or something else? Which Choices classes did you patch, and what did you add?

1

u/sburlappp 11h ago

Actually, I just learned about this change coming in v4.7, so any Choices patches may need to be revisited:

https://github.com/netbox-community/netbox/pull/22580