Skip to content

Conversation

@antirotor
Copy link
Member

@antirotor antirotor commented Mar 28, 2025

Changelog Description

This adds support for traits field for representation, supported by the server from ynput/ayon-backend#552, ynput/ayon-backend#466 and ynput/ayon-backend#431

Additional review information

For more information about traits see ynput/ayon-core#909

add traits as the default field for the representation
@antirotor antirotor added the type: enhancement New feature or request label Mar 28, 2025
@antirotor antirotor requested review from Copilot and iLLiCiTiT March 28, 2025 17:46
@antirotor antirotor self-assigned this Mar 28, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for a new "traits" field for representations.

  • Adds "traits" to the constant list in the API to support trait-based representation features.

@iLLiCiTiT
Copy link
Member

iLLiCiTiT commented Mar 31, 2025

I think this should be server version restricted default, handled in get_default_fields_for_type. Using field that is not available in graphql schema will cause crash of the query.

@antirotor
Copy link
Member Author

I am closing it in favor of #225 as it is implementing @iLLiCiTiT suggestion and more.

@antirotor antirotor closed this Apr 7, 2025
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