-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
sponsoredThis is directly sponsored by a client or community memberThis is directly sponsored by a client or community member
Description
Please describe the issue you have encountered?
When setting an enum option value as a number in list of strings, updating the attribute with operations endpoint fails.
{
"operations": [
{
"rowId": "ba53ca20af6020f0bfbbe90606f1a6b2",
"entityType": "folder",
"entityId": "ba53ca20af6011f0bf20e90606f1a6b2",
"type": "update",
"data": {
"attrib": {
"customAttrib": [
"1",
"3",
"4"
]
},
"ownAttrib": [
"customAttrib"
]
}
}
]
}
{
"status": 500,
"detail": "IndexError: Replacement index 4 out of range for positional args tuple",
"traceback": "IndexError: Replacement index 4 out of range for positional args tuple\n\napi/operations/operations.py:84\nreturn await ops.process(\n\nayon_server/operations/project_level/__init__.py:537\nreturn await self._process(\n\nayon_server/operations/project_level/__init__.py:455\nevents, response = await _process_operations(\n\nayon_server/operations/project_level/__init__.py:204\nlogger.debug("
}
"enum": [
{
"value": "0",
"label": "0 - Zero",
"description": null,
"fulltext": [
"0",
"zero"
],
"group": null,
"icon": null,
"color": null
},
]
How to replicate the issue?
No response
Additional context:
This issue was automatically created from AYON ticket YN-0160
Metadata
Metadata
Assignees
Labels
sponsoredThis is directly sponsored by a client or community memberThis is directly sponsored by a client or community member