Skip to content

Chore: Plugins code refactor - #68

Merged
iLLiCiTiT merged 34 commits into
developfrom
enhancement/code-refactor
Feb 16, 2026
Merged

iLLiCiTiT merged 34 commits into
developfrom
enhancement/code-refactor

Conversation

@iLLiCiTiT

@iLLiCiTiT iLLiCiTiT commented Feb 12, 2026

Copy link
Copy Markdown
Member

Changelog Description

Code refactor of publish plugins and orders unification.

Additional review information

This is an attempt to refactor plugins code and orders. Not all of the changes has to be merged, it is something I did start to do when prepared the addon for prodct base types. I didn't test any of the changes so it might not be correct.

With merge of ynput/ayon-core#1701 more changes can be made.

Change logic of few addons to skip logic based on settings earlier to avoid unnecessary checks if the plguin should not be running at all.

Split collect review plugin into 2 -> collect review only adds "review" family to instance -> which can be also used in automated target and the same logic can be removed from collect auto review. And added new plugin collect review data which adds the context data to instances.

Settings are access explicitly without .get("...", {}) but `["..."].

Collect auto review instance does not add "review" family to instances with "mark_for_review" as that should happen in Collect review.

During the changes I did find inconsistencies of orders in ayon-core addon (also made a PR in ayon-core).

Testing notes:

First of all look at code changes and check them.

  1. Publishing works correctly for both local and automated publishing.

@iLLiCiTiT iLLiCiTiT added type: enhancement Improvement of existing functionality or minor addition community Issues and PRs coming from the community members labels Feb 12, 2026
@iLLiCiTiT iLLiCiTiT self-assigned this Feb 12, 2026
@iLLiCiTiT
iLLiCiTiT requested a review from kalisp February 12, 2026 16:08
@iLLiCiTiT
iLLiCiTiT marked this pull request as draft February 12, 2026 16:14

@kalisp kalisp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fixed one condition, but otherwise it seems to be working even in automatic tests.

@iLLiCiTiT
iLLiCiTiT marked this pull request as ready for review February 16, 2026 16:51
@iLLiCiTiT
iLLiCiTiT merged commit 9029b4d into develop Feb 16, 2026
1 check passed
@iLLiCiTiT
iLLiCiTiT deleted the enhancement/code-refactor branch February 16, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Issues and PRs coming from the community members type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants