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

Assist with 2 use cases: list all importers and all importees #309

Open
fregante opened this issue Jan 15, 2022 · 3 comments
Open

Assist with 2 use cases: list all importers and all importees #309

fregante opened this issue Jan 15, 2022 · 3 comments
Labels
viz visualization enhancement, graphviz

Comments

@fregante
Copy link

fregante commented Jan 15, 2022

I'm constantly looking for the answer to these questions:

  • why is file X being bundled? (starting from direct importers until entry point)
  • what files is file X bundling? (including sub-dependencies)

Can Madge help with this somehow effectively? The graph would be good if all items except item X were hidden, because it's impossible to follow the lines otherwise.

@fregante
Copy link
Author

I just used Statoscope for this but it requires several clicks to find the dependencies. Example (bottom-right is near the entrypoint, top-left is the direct importer)

Screen Shot 13

@PabloLION
Copy link
Collaborator

Good idea. Maybe we can output a rich text like html to show all these info.

@PabloLION PabloLION added the viz visualization enhancement, graphviz label Jan 28, 2023
@fregante
Copy link
Author

fregante commented Jan 28, 2023

The regular graph should also be ok, what's really missing is a filter that hides everything else.

Given a file X in the middle of the tree, I'd expect a graph that looks like:

entry point a -> foo -> FILE X -> bar -> baz
                               -> bur
                               -> can
                               -> boo -> wip 
                                      -> mer 

This would tell me:

  • FILE X exists in bundle A because it's imported by foo
  • FILE X imports bar baz bur can boo wip mer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
viz visualization enhancement, graphviz
Projects
None yet
Development

No branches or pull requests

2 participants