Update column names and add new fields for better data representation in CSV ingest and creator plugins.

This commit is contained in:
Jakub Jezek 2024-03-05 16:16:52 +01:00
parent 766b9ce582
commit 09effd30fb
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 35 additions and 36 deletions

View file

@ -545,9 +545,9 @@ configuration in project settings.
# Get optional columns
thumbnail_path = self._get_row_value_with_validation(
"Thumbnail", row_data)
"Version Thumbnail", row_data)
colorspace = self._get_row_value_with_validation(
"Colorspace", row_data)
"Representation Colorspace", row_data)
comment = self._get_row_value_with_validation(
"Version Comment", row_data)
repre = self._get_row_value_with_validation(
@ -583,7 +583,6 @@ configuration in project settings.
"handleEnd": int(handle_end),
"fps": float(fps),
}
return file_path, representation_data
def _get_row_value_with_validation(

View file

@ -198,6 +198,20 @@ DEFAULT_CREATORS = {
"required_column": True,
"validation_pattern": "^(.*)$"
},
{
"name": "Product Type",
"type": "text",
"default": "",
"required_column": False,
"validation_pattern": "^(.*)$"
},
{
"name": "Variant",
"type": "text",
"default": "",
"required_column": False,
"validation_pattern": "^(.*)$"
},
{
"name": "Version",
"type": "number",
@ -205,6 +219,20 @@ DEFAULT_CREATORS = {
"required_column": True,
"validation_pattern": "^(\\d{1,3})$"
},
{
"name": "Version Comment",
"type": "text",
"default": "",
"required_column": False,
"validation_pattern": "^(.*)$"
},
{
"name": "Version Thumbnail",
"type": "text",
"default": "",
"required_column": False,
"validation_pattern": "^([a-zA-Z0-9#._\\/]*)$"
},
{
"name": "Frame Start",
"type": "number",
@ -241,25 +269,11 @@ DEFAULT_CREATORS = {
"validation_pattern": "^[0-9]*\\.[0-9]+$|^[0-9]+$"
},
{
"name": "Thumbnail",
"type": "text",
"default": "",
"name": "Slate Exists",
"type": "bool",
"default": True,
"required_column": False,
"validation_pattern": "^([a-z0-9#._\\/]*)$"
},
{
"name": "Colorspace",
"type": "text",
"default": "",
"required_column": False,
"validation_pattern": "^(.*)$"
},
{
"name": "Version Comment",
"type": "text",
"default": "",
"required_column": False,
"validation_pattern": "^(.*)$"
"validation_pattern": "(True|False)"
},
{
"name": "Representation",
@ -269,26 +283,12 @@ DEFAULT_CREATORS = {
"validation_pattern": "^(.*)$"
},
{
"name": "Product Type",
"name": "Representation Colorspace",
"type": "text",
"default": "",
"required_column": False,
"validation_pattern": "^(.*)$"
},
{
"name": "Variant",
"type": "text",
"default": "",
"required_column": False,
"validation_pattern": "^(.*)$"
},
{
"name": "Slate Exists",
"type": "bool",
"default": True,
"required_column": False,
"validation_pattern": "(True|False)"
},
{
"name": "Representation Tags",
"type": "text",