Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

add diagram explaining the file dependencies #32

Closed
wants to merge 1 commit into from

Conversation

adeng322
Copy link

No description provided.


![A package dependency diagram is shown. The dependency graph is as follows: 1. The top level application has two production dependencies, package-one and package-two, and two dev dependencies, package-three and package-four. 2. package-one in turn depends on package-five and package-six. 3. package-two depends on package-seven and package-eight. 4. package-three also depends on package-eight. 5. package-four only depends on package-nine.](https://docs.google.com/drawings/d/e/2PACX-1vTezwHVxvTdsL0Ta5ruvXFYBYw3XYlvcENlSOUe7wehLwb8yz-q4QKc5TZAm2FtYm0e92NrlgnSJLDL/pub?w=960&h=720)

_The above diagram can be edited on [Google Drawings](https://docs.google.com/drawings/d/1FewA-gmh7vjuatHQlM_u7N56riyLfoH12huVOU0v1MA/edit)._
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of a google drawing please check in a file into this repository so anybody can edit / PR it. An SVG would be preferred since it is text

I'm not sure the icons help the diagram either. It might also be helpful to show where == lines come from. I'd probably move the -minimal files out of the box in that case

Otherwise, looks great -- thanks for putting this together!

Copy link
Member

Choose a reason for hiding this comment

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

(cc @adeng322)

instead of a google drawing please check in a file into this repository so anybody can edit / PR it. An SVG would be preferred since it is text

We’ve updated the permissions on the Google Drawings to Anyone who has the link can access. No sign-in required. Let us know if that works instead.

As for Google Drawing vs SVG…

  • The export link above remains the same even if the diagram is edited. Just edit the diagram and refresh the GitHub page. The exported image however gets cached by the browser though.
  • Google Drawings has a WYSIWYG editor, while an SVG exported from Google Drawings isn’t really readable/editable. Also, creating a readable SVG by hand is not easy.

I'm not sure the icons help the diagram either.

True, the icons are for aesthetics only, but they make the diagram look good!

It might also be helpful to show where == lines come from. I'd probably move the -minimal files out of the box in that case

We’ve updated the diagram to reflect this. Please have a look.

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

If you want a middle ground: export the google drawing, check that in, and use markdown something like:

<!-- exported from google drawing at ... -->
![](./img/diagram.svg)

Mostly want the repository to not have a dependency on google drive which is likely to become inaccessible (and can't be edited by outsiders)

As for the diagram itself:

  • pip freeze should be upgrade-requirements.
  • where did the icons come from? are they compatible with the license of this repository?
  • requirements-dev.txt should be in the top left corner like the rest of the boxes
  • the spacing for the icons in the requirements-dev.txt box are off

(I'd just fix these things, but I can't because it's a google drawing -- this is why I don't want it to be a google drawing!!!)

Are there other alternatives? Something like plantuml? (ugly, but there's probably better alternatives / themese)? I didn't realize hand-SVG was that difficult :S isn't it basically just html?

Copy link
Member

Choose a reason for hiding this comment

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

where did the icons come from? are they compatible with the license of this repository?

Good point. The icons are from the Tango icon library licensed under Attribution-Non-Commercial 3.0 Netherlands. So I guess we would need to either remove the icons or find MIT license icons, wouldn’t we?

(I'd just fix these things, but I can't because it's a google drawing -- this is why I don't want it to be a google drawing!!!)

Wait, are you sure you are not able to access the Google Drawing? We have already updated the permissions. Can you try again? I just tried opening it in an incognito window and I am able to edit! The link is: https://docs.google.com/drawings/d/1FewA-gmh7vjuatHQlM_u7N56riyLfoH12huVOU0v1MA/edit

I didn't realize hand-SVG was that difficult :S isn't it basically just html?

Hand-coding that diagram is very tiresome and time-consuming!

Copy link
Contributor

Choose a reason for hiding this comment

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

I can edit it now! But so can anybody on the internet -- that's probably worse :P

Copy link
Member

Choose a reason for hiding this comment

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

I appreciate your efforts in hand-coding the SVG but let’s take a step back and think about how often this diagram is going to be edited. I don’t expect too many changes happening in the diagram. Exporting a PNG and checking in the image is not a bad idea. It saves time and there is no need to duplicate the effort. Editing the Google Drawing later is also a much lower barrier of entry for others who would like to contribute.

Copy link
Contributor

Choose a reason for hiding this comment

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

  • the svg is very easy to edit
  • I don't want to check in a binary
  • google drive is a pretty high barrier to entry

Copy link
Member

Choose a reason for hiding this comment

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

Okay. Please check-in the SVG in this branch once you’re done. I’d like to help with the styling.

Copy link
Contributor

Choose a reason for hiding this comment

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

Here's my most recent version:

link to source: https://i.fluffy.cc/5b7TRr51s1g3TRlbfPSq2C9xvJ6F8mVs.svg

feel free to tweak and commit it :)

(I tried to make the boxes as reusable as possible, but the lines are all ad-hoc sadly -- couldn't figure out quite how to make them click)

Copy link
Member

Choose a reason for hiding this comment

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

That’s great! Sure, will tweak and commit.

@asottile
Copy link
Contributor

btw if you pull / rebase the tests are fixed -- sorry about that!

@asottile
Copy link
Contributor

asottile commented Feb 26, 2019

via #37

@asottile asottile closed this Feb 26, 2019
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.

3 participants