-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Some reorg in order to help and allow others to contribute more #439
base: master
Are you sure you want to change the base?
Conversation
There is a lot of changes, so I need to review this feature carefully. (and there seems to be breaking changes) Let's take some time to review it and will get back. |
Before the review, the approaches suggested by @bkmeneguello (#438 ) and @gabriel-tessier (#407 (comment)) also looks good to me personally. But I'm not sure which is the best for now before review it completely. (just comment) |
I understand, I made sure to split the changes to logical commits, so may I
suggest to review it by commit.
Thanks.
…On Thu, Jan 28, 2021, 20:56 MinJae Kwon ***@***.***> wrote:
Before the review, the approach also suggested by @bkmeneguello
<https://github.com/bkmeneguello> (#438
<#438> ) and @gabriel-tessier
<https://github.com/gabriel-tessier> (#407 (comment)
<#407 (comment)>)
looks good to me personally. But I'm not sure which is best for now before
review it completely. (just comment)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#439 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGJMVH7O5Z44Z7CBKNZ6U3S4GXMPANCNFSM4WP7JAYA>
.
|
I tried your PR but it's not working like the other ones (specially #438): from diagrams import Cluster, Diagram
from diagrams.aws.compute import ECS
from diagrams.aws.database import RDS, Aurora
from diagrams.aws.network import Route53, VPC
with Diagram("Simple Web Service with DB Cluster", show=True, filename="mysql"):
dns = Route53("dns")
web = ECS("service")
with VPC('VPC'):
# using cluster with an icon
with ECS("DB ClusterA"):
db_master1 = RDS("main")
db_master1 - [RDS("replica1"), RDS("replica2")]
# using the node
with Aurora("DB ClusterA") as db2:
db_master2 = RDS("main")
db_master2 - [RDS("replica1"), RDS("replica2")]
dns >> web >> db_master1
# link to/from cluster
dns >> web >> db2 |
I can confirm the problem raised bellow I just updated the name of the cluster to make it more clear: from diagrams import Cluster, Diagram
from diagrams.aws.compute import ECS
from diagrams.aws.database import RDS, Aurora
from diagrams.aws.network import Route53, VPC
with Diagram("Simple Web Service with DB Cluster", show=True, filename="mysql"):
dns = Route53("dns")
web = ECS("service")
with VPC('VPC'):
# using cluster with an icon
with ECS("DB ClusterA"):
db_master1 = RDS("main")
db_master1 - [RDS("replica1"), RDS("replica2")]
# using the node
with Aurora("DB ClusterB") as db2:
db_master2 = RDS("main")
db_master2 - [RDS("replica1"), RDS("replica2")]
dns >> web >> db_master1
# link to/from cluster
dns >> web >> db2 which render like this on your branch: and same code on bkmeneguello PR: @bkmeneguello On this PR there's also the same error about the color order reported on the pull/438: But the "graph_attr" is working correctly in this PR. |
Any update and/or anything anyone can do to help - test, review code? |
I will try to fix the issue that was found this weekend, but have some
personal issues.
…On Sun, Mar 7, 2021, 06:09 Scott Stirling ***@***.***> wrote:
Any update and/or anything anyone can do to help - test, review code?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#439 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGJMVCKF7BLZPSMWKPOOHDTCL4A5ANCNFSM4WP7JAYA>
.
|
Hey, I started using Diagrams and that PR looks like something that would be very helpful for me. Unfortunately, it looks outdated. @dan-ash and @mingrammer would it be a problem if I would raise a series of smaller PRs that would implement what was implemented in this PR? |
I'll really be happy to see this go through, I was unable to push this
myself due lack of time.
In order to not waste our time, how about we get @mingrammer
<https://github.com/mingrammer> POV on this and have some discussion, so it
wont get stuck again?
I have a bit more time now days so I can work on this also.
Thanks for raising this
…On Mon, May 24, 2021, 15:04 Robert Matusewicz ***@***.***> wrote:
Hey, I started using Diagrams and that PR looks like something that would
be very helpful for me. Unfortunately, it looks outdated. @dan-ash
<https://github.com/dan-ash> and @mingrammer
<https://github.com/mingrammer> would it be a problem if I would raise a
series of smaller PRs that would implement what was implemented in this PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#439 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGJMVAW57OMLJYOJTYLH6LTPI6DJANCNFSM4WP7JAYA>
.
|
I think that it's a good idea. From my side, I would propose splitting that PR into refactoring one (so moving classes outside of init) and a functional one. The first should be fairly easy to review and then we can focus on a juicy, functional part! |
@dan-ash might be good to split this PR into smaller entities -- pulling out the re-org by itself would be non-breaking, I imagine, and then that could get merged relatively quickly I'd hope (cc @mingrammer ) Do we know what the breaking changes are? What are your thoughts on #438, also, which looks to be solving the same issues? |
@chadfurman |
Where are we on this one and/or #438 ? Would love to have this functionality! |
@chadfurman @mingrammer I reverted the changes for the Nodes as clusters (aka branded clusters) hope that this will allow you with merging this change that is only related to ordering of the classes, I will then create a follow up PR with the changes that allows for using Nodes as Clusters. |
@mingrammer is there a plan to get this merged? |
just found this project recently. really need the ability to have edges between Clusters rather than just nodes. |
It takes years (at least 2), and I am doubt there is something blocks all related PR merge. |
Please resolve the conflicts from master :) |
Hey, |
@dan-ash Sorry .. 😭 |
@@ -47,12 +47,12 @@ def test_validate_curvestyle(self): | |||
def test_validate_outformat(self): |
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.
There was an issue with the tests, so I decided to modify the code to support the test, if that wasn't the test intention let me know and I will restore the previous
@mingrammer Could you please review and merge this one? This is a very cool feature |
Friendly ping! |
Would be awesome to get this feature. |
Certainly would be awesome |
Is this review still ongoing ? The ability of linking clusters would be a game changer to link different scales together |
create a context abstract class Node as Cluster Adding documentation Revert node as cluster Fix multiple out format implementation & test CR Changes Group=Cluster
@LaTrissTitude Thanks for raising it again, I got a bit frustrated with this project after so many years, but I had a bit of time, so I decided to update the PR. |
Bump! |
To be fair, at this point, we might just have to use dan's fork while
waiting for a merge 😅
Le sam. 2 déc. 2023, 11:49, Ivan Voras ***@***.***> a écrit :
… Bump!
For both reasons - branding clusters with service icons, and connecting
clusters.
—
Reply to this email directly, view it on GitHub
<#439 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHYJKDPWHUB2XODNYSI2T3YHMBTLAVCNFSM4WP7JAYKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBTG4YTCOBRHE3A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've basically just been using mermaid
…On Sat, Dec 2, 2023, 06:12 Triss Jacquiot ***@***.***> wrote:
To be fair, at this point, we might just have to use dan's fork while
waiting for a merge 😅
Le sam. 2 déc. 2023, 11:49, Ivan Voras ***@***.***> a écrit :
> Bump!
> For both reasons - branding clusters with service icons, and connecting
> clusters.
>
> —
> Reply to this email directly, view it on GitHub
> <#439 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABHYJKDPWHUB2XODNYSI2T3YHMBTLAVCNFSM4WP7JAYKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBTG4YTCOBRHE3A>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#439 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE3CIXJC3UDJP2OXQ336O3YHMEKBAVCNFSM4WP7JAYKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBTG4YTEMRWHAZQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I forked diagrams with cluster changes and the fixes I reported + other features, the lib is actively used by me for the web version and if you really want to use cluster as node give it a try. https://github.com/diagrams-web/diagrams-xtd I can push release or publish it on pypi if people use it. |
Any updates ? |
Would be great to have this merged and released, especially for the ability to link Clusters! 👍 |
It may help people here. I have, since my last comment, switched from diagrams to d2. It may help you too, or not, depending on your use case. |
Oh that's nice; first time I hear about it and it does seems promising. Thanks for sharing !
…On Wednesday, February 28th, 2024 at 21:21, Grégory Maitrallain ***@***.***> wrote:
It may help people here. I have, since my last comment, switched from diagrams to d2.
It may help you too, or not, depending on your use case.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Hey @mingrammer,
I'm aware that this PR is a big change but I believe it will help a lot for the maintainability of the project.