Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Fix delivery action in tray loader #384

Merged
merged 7 commits into from
Apr 9, 2024

Conversation

BigRoy
Copy link
Collaborator

@BigRoy BigRoy commented Apr 9, 2024

Changelog Description

Fix delivery action after recent refactoring of ayon core.

Additional info

Fixes #351

Since directory and file is now separate in the delivery templates I've also made them two labels in the delivery UI for better clarity as to what is what.

image

Testing notes:

  1. Set up a delivery template in Anatomy settings ayon+anatomy://PROJECTNAME/templates/delivery, for example like these examples:
[
  {
    "name": "client",
    "directory": "{root[work]}/{folder[name]}/{product[name]}",
    "file": "{folder[name]}_{product[name]}_{@version}<_{output}><.{@frame}>.{ext}"
  },
  {
    "name": "previews",
    "directory": "{root[work]}",
    "file": "{folder[name]}_{product[name]}_{@version}<_{output}><.{@frame}>.{ext}"
  },
  {
    "name": "per_asset",
    "directory": "{root[work]}/{folder[name]}",
    "file": "{folder[name]}_{product[name]}_{@version}<_{output}><.{@frame}>.{ext}"
  },
  {
    "name": "main",
    "directory": "{root[work]}/{project[name]}/delivery/{yyyy}-{mm}-{dd}/{hierarchy}/{folder[name]}/",
    "file": "{project[code]}_{folder[name]}_{task[short]}_{@version}<_{output}><.{@frame}>.{ext}"
  }
]
  1. In Tray Launcher open the Loader
  2. Using the Delivery action in the tray loader initiate a delivery to an output root.

@ynbot ynbot added size/XS type: enhancement Improvement of existing functionality or minor addition labels Apr 9, 2024
@BigRoy BigRoy requested a review from iLLiCiTiT April 9, 2024 12:59
@iLLiCiTiT iLLiCiTiT merged commit c650e41 into ynput:develop Apr 9, 2024
1 check failed
@LiborBatek
Copy link
Member

Meanwhile been successfully tested :)

Delivery templates created:

Screenshot 2024-04-09 153131

and in the Loader

Screenshot 2024-04-09 153617

Been tested with those 3 templates, all working well!

@BigRoy BigRoy deleted the enhancement/fix_delivery_action branch April 9, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delivery not working in 0.3.0-dev.1
4 participants