Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Adds tool to extract the model design#270

Draft
benthomasson wants to merge 5 commits into
ansible:mainfrom
benthomasson:codegen
Draft

Adds tool to extract the model design#270
benthomasson wants to merge 5 commits into
ansible:mainfrom
benthomasson:codegen

Conversation

@benthomasson
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread tools/extract_model_design.py Outdated
@cutwater
Copy link
Copy Markdown
Contributor

cutwater commented Nov 21, 2022

@benthomasson I struggle to understand the purpose of this. Can you please explain what problem we're trying to solve by generating yaml definitions from the database schema?

@benthomasson
Copy link
Copy Markdown
Collaborator Author

@cutwater this allows me to generate diagrams like this:
Screen Shot 2022-11-21 at 4 46 38 PM
Screen Shot 2022-11-21 at 4 47 00 PM

@benthomasson
Copy link
Copy Markdown
Collaborator Author

We can also use this data to generate tests and validate that the implementation matches the design.

Copy link
Copy Markdown
Contributor

@ddonahue007 ddonahue007 left a comment

Choose a reason for hiding this comment

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

lgtm

I believe tooling like this an be helpful for design and reference. I use Pycharm's Database tooling which does something very similar if not the same.

Screenshot 2022-11-29 at 1 19 46 PM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants