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

Use shorter partially-qualified names when labelling named tasks during planning #3418

Merged
merged 5 commits into from
Aug 25, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Aug 25, 2024

Rather than foo.super.bar.qux.Baz.foo, we now use foo.super.Baz. If there are multiple Baz classes with the same task being overriden (probably rare), we use the longest partially-qualified path suffix that's able to uniquely distinguish them. We also always drop the right-most path segment, since all that does is repeat the task name we already have on the left

Also tweaked the visualize tasks to use the same planning/labelling logic as the evaluator, so the labels we see in the SVG are the same labels seen in the terminal

Adjusted existing tests, and added additional tests to cover the partially-qualified-name selection

@lihaoyi lihaoyi marked this pull request as ready for review August 25, 2024 03:39
@lihaoyi lihaoyi merged commit d8b6df3 into com-lihaoyi:main Aug 25, 2024
33 checks passed
@lefou lefou added this to the 0.12.0 milestone Aug 25, 2024
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