-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Rename TopologicGraph to WorkspaceGraph #3411
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
9 Ignored Deployments
|
TopologicGraph in the engine sounds like it's for tasks, since the engine is for executing tasks, but it's really the workspace graph.
🟢 CI successful 🟢Thanks |
Just to be clear, topological in this context means topologically sorted? Seems like there's other variables in this context using that term and I'm not really sure what it implies. Otherwise LGTM |
Not really, it's a graph data structure about which workspaces are connected to which. It's built up by looking at dependencies between workspaces: https://github.com/vercel/turbo/blob/671f89dcbdb85567b94c13609240c5a158bc6f99/cli/internal/context/context.go#L162 |
Hmm yeah maybe this is me overthinking this but topological is a really general word. I'd be in favor of removing it entirely unless we're talking about topological sorting. |
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.
Can you also rename some of the functions in context.go
(like populateTopologicGraphForPackageJSON
for example) - I think that's the last place we refer to TopologicalGraph
@tknickman great call, updated! |
TopologicGraph in the engine sounds like it's for tasks, since the engine is for executing tasks, but it's really the workspace graph.