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

General: Smaller fixes and typos #2950

Merged
merged 9 commits into from
Mar 31, 2022
Merged

Conversation

iLLiCiTiT
Copy link
Member

Brief description

Fix of few smaller issues.

Description

Fixed import of attribute definitions in tray publisher plugin. Fixed typo of attribute _first_show. Log information about not find icon and also log that passed icon name is not exact match of used icon name (prefix from qtawesome was added). Changed Name: label to Variant: in creator dialog window.

Testing notes:

  • Tray publisher should show workfiles creator
  • log viewer should not crash
  • icons should be visible in tools
  • creator dialog in new publisher should show Variant: instead of Name:

@iLLiCiTiT iLLiCiTiT self-assigned this Mar 24, 2022
@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label Mar 24, 2022
openpype/tools/utils/lib.py Outdated Show resolved Hide resolved
Comment on lines 6 to 12
class ValidateWorkfilePath(pyblish.api.InstancePlugin):
"""Validate existence of workfile instance existence."""

label = "Collect Workfile"
label = "Validate Workfile"
order = pyblish.api.ValidatorOrder - 0.49
families = ["workfile"]
hosts = ["traypublisher"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Noting this here even though it's somewhat unrelated to this PR.

This particular plug-in checks sourceFilepath in data. A quick query over the code base shows that ONLY this validator and collector use that particular instance.data. It doesn't appear to be used for any output, etc.

Could we somehow make to this more generic so that there's no need for this additional data key for this single use case but we could do e.g. a validator over all instance.data[representation] and its files? (even though most representations get added during Extractors after Validator).

Validating our input content exists seems like something we (need to do or are doing) elsewhere too so I imagine we might want to unify where possible?

Copy link
Member Author

Choose a reason for hiding this comment

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

The whole logic of traypublisher will be more generic, but not in this PR.

@iLLiCiTiT iLLiCiTiT merged commit 8146aab into develop Mar 31, 2022
@iLLiCiTiT iLLiCiTiT deleted the bugfix/small_general_fixes branch March 31, 2022 09:20
@mkolar mkolar added this to the next milestone Apr 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants