-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add a filter to not display all dependencies from whole graph #11
Comments
New additions (and mere ideas) are very much appreciated! I think it certainly makes sense to add this feature. Perhaps it should be generalized as to accept a |
jeah, i thought for depth as well. But I have dependencies in my graph that are sub dependencies, which i want to display. |
Duh, totally missed your reply, sorry. Now I see where you're coming from. Filtering on an arbitrary parameter is significantly more complex as you have to consider what happens with intermediary dependencies like this:
So if you only keep A and C (i.e. filter out B), you might either want show
or just
which dependending on your use case might both be incorrect.. I'm interested to see what you come up with, though.
Certainly yes! :) |
👍 |
Some other thing that could make the graph more readable would be removing the require-dev dependencies. In our case every package depends on PHPUnit and PHP. This could easily be dropped. Maybe we can add a parameter to ignore dependencies also by require-dev? |
Thanks for your interest guys! Hiding dev dependencies is discussed in #2 (and a pending PR #19). Afaict this tickets aims to find other, alternative ways to "filter" the dependency graph - though I'm not sure how this could/should work (see above for some background). Any input is much appreciated! |
I would want to see a
The asterisks represent the visual indicator. On the graph, it could be a dotted border, a lighter hue, etc. Show/hide dev dependencies is just a special case of this general instrument. If my require dev is Admittedly, I haven't considered all the ramifications or possibilities. We might not allow I personally do not mind if the graph generation takes more time, if by spending that time I can get a graph that's more relevant to what I need to visualize. |
+1 I would love something like this! |
@clue I can put some cycles on this (though with no guaranteed delivery dates!). What do you think of the How about an approach like PHP Dependency Analysis, which uses "levels" to decide how deep to descend? |
@P0rnflake, Isn't If so, then the CLI API and feature from #19 could be merged in, then when this issue is implemented, just rewrite that API to use prune. That wouldn't have any BC to the user, but it might abandon all the work from #19 in favor of the general prune approach. |
Thanks for the discussion so far everybody 👍 I'd love to make this actionable and get this into a future release As such, see also #33 which aims to implement a (much simpler) Does anybody feel like giving an implementation that prunes/removes certain dependencies a go? Perhaps this may help sort out the remaining uncertainties. |
Any progress planned on this? I would like this feature as well. Whenever I have time I could have a look at the code and propose a PR but that won't be soon. |
My graph is just to large. I want to use it for documentation purposes and don't want to show up third party graph-nodes.
So a regular expression filter would help me here.
Would you merge this?
Best regards
Philipp
The text was updated successfully, but these errors were encountered: