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

Release 3.0.0 #279

Merged
merged 70 commits into from
Sep 29, 2023
Merged

Release 3.0.0 #279

merged 70 commits into from
Sep 29, 2023

Conversation

smk4664
Copy link
Contributor

@smk4664 smk4664 commented Sep 29, 2023

What's Changed

Add support for Nautobot 2.0
Add ability to link Chat Platform User accounts to Nautobot User

TODO

  • Explanation of Change(s)
  • Added change log fragment(s) (for more information see the documentation)
  • Attached Screenshots, Payload Example
  • Unit, Integration Tests
  • Documentation Updates (when adding/changing features)
  • Outline Remaining Work, Constraints from Design

smk4664 and others added 30 commits September 7, 2022 13:05
Prepare for Release v1.10.0
Replace Device_role, ipam.Role with Role, and replace Region, Site with Location and Location Type.
These changes allow the app to load in alpha2.
Use Pre-Release version for testing Nautobot 2.0 support.
Copy link
Contributor

@jathanism jathanism left a comment

Choose a reason for hiding this comment

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

Very clean. No gripes! :shipit:

@smk4664 smk4664 merged commit 16e1e4c into develop Sep 29, 2023
28 checks passed
@@ -1,7 +1,7 @@
"""Administrative capabilities for nautobot_chatops plugin."""

from django.contrib import admin
from .models import CommandLog
from .models import CommandLog, ChatOpsAccountLink

Choose a reason for hiding this comment

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

Suggested change
from .models import CommandLog, ChatOpsAccountLink
from .models import ChatOpsAccountLink, CommandLog

from nautobot_chatops.models import AccessGrant, CommandToken
from nautobot_chatops.filters import AccessGrantFilterSet, CommandTokenFilterSet
from nautobot_chatops.api.serializers import AccessGrantSerializer, CommandLogSerializer, CommandTokenSerializer
from nautobot_chatops.models import AccessGrant, CommandToken, CommandLog

Choose a reason for hiding this comment

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

Suggested change
from nautobot_chatops.models import AccessGrant, CommandToken, CommandLog
from nautobot_chatops.models import AccessGrant, CommandLog, CommandToken

@@ -15,15 +15,23 @@ def get_view_name(self):
return "Nautobot Chatops"


class CommandTokenViewSet(ModelViewSet): # pylint: disable=too-many-ancestors
class CommandTokenViewSet(NautobotModelViewSet): # pylint: disable=too-many-ancestors

Choose a reason for hiding this comment

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

Suggested change
class CommandTokenViewSet(NautobotModelViewSet): # pylint: disable=too-many-ancestors
class CommandTokenViewSet(NautobotModelViewSet):

filterset_class = CommandLogFilterSet


class AccessGrantViewSet(NautobotModelViewSet): # pylint: disable=too-many-ancestors

Choose a reason for hiding this comment

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

Suggested change
class AccessGrantViewSet(NautobotModelViewSet): # pylint: disable=too-many-ancestors
class AccessGrantViewSet(NautobotModelViewSet):

nautobot_chatops/api/views/ms_teams.py Show resolved Hide resolved
nautobot_chatops/urls.py Show resolved Hide resolved


class AccessGrantListView(PermissionRequiredMixin, ObjectListView):
"""View for listing all extant AccessGrants."""

# Set the action buttons to correspond to what there are views. If import/export are added, this should be updated
action_buttons = ("add",)
permission_required = "nautobot_chatops.view_accessgrant"
permission_required = "nautobot_chatops.view_commandlog"

Choose a reason for hiding this comment

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

Is this change correct here? Seems like the old one is more correct.

permission_required = "nautobot_chatops.view_commandlog"
http_method_names = ["get", "post"]
class CommandLogListView(PermissionRequiredMixin, ObjectListView):
"""View for listing all extant AccessGrants."""

Choose a reason for hiding this comment

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

Suggested change
"""View for listing all extant AccessGrants."""
"""View for listing all extant Command Logs."""


action_buttons = ("export",)
permission_required = "nautobot_chatops.view_accessgrant"

Choose a reason for hiding this comment

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

Suggested change
permission_required = "nautobot_chatops.view_accessgrant"
permission_required = "nautobot_chatops.view_commandlog"



class AccessGrantListView(PermissionRequiredMixin, ObjectListView):
"""View for listing all extant AccessGrants."""

# Set the action buttons to correspond to what there are views. If import/export are added, this should be updated
action_buttons = ("add",)
permission_required = "nautobot_chatops.view_accessgrant"
permission_required = "nautobot_chatops.view_commandlog"

Choose a reason for hiding this comment

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

Suggested change
permission_required = "nautobot_chatops.view_commandlog"
permission_required = "nautobot_chatops.view_accessgrant"

@smk4664 smk4664 mentioned this pull request Sep 29, 2023
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.

4 participants