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

Added generate_app_test_data management command. #809

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

gsnider2195
Copy link
Contributor

@gsnider2195 gsnider2195 commented Sep 11, 2024

This is a basic management command that generates some models so that basic development can be done on this app without using a database backup or real device access. This leverages nautobot core's generate_test_data management command.

Screenshots

image

image

TODO

  • Documentation
  • Change fragment

@gsnider2195 gsnider2195 marked this pull request as ready for review September 11, 2024 22:43
Copy link
Contributor

Choose a reason for hiding this comment

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

I want to call out that this name should be more specific to the particular app. If another app were to implement the same command for their own testing, they would conflict with each other. While Django handles this, this could cause a different generate_app_test_data run than what we may want.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd like for this to be called by core's generate_test_data so hopefully this would move into a separate module and be referenced by NautobotAppConfig. I don't plan on rolling out this management command to every app.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to nautobot-server generate_gc_test_data

@gsnider2195 gsnider2195 added the emergent Unplanned work that is brought into a sprint after it's started. label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emergent Unplanned work that is brought into a sprint after it's started.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants