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

autolabel flag in diagrams that modifies label #482

Merged
merged 2 commits into from
Nov 4, 2022

Conversation

anovis
Copy link
Contributor

@anovis anovis commented Mar 3, 2021

adds a flag autolabel to diagram that would prepend the node type to the label.

closes #376

for example

with Diagram("Autolabel test", autolabel=True):
    PubSub("Topic") >> GCF("Labeler") >> SQL("Resources")

would generate

autolabel_test

diagrams/__init__.py Outdated Show resolved Hide resolved
diagrams/__init__.py Outdated Show resolved Hide resolved
Copy link
Owner

@mingrammer mingrammer left a comment

Choose a reason for hiding this comment

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

LGTM!

@mingrammer mingrammer merged commit 7c18dd6 into mingrammer:master Nov 4, 2022
ngruelaneo pushed a commit to aneoconsulting/diagrams that referenced this pull request Nov 25, 2022
* autolabel flag in diagrams that modifies label

* update based on review
ajmaradiaga pushed a commit to ajmaradiaga/diagrams that referenced this pull request Nov 8, 2023
* autolabel flag in diagrams that modifies label

* update based on review
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.

Feature Request: automatic label of node type
2 participants