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

More clearly define the current version and target version in upgrade documentation #13080

Closed
lethargosapatheia opened this issue Jul 3, 2023 · 6 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: documentation A change or addition to the documentation

Comments

@lethargosapatheia
Copy link

Change Type

Correction

Area

Installation/upgrade

Proposed Changes

I've done several (successful) upgrades for netbox, but whenever I do them, I always get a little bit confused about what directories I'm supposed to copy and where I'm supposed to copy them and then I realise that the instructions here are rather confusing and that this is isn't just my fault 🙂
https://demo.netbox.dev/static/docs/installation/upgrading/
The reason for that is that X.Y.Z refers both to the newly downloaded version and the current version you're using in two different consecutive code snippets. This refers to the newly downloaded version:

sudo ln -sfn /opt/netbox-X.Y.Z/ /opt/netbox

And this to the current version:

sudo cp /opt/netbox-X.Y.Z/local_requirements.txt /opt/netbox/

I mean, sure, it is logical, because you've just created that symlink in /opt/netbox, but it's still rather confusing and you have to look and check several times until you figure out 🙂

It might be one of those small changes that can increase the readability of the documentation, but let me know if I'm reading this wrong :)

@lethargosapatheia lethargosapatheia added the type: documentation A change or addition to the documentation label Jul 3, 2023
@jsenecal
Copy link
Contributor

jsenecal commented Jul 3, 2023

Hi @lethargosapatheia, would you mind wording the changes based on the current documentation ? How would you do it? Would you be able to submit a PR with those changes ?

@jsenecal jsenecal added the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Jul 3, 2023
@lethargosapatheia
Copy link
Author

lethargosapatheia commented Jul 3, 2023

Unfortunately I've no idea how to submit a PR, maybe you can point me to it, but what I'd suggest, I guess, would be to replace this:

sudo cp /opt/netbox-X.Y.Z/local_requirements.txt /opt/netbox/
sudo cp /opt/netbox-X.Y.Z/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/
sudo cp /opt/netbox-X.Y.Z/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/

with this:

sudo cp /opt/netbox-current-installation/local_requirements.txt /opt/netbox/
sudo cp /opt/netbox-current-installation/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/
sudo cp /opt/netbox-current-installation/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/

The same thing with the following three code snippets:

sudo cp -pr /opt/netbox-current-installation/netbox/media/ /opt/netbox/netbox/
sudo cp -r /opt/netbox-current-installation/netbox/scripts /opt/netbox/netbox/
sudo cp -r /opt/netbox-current-installation/netbox/reports /opt/netbox/netbox/
sudo cp /opt/netbox-current-installation/gunicorn.py /opt/netbox/

Or let me know how I can submit the PR. I've identified the file at least: https://github.com/netbox-community/netbox/blob/3307bd200c38d2c548022917292c5f8db37c5541/docs/installation/upgrading.md

It can basically be anything that marks the difference between the new and the current version.

@jsenecal
Copy link
Contributor

jsenecal commented Jul 3, 2023

I would argue that introducing vA.B.C, and explaining the difference between vA.B.C and vX.Y.Z would be better.
Either that or netbox-[CURRENT-VERSION] and netbox-[TARGET-VERSION]. What do you think ?

@lethargosapatheia
Copy link
Author

lethargosapatheia commented Jul 3, 2023

I think either of your suggestions is better than what I said because they're symmetrical. If you were to ask me personally, I'd go for [CURRENT-VERSION]/[TARGET-VERSION], but that's just because I bumped into this and wanted to know clearly which is supposed to be the current version. But I'm not sure how objective this is :) Either is good!

@gdprdatasubect
Copy link
Contributor

Having stumbled across this before, X.Y.Y and X.Y.Z seems kinda fitting to me, because most people just upgrade whenever a new one is available

@lethargosapatheia
Copy link
Author

It's hard to say, I'd instinctively say they look too similar (and in reality they actually are :) ), but as long as they are different, it will be a step forward.

@DanSheps DanSheps changed the title better documentation for netbox upgrade More clearly define the current version and target version in upgrade documentation Jul 5, 2023
@abhi1693 abhi1693 self-assigned this Jul 7, 2023
@abhi1693 abhi1693 added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Jul 7, 2023
@jeremystretch jeremystretch self-assigned this Jul 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: documentation A change or addition to the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants