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

Refactor node selection #1490

Merged
merged 2 commits into from
May 30, 2019

Conversation

beckjake
Copy link
Contributor

Refactor node selection to split the part that knows about graphs (and therefore children/parents) from the part that only knows about the manifest (names and globs).

This is part of the groundwork for #1212

Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

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

This LGTM! Can you merge this into a new branch, dev/louisa-may-alcott?

package_names = get_package_names(graph)
for node, real_node in self.parsed_nodes(graph):
qualified_name = selector.split(".")
package_names = {node.split(".")[1] for node in included_nodes}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the package name always the second item in the unique_id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup! It's not true for docs, but they don't participate here.

@beckjake beckjake changed the base branch from dev/wilt-chamberlain to dev/louisa-may-alcott May 30, 2019 13:36
@beckjake beckjake force-pushed the refactor/node-selector-separated branch from ff787b2 to da97aa0 Compare May 30, 2019 13:36
@beckjake beckjake force-pushed the refactor/node-selector-separated branch from da97aa0 to 2b89c5c Compare May 30, 2019 16:04
@beckjake beckjake merged commit 73b7062 into dev/louisa-may-alcott May 30, 2019
@beckjake beckjake deleted the refactor/node-selector-separated branch May 30, 2019 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants