Skip to content

Commit

Permalink
Updates for OSRB (#101)
Browse files Browse the repository at this point in the history
* Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool

Template:

```
{
    "template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
    "dir": "nautobot-app",
    "ref": "nautobot-app-v1.2",
    "path": null
}
```

Cookie:

```
{
    "remote": "https://github.com/nautobot/nautobot-app-design-builder.git",
    "path": "/opt/ntc/drift-manager/outputs/nautobot-app-design-builder",
    "repository_path": "/opt/ntc/drift-manager/outputs/nautobot-app-design-builder",
    "dir": "",
    "branch_prefix": "drift-manager",
    "context": {
        "codeowner_github_usernames": "@abates @mzbroch",
        "full_name": "Network to Code, LLC",
        "email": "[email protected]",
        "github_org": "nautobot",
        "plugin_name": "nautobot_design_builder",
        "verbose_name": "Nautobot Design Builder",
        "plugin_slug": "nautobot-design-builder",
        "project_slug": "nautobot-app-design-builder",
        "repo_url": "https://github.com/nautobot/nautobot-app-design-builder",
        "base_url": "design-builder",
        "min_nautobot_version": "1.6.8",
        "max_nautobot_version": "2.9999",
        "camel_name": "NautobotDesignBuilder",
        "project_short_description": "Nautobot app that uses design templates to easily create data objects in Nautobot with minimal input from a user.",
        "model_class_name": "None",
        "open_source_license": "Apache-2.0",
        "docs_base_url": "https://docs.nautobot.com",
        "docs_app_url": "https://docs.nautobot.com/projects/nautobot-design-builder/en/latest",
        "_template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
        "_output_dir": "/opt/ntc/drift-manager/outputs",
        "_repo_dir": "/opt/ntc/drift-manager/outputs/.cookiecutters/cookiecutter-nautobot-app/nautobot-app",
        "_checkout": "nautobot-app-v1.2"
    },
    "base_branch": "develop",
    "remote_name": "origin",
    "pull_request_strategy": "PullRequestStrategy.CREATE",
    "post_actions": [
        "PostAction.BLACK"
    ],
    "baked_commit_ref": "",
    "draft": false
}
```

CLI Arguments:

```
{
    "cookie_dir": "",
    "input": false,
    "json_filename": "design-builder.json",
    "output_dir": "./outputs",
    "push": true,
    "template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
    "template_dir": "nautobot-app",
    "template_ref": "nautobot-app-v1.2",
    "pull_request": null,
    "post_action": [
        "black"
    ],
    "disable_post_actions": false,
    "draft": false
}
```

* chore: Manual fixes

* chore: Poetry lock

* fix: Docs

* fix: pylint

* Update docs/admin/compatibility_matrix.md

* Update docs/admin/compatibility_matrix.md

* Update drift manager for min version and uninstall update

* docs: New logo

* fix: poetry dependency fixes

* ci: trying to fix the CI pipeline

* ci: Changing pylint and migration tests to use Nautobot 2.1

* ci: More ci fixes

* refactor: Refactored v1/v2 contrib tests

---------

Co-authored-by: bakebot <[email protected]>
Co-authored-by: Jan Snasel <[email protected]>
Co-authored-by: Jeremy White <[email protected]>
Co-authored-by: itdependsnetworks <[email protected]>
  • Loading branch information
5 people authored Jan 26, 2024
1 parent 675f064 commit b097ba7
Show file tree
Hide file tree
Showing 62 changed files with 2,207 additions and 1,407 deletions.
53 changes: 33 additions & 20 deletions .cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
{
"cookiecutter": {
"codeowner_github_usernames": "@abates @mzbroch",
"full_name": "Network to Code, LLC",
"email": "[email protected]",
"github_org": "nautobot",
"plugin_name": "nautobot_design_builder",
"verbose_name": "Nautobot Design Builder",
"plugin_slug": "nautobot-design-builder",
"project_slug": "nautobot-plugin-design-builder",
"repo_url": "https://github.com/nautobot/nautobot-plugin-design-builder",
"base_url": "design-builder",
"min_nautobot_version": "1.6.0",
"max_nautobot_version": "1.9999",
"camel_name": "NautobotDesignBuilder",
"project_short_description": "A Nautobot App that uses design templates to easily create data objects in Nautobot with minimal input from a user.",
"model_class_name": "None",
"open_source_license": "Apache-2.0",
"docs_base_url": "https://docs.nautobot.com",
"docs_app_url": "https://docs.nautobot.com/projects/design-builder/en/latest"
}
"cookiecutter": {
"codeowner_github_usernames": "@abates @mzbroch",
"full_name": "Network to Code, LLC",
"email": "[email protected]",
"github_org": "nautobot",
"plugin_name": "nautobot_design_builder",
"verbose_name": "Nautobot Design Builder",
"plugin_slug": "nautobot-design-builder",
"project_slug": "nautobot-app-design-builder",
"repo_url": "https://github.com/nautobot/nautobot-app-design-builder",
"base_url": "design-builder",
"min_nautobot_version": "1.6.8",
"max_nautobot_version": "2.9999",
"camel_name": "NautobotDesignBuilder",
"project_short_description": "Nautobot app that uses design templates to easily create data objects in Nautobot with minimal input from a user.",
"model_class_name": "None",
"open_source_license": "Apache-2.0",
"docs_base_url": "https://docs.nautobot.com",
"docs_app_url": "https://docs.nautobot.com/projects/nautobot-design-builder/en/latest",
"_drift_manager": {
"template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
"template_dir": "nautobot-app",
"template_ref": "nautobot-app-v1.2",
"cookie_dir": "",
"branch_prefix": "drift-manager",
"pull_request_strategy": "create",
"post_actions": [
"black"
],
"draft": false,
"baked_commit_ref": "b205e8e892aa9fa8dd665963cfdc2f30410d8695"
}
}
}
7 changes: 4 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[flake8]
# E501: Line length is enforced by Black, so flake8 doesn't need to check it
# W503: Black disagrees with this rule, as does PEP 8; Black wins
ignore = E501, W503
ignore =
E501, # Line length is enforced by Black, so flake8 doesn't need to check it
W503 # Black disagrees with this rule, as does PEP 8; Black wins
exclude =
migrations,
__pycache__,
manage.py,
settings.py,
.venv

8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: 🐛 Bug Report
about: Report a reproducible bug in the current release of design-builder
about: Report a reproducible bug in the current release of nautobot-design-builder
---

### Environment
* Python version: <!-- Example: 3.7.7 -->
* Nautobot version: <!-- Example: 1.2.0 -->
* design-builder version: <!-- Example: 0.1.0 -->
* Python version: <!-- Example: 3.11.4 -->
* Nautobot version: <!-- Example: 1.6.8 -->
* nautobot-design-builder version: <!-- Example: 1.0.0 -->

<!-- What did you expect to happen? -->
### Expected Behavior
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ about: Propose a new feature or enhancement
---

### Environment
* Nautobot version: <!-- Example: 1.2.0 -->
* design-builder version: <!-- Example: 0.1.0 -->
* Nautobot version: <!-- Example: 1.6.8 -->
* nautobot-design-builder version: <!-- Example: 1.0.0 -->

<!--
Describe in detail the new functionality you are proposing.
Expand All @@ -19,4 +19,3 @@ about: Propose a new feature or enhancement
functionality and describe how.
--->
### Use Case

39 changes: 32 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
## New Pull Request
<!--
Thank you for your interest in contributing to Nautobot! 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.
Have you:
- [ ] Updated the README if necessary?
- [ ] Updated any configuration settings?
- [ ] Written a unit test?
Please indicate the relevant feature request or bug report below.
-->

## Change Notes
# Closes: #<ISSUE NUMBER GOES HERE>

## Justification
## 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/#creating-changelog-fragments))
- [ ] Attached Screenshots, Payload Example
- [ ] Unit, Integration Tests
- [ ] Documentation Updates (when adding/changing features)
- [ ] Example Plugin Updates (when adding/changing features)
- [ ] Outline Remaining Work, Constraints from Design
Loading

0 comments on commit b097ba7

Please sign in to comment.