Skip to content

YN-0342: Pushed representations with wrong context #1628

@ynbot

Description

@ynbot

Please describe the issue you have encountered?

Representations pushed to the project have wrong context filled. This takes effect only when more than one representation is pushed. Those representations will have context of the first one processed, resulting in wrong representation names, extensions, etc.

The issue is here 

if not repre_context:
repre_context = self._update_repre_context(
copy.deepcopy(repre_entity),
formatting_data
)

We need to create the context for every item.

Once fixed, we need to provide migration script for already pushed representations.

How to replicate the issue?

No response

Additional context:

link to discussion on Discord
(might be a private channel)

_This issue was automatically created from AYON ticket YN-0342

Metadata

Metadata

Assignees

Labels

sponsoredThis is directly sponsored by a client or community member

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions