Skip to content

Workfiles: Add create workfile method - #279

Merged
iLLiCiTiT merged 7 commits into
developfrom
enhancement/add-create-workfile-method
Oct 13, 2025
Merged

Workfiles: Add create workfile method#279
iLLiCiTiT merged 7 commits into
developfrom
enhancement/add-create-workfile-method

Conversation

@iLLiCiTiT

Copy link
Copy Markdown
Member

Changelog Description

Added method to create workfile info.

Testing notes:

  1. Create workfile entity using the new method.

@iLLiCiTiT iLLiCiTiT added the type: enhancement New feature or request label Oct 8, 2025
@iLLiCiTiT iLLiCiTiT self-assigned this Oct 8, 2025
@kalisp

kalisp commented Oct 9, 2025

Copy link
Copy Markdown
Member

Could you please elaborate:

  • What for is workfile info?
  • Where I would use it?
  • Is this replacing current implementation of saving workfile details into DB (not actually sure what method does it currently.)?

@iLLiCiTiT

Copy link
Copy Markdown
Member Author

What for is workfile info?

Workfile entity.

Is this replacing current implementation of saving workfile details into DB (not actually sure what method does it currently.)?

Yes. We use operations without pre-implemented methods.

Where I would use it?

In the workfiles api for example 🙂

@kalisp

kalisp commented Oct 10, 2025

Copy link
Copy Markdown
Member

It fails with:
image

@iLLiCiTiT

Copy link
Copy Markdown
Member Author

It fails with:

How did you call it? It should be used through ServerAPI.

@kalisp

kalisp commented Oct 10, 2025

Copy link
Copy Markdown
Member

I called it workfile = WorkfilesAPI().create_workfile_info("ayon_dev", r"c:...., couldn't find it anywhere else exposed.

@iLLiCiTiT

iLLiCiTiT commented Oct 10, 2025

Copy link
Copy Markdown
Member Author

I called it workfile = WorkfilesAPI().create_workfile_info("ayon_dev", r"c:...., couldn't find it anywhere else exposed.

There is a reason why it lives in private folder _api_helpers. Use ayon_api.create_workfile_entity(...) (I've renamed it to entity).

@iLLiCiTiT
iLLiCiTiT merged commit fbcdd6f into develop Oct 13, 2025
2 checks passed
@iLLiCiTiT
iLLiCiTiT deleted the enhancement/add-create-workfile-method branch October 13, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants