Skip to content

Commit cc2e099

Browse files
committed
mark 'get_attributes_fields_for_type' as deprecated
1 parent f58ba84 commit cc2e099

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ayon_api/_api_helpers/attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,18 @@ def get_attributes_fields_for_type(
147147
) -> set[str]:
148148
"""Prepare attribute fields for entity type.
149149
150+
DEPRECATED: Field 'attrib' is marked as deprecated and should not be
151+
used for GraphQL queries.
152+
150153
Returns:
151154
set[str]: Attributes fields for entity type.
152155
153156
"""
157+
self.log.warning(
158+
"Method 'get_attributes_fields_for_type' is deprecated and should"
159+
" not be used for GraphQL queries. Use 'allAttrib' field instead"
160+
" of 'attrib'."
161+
)
154162
attributes = self.get_attributes_for_type(entity_type)
155163
return {
156164
f"attrib.{attr}"

0 commit comments

Comments
 (0)