Skip to content

Commit

Permalink
Merge pull request #282 from smk4664/Release-3.0.1
Browse files Browse the repository at this point in the history
Fix Imports and permissions
  • Loading branch information
smk4664 authored Sep 30, 2023
2 parents ff8e139 + 91e4f44 commit 3368843
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions docs/admin/release_notes/version_3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@

- [#112](https://github.com/nautobot/nautobot-plugin-chatops/issues/112) - Add ability to link Chat User with Nautobot User.
- [#272](https://github.com/nautobot/nautobot-plugin-chatops/issues/272) - Add ObjectNotesView for ChatOps models.

## [v3.0.1 (2023-09-29)](https://github.com/nautobot/nautobot-plugin-chatops/releases/tag/v3.0.1)

### Fixed

- [[#281](https://github.com/nautobot/nautobot-plugin-chatops/issues/281) - Address permissions bug found during release review.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ nav:
- Compatibility Matrix: "admin/compatibility_matrix.md"
- Release Notes:
- "admin/release_notes/index.md"
- v3.0: "admin/release_notes/version_3.0.md"
- v2.1: "admin/release_notes/version_2.1.md"
- v2.0: "admin/release_notes/version_2.0.md"
- v1.11: "admin/release_notes/version_1.11.md"
Expand Down
2 changes: 1 addition & 1 deletion nautobot_chatops/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Administrative capabilities for nautobot_chatops plugin."""

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


@admin.register(CommandLog)
Expand Down
2 changes: 1 addition & 1 deletion nautobot_chatops/api/views/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from nautobot.apps.api import NautobotModelViewSet

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


Expand Down
6 changes: 3 additions & 3 deletions nautobot_chatops/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@


class CommandLogListView(PermissionRequiredMixin, ObjectListView):
"""View for listing all extant AccessGrants."""
"""View for listing all extant Command Logs."""

action_buttons = ("export",)
permission_required = "nautobot_chatops.view_accessgrant"
permission_required = "nautobot_chatops.view_commandlog"
queryset = CommandLog.objects.all().order_by("-start_time")
filterset = CommandLogFilterSet
filterset_form = forms.CommandLogFilterForm
Expand All @@ -44,7 +44,7 @@ class AccessGrantListView(PermissionRequiredMixin, ObjectListView):

# 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_commandlog"
permission_required = "nautobot_chatops.view_accessgrant"
queryset = AccessGrant.objects.all().order_by("command")
filterset = AccessGrantFilterSet
filterset_form = forms.AccessGrantFilterForm
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nautobot-chatops"
version = "3.0.0"
version = "3.0.1"
description = "A plugin providing chatbot capabilities for Nautobot"
authors = ["Network to Code, LLC <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 3368843

Please sign in to comment.