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

Shuffle compatibility improvements #5739

Closed

Conversation

johnhaddon
Copy link
Member

This improves backwards compatibility for the recent improvements to the Shuffle node. As the tests now demonstrate, not only can you load old files (we had test coverage for this already), but you can now also create new expressions via the API using the legacy plug names. This should help Cinesite get over the upgrade hump, since they have nodes which create such expressions internally in their constructors.

The key change here is that `__plug()` now uses a series of `__getitem__` calls rather than a single call to `descendant()`, giving the compatibility configs the ability to monkey-patch a name change in at any step.

The other changes aren't strictly necessary, but I switched from storing plug paths as "dot.separated.strings" to `( "tuples", "of", "names" )` since that's the form we now need them in most commonly, and avoids a bunch of string manipulations for the more common operations. This leaves us doing string manipulations only for the less common error-handling code paths.
And add test demonstrating that expressions can still be made using the old names for plugs. This is necessary for an internal expression created by a node at Cinesite.
@johnhaddon johnhaddon self-assigned this Mar 19, 2024
@johnhaddon
Copy link
Member Author

I could do with getting this one out for testing at Cinesite - if you could take a look today @danieldresser-ie that would be great.

@johnhaddon johnhaddon closed this Mar 21, 2024
@johnhaddon johnhaddon deleted the shuffleCompatImprovements branch May 1, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant