Skip to content

Conversation

@iLLiCiTiT
Copy link
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
Copy link
Member

kalisp commented Oct 9, 2025

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
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
Copy link
Member

kalisp commented Oct 10, 2025

It fails with:
image

@iLLiCiTiT
Copy link
Member Author

It fails with:

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

@kalisp
Copy link
Member

kalisp commented Oct 10, 2025

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

@iLLiCiTiT
Copy link
Member Author

iLLiCiTiT commented Oct 10, 2025

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.

3 participants