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

[Housekeeping] Viewsets migration #96

Merged
merged 5 commits into from
Jun 22, 2023
Merged

[Housekeeping] Viewsets migration #96

merged 5 commits into from
Jun 22, 2023

Conversation

mzbroch
Copy link
Contributor

@mzbroch mzbroch commented Apr 26, 2023

This PR implements features that should be here before adding support for Nautobot 2.0 :

Sorry for the very long PR ... :(

@mzbroch mzbroch requested a review from whitej6 April 26, 2023 07:46
@mzbroch mzbroch force-pushed the mzb-jwhite-viewset branch 2 times, most recently from 72adb58 to 582afe7 Compare April 26, 2023 08:51
@mzbroch mzbroch mentioned this pull request Apr 26, 2023
@mzbroch mzbroch requested a review from snaselj April 28, 2023 08:32
@mzbroch mzbroch marked this pull request as ready for review April 28, 2023 08:33
nautobot_bgp_models/models.py Outdated Show resolved Hide resolved
@@ -318,7 +341,8 @@ class PeerGroup(PrimaryModel, InheritanceMixin, BGPExtraAttributesMixin):

name = models.CharField(max_length=100)

template = models.ForeignKey(
# Rename to avoid clash with DRF renderer
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh. What was the issue here?

nautobot_bgp_models/models.py Outdated Show resolved Hide resolved
nautobot_bgp_models/models.py Outdated Show resolved Hide resolved
Comment on lines -65 to -75
path("peering-roles/edit/", views.PeeringRoleBulkEditView.as_view(), name="peeringrole_bulk_edit"),
path("peering-roles/delete/", views.PeeringRoleBulkDeleteView.as_view(), name="peeringrole_bulk_delete"),
path("peering-roles/<slug:slug>/", views.PeeringRoleView.as_view(), name="peeringrole"),
path("peering-roles/<slug:slug>/edit/", views.PeeringRoleEditView.as_view(), name="peeringrole_edit"),
path("peering-roles/<slug:slug>/delete/", views.PeeringRoleDeleteView.as_view(), name="peeringrole_delete"),
path(
"peering-roles/<slug:slug>/changelog/",
ObjectChangeLogView.as_view(),
name="peeringrole_changelog",
kwargs={"model": models.PeeringRole},
),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is nautobot/nautobot#3663 an issue for any of the converted views?

Add BGPRoutingInstance status field
Add CSV import and export
@mzbroch
Copy link
Contributor Author

mzbroch commented Jun 14, 2023

@whitej6 @glennmatthews Please re-review. Sorry for the long PR. :(


import nautobot.extras.forms as extras_forms
import nautobot.utilities.forms as utilities_forms
Copy link
Contributor

Choose a reason for hiding this comment

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

For my own education, what are we still needing to pull direct from nautobot.utilities.forms? We should look at getting those added to nautobot.apps.forms.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

import nautobot.utilities.forms as utilities_forms
utilities_forms.ColorSelect
utilities_forms.BOOLEAN_WITH_BLANK_CHOICES
utilities_forms.StaticSelect2
utilities_forms.BulkEditNullBooleanSelect
utilities_forms.StaticSelect2Multiple

nautobot_bgp_models/forms.py Outdated Show resolved Hide resolved
nautobot_bgp_models/models.py Show resolved Hide resolved
nautobot_bgp_models/urls.py Show resolved Hide resolved
@mzbroch mzbroch merged commit 23adfbe into develop Jun 22, 2023
16 checks passed
@mzbroch mzbroch deleted the mzb-jwhite-viewset branch February 27, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Status field on BGP Routing Instance Model Implement Notes feature on BGP models
3 participants