-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cookie updated by NetworkToCode Cookie Drift Manager Tool (#359)
* Cookie updated by NetworkToCode Cookie Drift Manager Tool Template: ``` { "template": "https://github.com/nautobot/cookiecutter-nautobot-app.git", "dir": "nautobot-app", "ref": "refs/tags/nautobot-app-v2.4.1", "path": null } ``` Cookie: ``` { "remote": "https://github.com/nautobot/nautobot-app-chatops.git", "path": "/tmp/tmprygef_3a/nautobot-app-chatops", "repository_path": "/tmp/tmprygef_3a/nautobot-app-chatops", "dir": "", "branch_prefix": "drift-manager", "context": { "codeowner_github_usernames": "@glennmatthews @jvanderaa @smk4664 @whitej6", "full_name": "Network to Code, LLC", "email": "[email protected]", "github_org": "nautobot", "app_name": "nautobot_chatops", "verbose_name": "Nautobot ChatOps App", "app_slug": "nautobot-chatops", "project_slug": "nautobot-app-chatops", "repo_url": "https://github.com/nautobot/nautobot-app-chatops", "base_url": "chatops", "min_nautobot_version": "2.0.0", "max_nautobot_version": "2.9999", "camel_name": "NautobotChatOpsApp", "project_short_description": "Nautobot ChatOps App", "model_class_name": "CommandLog", "open_source_license": "Apache-2.0", "docs_base_url": "https://docs.nautobot.com", "docs_app_url": "https://docs.nautobot.com/projects/chatops/en/latest", "_template": "https://github.com/nautobot/cookiecutter-nautobot-app.git", "_output_dir": "/tmp/tmprygef_3a", "_repo_dir": "/github/home/.cookiecutters/cookiecutter-nautobot-app/nautobot-app", "_checkout": "refs/tags/nautobot-app-v2.4.1" }, "base_branch": "develop", "remote_name": "origin", "pull_request_strategy": "PullRequestStrategy.CREATE", "post_actions": [ "PostAction.RUFF", "PostAction.POETRY" ], "baked_commit_ref": "8b2952d1ee1fdae0ae408ac26a8d09c9485da662", "draft": false } ``` CLI Arguments: ``` { "cookie_dir": "", "input": false, "json_filename": "", "output_dir": "", "push": true, "template": "", "template_dir": "", "template_ref": "refs/tags/nautobot-app-v2.4.1", "pull_request": null, "post_action": [ "ruff", "poetry" ], "disable_post_actions": true, "draft": false } ``` * Remove unnecessary Drift Management changes. * Add back the old test_views.py * Remove Architecture Decision Record URL * Apply code review suggestions. * Address additional feedback. --------- Co-authored-by: bakebot <[email protected]> Co-authored-by: Stephen Kiely <[email protected]>
- Loading branch information
1 parent
a5a5cd3
commit 3c5c316
Showing
15 changed files
with
1,302 additions
and
1,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
Thank you for your interest in contributing to Nautobot ChatOps App! Please note | ||
that our contribution policy recommends that a feature request or bug | ||
report be opened for approval prior to filing a pull request. This | ||
helps avoid wasting time and effort on something that we might not | ||
be able to accept. | ||
Please indicate the relevant feature request or bug report below. | ||
--> | ||
|
||
# Closes: #<ISSUE NUMBER GOES HERE> | ||
|
||
## What's Changed | ||
|
||
<!-- | ||
Please include: | ||
- A summary of the proposed changes | ||
- A sectioned breakdown for larger features under ## subheadings | ||
- Screenshots, example payloads where relevant: | ||
- Before/After for bugfixes | ||
- Using a new feature | ||
--> | ||
|
||
## To Do | ||
|
||
<!-- | ||
Please feel free to update todos to keep track of your own notes for WIP PRs. | ||
--> | ||
- [ ] Explanation of Change(s) | ||
- [ ] Added change log fragment(s) (for more information see [the documentation](https://docs.nautobot.com/projects/core/en/stable/development/core/#creating-changelog-fragments)) | ||
- [ ] Attached Screenshots, Payload Example | ||
- [ ] Unit, Integration Tests | ||
- [ ] Documentation Updates (when adding/changing features) | ||
- [ ] Outline Remaining Work, Constraints from Design |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Rebaked from the cookie `nautobot-app-v2.4.1`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,35 @@ | ||
"""API Serializers for ChatOps App.""" | ||
"""API serializers for nautobot_chatops.""" | ||
|
||
from nautobot.core.api import NautobotModelSerializer | ||
from rest_framework import serializers | ||
from nautobot.apps.api import NautobotModelSerializer, TaggedModelSerializerMixin | ||
|
||
from nautobot_chatops.models import AccessGrant, CommandLog, CommandToken | ||
from nautobot_chatops import models | ||
|
||
|
||
class CommandTokenSerializer(NautobotModelSerializer): | ||
"""API serializer for interacting with CommandToken objects.""" | ||
|
||
url = serializers.HyperlinkedIdentityField(view_name="plugins-api:nautobot_chatops-api:commandtoken-detail") | ||
class CommandLogSerializer(NautobotModelSerializer, TaggedModelSerializerMixin): # pylint: disable=too-many-ancestors | ||
"""CommandLog Serializer.""" | ||
|
||
class Meta: | ||
"""Meta for CommandToken Serializer.""" | ||
"""Meta attributes.""" | ||
|
||
model = CommandToken | ||
model = models.CommandLog | ||
fields = "__all__" | ||
|
||
|
||
class AccessGrantSerializer(NautobotModelSerializer): | ||
"""API serializer for interacting with AccessGrant objects.""" | ||
|
||
url = serializers.HyperlinkedIdentityField(view_name="plugins-api:nautobot_chatops-api:accessgrant-detail") | ||
class CommandTokenSerializer(NautobotModelSerializer, TaggedModelSerializerMixin): # pylint: disable=too-many-ancestors | ||
"""CommandToken Serializer.""" | ||
|
||
class Meta: | ||
"""Meta for AccessGrant Serializer.""" | ||
"""Meta attributes.""" | ||
|
||
model = AccessGrant | ||
model = models.CommandToken | ||
fields = "__all__" | ||
|
||
|
||
class CommandLogSerializer(NautobotModelSerializer): | ||
"""API serializer for interacting with CommandLog objects.""" | ||
class AccessGrantSerializer(NautobotModelSerializer, TaggedModelSerializerMixin): # pylint: disable=too-many-ancestors | ||
"""AccessGrant Serializer.""" | ||
|
||
class Meta: | ||
"""Meta for CommandLog Serializer.""" | ||
"""Meta attributes.""" | ||
|
||
model = CommandLog | ||
model = models.AccessGrant | ||
fields = "__all__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.