Closed smk4664 closed 3 years ago
Does this command accept an App to limit the scope of what gets executed?
Not currently, it targets all. But you can turn off some of the commands.
https://nautobot.readthedocs.io/en/stable/administration/nautobot-server/#post_upgrade
I fear that this can cause unexpected and irreversible side effects, especially with how Poetry handles dependencies. I know that I have accidently caused Nautobot to upgrade by installing/upgrading Plugins. If it automatically ran migrations, then it would have been very difficult to rollback to the desired Nautobot version.
Our existing guide just says to run nautobot-server migrate
. Migrations are reversible (or should be). I will put in a PR for adding an app input to post_upgrade.
Proposed Functionality
Plugins should use
nautobot-server post_upgrade
after installing plugins instead ofnautobot-server migrate
andnautobot-server collectstatic
.Use Case
Ease of installing plugins, and also covers bases of clearing cache, running migrations whether they think database changes have happened or not.
Database Changes
N/A
External Dependencies
N/A