-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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: 3.3.9 -> 3.4.7, netbox_3_3: init at 3.3.10, RFC42-style options, more tests #206983
Conversation
Thank you for this amazing change, I wanted to revisit our options since a long time, thank you for doing it. I hope to take a look to this in the next week. |
c57d54d
to
da65aab
Compare
da65aab
to
2e460c1
Compare
3.4.3 has been released. @RaitoBezarius, are you able to give this a review? |
2e460c1
to
e91c4ae
Compare
Upgraded to 3.4.3, and rebased due to release note conflicts |
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, all of this is very high quality. :)
My only worries are the following:
- should not we introduce a state version mechanism?
- should we introduce a flag to disable automatic migrations? (to prevent any dataloss)
|
||
format = "other"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "netbox-community"; | ||
repo = pname; | ||
rev = "refs/tags/v${version}"; | ||
sha256 = "sha256-KhnxD5pjlEIgISl4RMbhLCDwgUDfGFRi88ZcP1ndMhI="; | ||
sha256 = "sha256-M/CbnlnRaWuwcJJofY5mPpVTl9zYrApsXqV9hilNyvw="; | ||
}; | ||
|
||
patches = [ | ||
# Allow setting the STATIC_ROOT from within the configuration and setting a custom redis URL | ||
./config.patch |
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.
Did we try to upstream this?
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.
Not yet, but I think we should
@minijackson Can I do something to help you on this PR? (also, can we bump it to the latest version?) |
On it! I just had to have some time to do it. |
e91c4ae
to
a17f1ea
Compare
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.
The only problem I "still have" regarding this PR is the automatic migrations.
But it is hard to take a decision.
Well, we have explicit release notes about it, so this is only a weak blocker for me.
We should definitely ask what is upstream opinion on this now and if we need to introduce proper stateVersion and graceful upgrades.
Result of 2 packages blacklisted:
1 package failed to build:
|
Redis is failing to build for me:
|
That's weird, I just rebased, and ran |
When running the latest
I guess the error is introduced by the 5.1.0 update of social-auth-app-django. We may need to pin an older version in the package file. I have tried following NixOS wiki to override Is this because |
It is, this is a limitation of how python's Until then, an easy but hacky workaround (without changing nixpkgs) is to also put |
3.4.7 is out, can I do something to help you get to the finish line here @minijackson ? I can take over and push the last changes if needed. |
@minijackson friendly ping so that I can take over if you're too busy right now :) |
@RaitoBezarius sure, go ahead. Sorry for the delay... |
297c4f6
to
24e26c6
Compare
@minijackson @SuperSandro2000 please could you give a review to this? |
16d7186
to
f4f3a71
Compare
- allows specifying allowed hosts - setup sane default for logging
reintroduce previous version, use in NixOS module if stateVersion < 23.05
f4f3a71
to
e965c5c
Compare
Seems good, thanks! (Can't make this a GitHub approval, since I'm the original author of the PR) All tests pass on my machine: nix build -f ./nixpkgs "netbox.tests.netbox"
NIXPKGS_ALLOW_INSECURE=1 nix build -f ./nixpkgs "netbox_3_3.tests.netbox" Result of 1 package marked as broken and skipped:
2 packages blacklisted:
1 package built:
|
For the next time, let's try to do smaller PRs and smaller scale changes to get easier merges. :) |
Description of changes
Also added RFC42-style options, which introduces a new
pythonVars
format which might be interesting for other Django apps.Also extended the test, since we missed the Django 4.1 incompatibility / LDAP integration issue earlier.
Added myself as maintainer, since I will be probably using it for quite some time ^^
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes@RaitoBezarius @n0emis