Open cfxegbert opened 3 months ago
Attention: Patch coverage is 83.33333%
with 5 lines
in your changes missing coverage. Please review.
Project coverage is 58.02%. Comparing base (
e215a77
) to head (09c12c9
). Report is 3 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
src/rez/package_order.py | 81.48% | 5 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi @cfxegbert. Can you please explain the rationale behind this change? Context is important for us. It helps us document why things were changed, by who, the pros, cons, etc.
This was moved to the rez plugin system so a new package order could be written without having to modify the rez source code. Before a developer would have to patch the source code and apply the patch every release. By moving to the plugin system new package orders could be added without modifing the source.
I could also add the rez plugin hooks and not move the existing package orders if you think that would be better.
Scanline VFX is strongly in support of this feature.
I was trying to write a new package orderer and discovered that it is not part of the rezplugin system. This refactor moves the orderers defined in package_order.py to rezplugins.package_order plugins. Function have been added to package_order.py to remain backward compatible so if a user was directly importing an orderer it should still work.