Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

General: Move publish utils to pipeline #3745

Merged
merged 21 commits into from
Aug 31, 2022

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Aug 26, 2022

Brief description

Moved publish utils from openpype.plugin and openpype.action into openpype.pipeline.publish.

Description

Kept full backwards compatibility. Moved helper functions get_errored_plugins_from_data, get_errored_instances_from_context and contextplugin_should_run. Moved simple repair actions RepairAction and RepairContextAction. Removed unused exception ValidationException. Also moved order variables ValidatePipelineOrder, ValidateContentsOrder, ValidateSceneOrder and ValidateMeshOrder.

Replaced all imports in current codebase to use new locations and marked (what was possible) as deprecated.

Additional notes

If it is untestable I can split this PR into more smalled PRs e.g. per host.

Testing notes:

  • blender validators is in right order and have working actions
  • maya validators is in right order and have working actions
  • houdini validators is in right order and have working actions
  • harmony validators is in right order and have working actions
  • fusion validators is in right order and have working actions

@ynbot
Copy link
Contributor

ynbot commented Aug 26, 2022

Task linked: OP-3835 Move publish utils to pipeline

@iLLiCiTiT iLLiCiTiT self-assigned this Aug 26, 2022
@iLLiCiTiT iLLiCiTiT added the type: refactor Structural changes not affecting functionality label Aug 26, 2022
@m-u-r-p-h-y
Copy link
Member

Maya works as expected, the order is correct and publish was successful

image

Copy link
Member

@m-u-r-p-h-y m-u-r-p-h-y left a comment

Choose a reason for hiding this comment

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

there is an issue with Houdini

Traceback (most recent call last):
  File "<stdin>", line 5, in <module>
  File "D:\REPO\OpenPype\openpype\tools\utils\host_tools.py", line 398, in show_creator
    _SingletonPoint.show_tool_by_name("creator", parent)
  File "D:\REPO\OpenPype\openpype\tools\utils\host_tools.py", line 364, in show_tool_by_name
    cls.helper.show_tool_by_name(tool_name, parent, *args, **kwargs)
  File "D:\REPO\OpenPype\openpype\tools\utils\host_tools.py", line 324, in show_tool_by_name
    self.show_creator(parent, *args, **kwargs)
  File "D:\REPO\OpenPype\openpype\tools\utils\host_tools.py", line 118, in show_creator
    creator_tool.refresh()
  File "D:\REPO\OpenPype\openpype\tools\creator\window.py", line 372, in refresh
    self._asset_name_input.setText(legacy_io.Session["AVALON_ASSET"])
KeyError: 'AVALON_ASSET'

@iLLiCiTiT
Copy link
Member Author

iLLiCiTiT commented Aug 30, 2022

there is an issue with Houdini

Unrelated to this PR but it seems like a bug for houdini 19.5

EDITED: Will be fixed in #3697

@iLLiCiTiT iLLiCiTiT dismissed m-u-r-p-h-y’s stale review August 30, 2022 11:17

Change Request is not related to this PR

@m-u-r-p-h-y
Copy link
Member

Houdini works as expected

image

@m-u-r-p-h-y
Copy link
Member

@BigRoy can you please check this PR for Fusion pls? I suppose you have the one available . . . thx!

@iLLiCiTiT iLLiCiTiT merged commit 0d67038 into develop Aug 31, 2022
@iLLiCiTiT iLLiCiTiT deleted the feature/OP-3835_Move-publish-utils-to-pipeline branch August 31, 2022 08:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: refactor Structural changes not affecting functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants