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

12591 config params admin #12904

Merged
merged 19 commits into from
Jun 22, 2023
Merged

12591 config params admin #12904

merged 19 commits into from
Jun 22, 2023

Conversation

arthanson
Copy link
Collaborator

@arthanson arthanson commented Jun 14, 2023

Fixes: #12591

Adds standard list, add, edit views for ConfigRevisions so can mange them within NetBox UI instead of the admin. Did not add the bulk edit or import views as those did not seem to make any sense for ConfigRevision. Left the functionality within the Admin, not sure if we wanted to remove those right away.

Note: Kept in the one-line admin.py as without it will cause a circular import issue. Opened up #12919 to track as this would require more refactoring that is worth a separate ticket.

Monosnap Config Revisions | NetBox 2023-06-14 12-44-20
Monosnap Editing config revision Config revision #1 (2023-06-13 22:21:04 520611+00:00) | NetBox 2023-06-14 12-44-37
Monosnap Restore: Config revision #3 (2023-06-16 15:18:54 162509+00:00) | NetBox 2023-06-16 13-10-51

@arthanson arthanson changed the title DRAFT: 12591 config params admin 12591 config params admin Jun 14, 2023
@arthanson arthanson marked this pull request as ready for review June 14, 2023 19:59
@jeremystretch
Copy link
Member

Left the functionality within the Admin, not sure if we wanted to remove those right away.

IMO we should remove it from the admin: It can be confusing having the same functionality accessible in two places.

netbox/extras/forms/__init__.py Show resolved Hide resolved
netbox/extras/forms/model_forms.py Outdated Show resolved Hide resolved
netbox/netbox/navigation/menu.py Outdated Show resolved Hide resolved
netbox/templates/extras/configrevision.html Outdated Show resolved Hide resolved
netbox/utilities/views.py Outdated Show resolved Hide resolved
@arthanson
Copy link
Collaborator Author

All updated @jeremystretch - I noticed I forgot to add the restore command, so that is in there now.

@jeremystretch jeremystretch added the beta Concerns a bug/feature in a beta release label Jun 20, 2023
netbox/extras/admin.py Outdated Show resolved Hide resolved
netbox/extras/views.py Outdated Show resolved Hide resolved
netbox/extras/views.py Show resolved Hide resolved
netbox/utilities/views.py Outdated Show resolved Hide resolved
@jeremystretch jeremystretch merged commit 148278a into feature Jun 22, 2023
8 checks passed
@jeremystretch jeremystretch deleted the 12591-config-params-admin branch June 22, 2023 18:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants