Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

General: Move context specific functions to context tools #3702

Conversation

iLLiCiTiT
Copy link
Member

Brief description

Functions related to change of current context were moved to context tools.

Description

Moved compute_session_changes and update_current_task into openpype.pipeline.context_tools. Function update_current_task was also renamed to change_current_context. Both functions don't expect host name as argument and expect only asset document instead of asset name.

Marked functions in avalon_context as deprecated and updated few deprecated categories in the file (changed removement version caused by quick release of 3.14).

Testing notes:

  1. Context change should work as expected (context can be changed using workfiles tool)

@ynbot
Copy link
Contributor

ynbot commented Aug 22, 2022

@iLLiCiTiT iLLiCiTiT added the type: refactor Structural changes not affecting functionality label Aug 22, 2022
@iLLiCiTiT iLLiCiTiT self-assigned this Aug 22, 2022
Copy link
Member

@jakubjezek001 jakubjezek001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Nuke host with change of context in workfile and works

@iLLiCiTiT iLLiCiTiT merged commit e2c9543 into develop Aug 23, 2022
@iLLiCiTiT iLLiCiTiT deleted the feature/OP-3475_Move-context-specific-functions-to-context-tools branch August 23, 2022 16:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: refactor Structural changes not affecting functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants