feat(artifacts): new artifact storage engines allowing an s3 based uploads
This commit is contained in:
parent
fead9d9aed
commit
90a1d3ca75
39 changed files with 1897 additions and 453 deletions
|
|
@ -5849,8 +5849,7 @@ class FileStore(Base, BaseModel):
|
|||
.filter(FileStoreMetadata.file_store_meta_key == key) \
|
||||
.scalar()
|
||||
if has_key:
|
||||
msg = 'key `{}` already defined under section `{}` for this file.'\
|
||||
.format(key, section)
|
||||
msg = f'key `{key}` already defined under section `{section}` for this file.'
|
||||
raise ArtifactMetadataDuplicate(msg, err_section=section, err_key=key)
|
||||
|
||||
# NOTE(marcink): raises ArtifactMetadataBadValueType
|
||||
|
|
@ -5949,7 +5948,7 @@ class FileStoreMetadata(Base, BaseModel):
|
|||
def valid_value_type(cls, value):
|
||||
if value.split('.')[0] not in cls.SETTINGS_TYPES:
|
||||
raise ArtifactMetadataBadValueType(
|
||||
'value_type must be one of %s got %s' % (cls.SETTINGS_TYPES.keys(), value))
|
||||
f'value_type must be one of {cls.SETTINGS_TYPES.keys()} got {value}')
|
||||
|
||||
@hybrid_property
|
||||
def file_store_meta_section(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue