Skip to content
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

netbox-reorder-rack: init at 1.0.0 #311657

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

minijackson
Copy link
Member

Description of changes

A NetBox plugin for reordering racks using click and drop: https://github.com/minitriga/netbox-reorder-rack

Not packaged using v1.1.0 yet, because that version is only compatible with NetBox>=4.0.0.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Tested by running NetBox with that plugin enabled inside a clean VM.

@RaitoBezarius & @n0emis might be interested in this.


Add a 👍 reaction to pull requests you find important.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/4032

pkgs/servers/web-apps/netbox/generic.nix Outdated Show resolved Hide resolved
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';

dontUsePythonImportsCheck = python.pythonVersion != netbox.pythonVersion;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
dontUsePythonImportsCheck = python.pythonVersion != netbox.pythonVersion;
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;

Why not build netbox with the correct python version?

Copy link
Member Author

Choose a reason for hiding this comment

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

NetBox itself is a python "application", so it's only built for one version of Python, in my opinion it doesn't make much sense to build it multiple times.

used in order to figure out if we can test a given NetBox plugin
not 1.1.0 yet because that version is only compatible with NetBox>=4.0.0
@SuperSandro2000 SuperSandro2000 merged commit f76b3ac into NixOS:master Jul 10, 2024
24 checks passed
@minijackson minijackson deleted the init-netbox-reorder-rack branch July 12, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants