Skip to content

Improve the logic for Validate Unknown Nodes for readability#450

Open
moonyuet wants to merge 3 commits into
developfrom
enhancement/improve_log_message_for_validate_scene_unknown_nodes
Open

Improve the logic for Validate Unknown Nodes for readability#450
moonyuet wants to merge 3 commits into
developfrom
enhancement/improve_log_message_for_validate_scene_unknown_nodes

Conversation

@moonyuet

Copy link
Copy Markdown
Member

Changelog Description

This PR is to improve the logic for Validate Unknown Nodes for readability.

Additional review information

Detailed information of the changes made to the product or service, providing an in-depth description of the updates and enhancements. This can include technical information, code examples and anything else needed for the review of the PR.

Testing notes:

  1. Launch Maya with some plugins disabled such as RS, Vray
  2. Publish
  3. Validation blocked.

@moonyuet moonyuet requested a review from BigRoy June 20, 2026 05:45
@moonyuet moonyuet self-assigned this Jun 20, 2026
@moonyuet moonyuet added the type: enhancement Improvement of existing functionality or minor addition label Jun 20, 2026
@BigRoy BigRoy requested a review from Copilot June 23, 2026 07:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the guard logic in ValidateSceneUnknownNodes that decides when to skip unknown-node validation based on whether the current workfile’s extension matches the project’s ext_mapping, aiming to improve readability and avoid false positives when plugins are disabled.

Changes:

  • Expanded _is_workfile_extension_align_with_extension_mapping docstring (added return description).
  • Tweaked handling of unsaved scenes to explicitly not block validation.
  • Refactored the “aligned vs not aligned” decision path for skipping unknown-node validation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/ayon_maya/plugins/publish/validate_unknown_nodes.py
Comment thread client/ayon_maya/plugins/publish/validate_unknown_nodes.py Outdated
moonyuet and others added 2 commits June 23, 2026 15:24
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants