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

replace task_entity.get("type") with task_entity.get("taskType") #1029

Closed
2 tasks done
tanh609 opened this issue Nov 29, 2024 · 0 comments · Fixed by #1042
Closed
2 tasks done

replace task_entity.get("type") with task_entity.get("taskType") #1029

tanh609 opened this issue Nov 29, 2024 · 0 comments · Fixed by #1042
Assignees
Labels
type: bug Something isn't working

Comments

@tanh609
Copy link

tanh609 commented Nov 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

Hullo,

The "type" key no longer exists in the dictionary returned by ayon_api.get_task_by_name. It was replaced with "taskType".

This lead to a bug in get_workfile_template_key_from_context.

https://github.com/ynput/ayon-core/blob/7ccf04ed586b69200d3fba744ef6ab470d86577d/client/ayon_core/pipeline/workfile/path_resolving.py#L45C5-L45C40

Expected Behavior:

No response

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

from ayon_core.pipeline.workfile import path_resolving
import ayon_api

project_name = "PROJECT NAME"
folder_path = "FOLDER PATH"
task_name = "TASK NAME"
host_name = "HOST NAME"

key = path_resolving.get_workfile_template_key_from_context(project_name, folder_path, task_name, host_name)

print(key)

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

Additional context:

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants