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

Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool #94

Closed
wants to merge 10 commits into from

Conversation

snaselj
Copy link
Contributor

@snaselj snaselj commented Jan 9, 2024

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
}

bakebot and others added 5 commits January 9, 2024 12:08
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
}
```
@snaselj
Copy link
Contributor Author

snaselj commented Jan 9, 2024

Ready for review @whitej6 , all tests locally passes

@snaselj snaselj requested a review from whitej6 January 9, 2024 13:07
"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",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"docs_app_url": "https://docs.nautobot.com/projects/nautobot-design-builder/en/latest",
"docs_app_url": "https://docs.nautobot.com/projects/design-builder/en/latest",

The docs url should be as above - this will require rebaking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, and renamed plugin => app in .cookiecutter.json file.

@snaselj
Copy link
Contributor Author

snaselj commented Jan 24, 2024

Merged from the latest develop to resolve conflicts

@itdependsnetworks
Copy link
Contributor

This was overtake by #101, I think this should be closed.

@snaselj snaselj closed this Jan 25, 2024
@snaselj snaselj deleted the drift-manager/pr branch January 25, 2024 07:19
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