Skip to content

Chore: Applications action helpers#139

Open
iLLiCiTiT wants to merge 20 commits into
developfrom
enhancement/applications-helpers
Open

Chore: Applications action helpers#139
iLLiCiTiT wants to merge 20 commits into
developfrom
enhancement/applications-helpers

Conversation

@iLLiCiTiT

@iLLiCiTiT iLLiCiTiT commented Apr 13, 2026

Copy link
Copy Markdown
Member

Changelog Description

Added helper functions to get list of available application actions for a given context.

Additional review information

These functions can be used to receive possible actions with all necessary information for a certain context. This will be used in ftrack addon. Also affects existing function get_applications_for_context which returns list of available application names.

The new api functions can be used by other plugins. The implementation does handle project bundles on it's own and auto-resolves the settings for addons that don't have the api methods implemented yet.

Testing notes:

  1. Can be tested with project bundles where different actions can be defined from studio settings.
  2. Use the functions to get available applications for the project.

@iLLiCiTiT iLLiCiTiT requested a review from BigRoy April 13, 2026 13:29
@iLLiCiTiT iLLiCiTiT self-assigned this Apr 13, 2026
@iLLiCiTiT iLLiCiTiT added the type: enhancement Improvement of existing functionality or minor addition label Apr 13, 2026
@BigRoy

BigRoy commented May 15, 2026

Copy link
Copy Markdown
Member

This should help to...

Unfinished PR description? :)

@iLLiCiTiT

Copy link
Copy Markdown
Member Author

It was fast made PR for ftrack actions, can be done better with #151 .

@iLLiCiTiT iLLiCiTiT marked this pull request as draft May 18, 2026 14:44
@iLLiCiTiT iLLiCiTiT force-pushed the enhancement/applications-helpers branch from be288a6 to 77ae69b Compare May 19, 2026 14:40
@iLLiCiTiT iLLiCiTiT marked this pull request as ready for review May 19, 2026 15:09
@moonyuet

Copy link
Copy Markdown
Member

Dumb question: is it still relevant when #151 is merged?

@iLLiCiTiT

Copy link
Copy Markdown
Member Author

Dumb question: is it still relevant when #151 is merged?

Yes, this is extending it, that PR just added the method for one version of applications addon, but you still have to figure out which version should be used. There also are not api methods client side to get the information, which is what is needed for ftrack actions.

@moonyuet

moonyuet commented Jun 25, 2026

Copy link
Copy Markdown
Member

I tested with the application items, Not sure if I did something wrong with the version.
I tested with both hardcoded and app_addon.version

from ayon_core.addon import AddonsManager
import ayon_api
project_name = "interior_lenny"
task_id = "24f63360fd9311f0898f6d773e156f35"
addons_manager = AddonsManager()
app_addon = addons_manager.get("applications")
app_item = app_addon.get_application_items(project_name)
print(app_item)
app_item = app_addon.get_application_items(project_name, task_id=task_id)
print(app_item)
app_item = app_addon.get_application_items(project_name, variant="production")
print(app_item)
app_item = app_addon.get_application_items(project_name, variant="staging")
print(app_item)
app_item = app_addon.get_application_items(project_name, version="1.3.3+dev")
print(app_item)
image

I hardcorded with the addon.version(we can get it through app_addon.version, no?). But it doesn't query empty list of addon.

@iLLiCiTiT

Copy link
Copy Markdown
Member Author

I tested with the application items, Not sure if I did something wrong with the version.

Don't know if you have 1.3.3+dev version on server?

@moonyuet

Copy link
Copy Markdown
Member

I tested with the application items, Not sure if I did something wrong with the version.

Don't know if you have 1.3.3+dev version on server?

Yes I have. But not the latest version.
Even I tried with the latest version. It's still returning empty list.
image

@iLLiCiTiT

Copy link
Copy Markdown
Member Author

Even I tried with the latest version. It's still returning empty list.

Will take a look.

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