-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
#90 #279 branded clusters [WIP] #407
Conversation
…com/givanovexpe/diagrams into givanovexpe-feature/add_icons_to_cluster_labels
…0-279-branded-clusters
COOL! @mingrammer What do ya think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing, and it's working very well. I'm integrating "Diagrams" into my company (>2k workers) just because of this implementation.
@bkmeneguello @wolfspyre thank you for the feedback I added Azure clusters resources as well. |
I'm trying an idea here to merge the functionality of the cluster with the
nodes, so we could get rid of the cluster class and any node could be used
with "with" and make use of this icon you introduced. WDYT?
|
@bkmeneguello I like the idea! |
@dan-ash I checked your branch on my local and had 2 questions and one comment?
The library have a logic, images files are added in a directory structure and a script generate py files and api doc. With your changes you write directly cluster.py files in the diagrams directory which is not the original way to go. I think that it's better to keep the original logic of the library. |
Hey @gabriel-tessier
How would you go with auto generate the
But this doesn't feel right to me |
I think the cluster as you defined them are just example on how they can be implemented, let me try to explain my thinking. Maybe for the simplicity of the PR it's better to go step by step and first focus on adding the icon by updating the Cluster class. If we focus only on the changes on cluster to add the icon, here one small remark:
will become:
And also check that icon and icon exist before assign the icon. will become: And as example you can provide the cluster you defined:
|
I did these changes to @dan-ash PR to allow any Node to be treated as a Cluster by adding a
Ideally, this What do you think? |
@bkmeneguello awesome work! |
@dan-ash I've updated the PR, feel free to merge with your branch and follow @gabriel-tessier advice. |
@bkmeneguello @dan-ash Anyway my comment are just advice, need to wait that mingrammer review the changes to merge them in master. |
I've updated the related PR. I know is not the "minimum" set of changes, but I think are the changes that make sense to be together. |
@bkmeneguello I merged your changes to my branch, I will remove some of my changes like @gabriel-tessier suggested & will fix the failed tests I will have some time during the weekend, really AMAZING work! |
This is awesome stuff, y’all!
@mingrammer - What do you think about this? What would need to happen here to merge?
@dan-ash , @bkmeneguello <https://github.com/bkmeneguello> does this need a new major/minor rev? breaking changes?
… On Dec 30, 2020, at 12:44 AM, dan-ash ***@***.***> wrote:
@bkmeneguello <https://github.com/bkmeneguello> I merged your changes to my branch, I will remove some of my changes like @gabriel-tessier <https://github.com/gabriel-tessier> suggested & will fix the failed tests
I will have some time during the weekend, really AMAZING work!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#407 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAM2KE7BZFKL4N4YNZUTJF3SXLD3ZANCNFSM4UYTKABQ>.
|
I took care to not mess with the public API and to keep the same behavior as before, but I cannot guarantee. It would be awesome if someone could run this version over as many as possible diagrams and review the API changes to ensure it is the same. |
Sorry friends, had some unexpected issues, hope to get to it this week. |
Hey, I'm closing this in favour of #439 |
@gabriel-tessier |
@seema1711 Hope it help. |
Thanks! |
This is a PR based on #90 add custom AWS clusters (see examples/aws.png for reference)
I would love to here feedback before I will consider this to be ready.