Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
Describe the bug
When tuist graph <target> is run for a json format no target filtering is done but all project/workspace structure is shown inside generated JSON file. Works correctly with png and dot format.
To Reproduce
Run tuist graph <som-target> -f json. Result: All projects and targets returned.
Tuist Version: 3.0.1
The text was updated successfully, but these errors were encountered:
GermanVelibekovHouzz
changed the title
graph command doesn't filter targets in json format
graph command doesn't filter targets for json format
Mar 31, 2022
I can confirm the issue. e.g. To reproduce in the tuist project tuist graph TuistDependencies -f json also includes the tuist target.
Feel free to open a PR if you want, and let me know if you need any help 🚀
Thank you @danyf90. As this might be my first PR to the tuist project, I'd be grateful to get some guidance about the area to look for the issue and run/test/contribution process. 🙏
The core of the graph logic is here.
In particular, the case .json: is not considering the targetsToFilter parameter.
I think it would be enough to move the logic to filter the target before that switch, and then pass the "pruned" graph in both the switch cases.
Let me know (even on Slack) if you have any doubt 🚀
Side note: also, I would also remove the . at the end of Graph exported to …, as it makes harder to copy and paste the path.
Describe the bug
When
tuist graph <target>is run for a json format no target filtering is done but all project/workspace structure is shown inside generated JSON file. Works correctly with png and dot format.To Reproduce
Run
tuist graph <som-target> -f json. Result: All projects and targets returned.The text was updated successfully, but these errors were encountered: