Skip to content

Commit a3dc7fd

Browse files
authored
fix metadata type
1 parent 16443bb commit a3dc7fd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/DataBlobs/entities/AbstractDataEntries.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export BlobStoreEntry
2020
$(TYPEDEF)
2121
General Data Store Entry.
2222
"""
23-
@Base.kwdef struct BlobStoreEntry <: AbstractDataEntry
23+
@Base.kwdef struct BlobEntry <: AbstractDataEntry
2424
""" This is created by server-side GraphQL """
2525
id::Union{UUID, Nothing}=nothing
2626
""" This is the S3 blob ID, or the filesystem blob ID. """
@@ -33,12 +33,15 @@ General Data Store Entry.
3333
origin::String # E.g. user|robot|session|varlabel
3434
description::String
3535
mimeType::String
36-
metadata::String = ""
36+
metadata::Dict{Symbol, SmallDataTypes} = Dict{Symbol,SmallDataTypes}()
3737
timestamp::ZonedDateTime = now(localzone())
38-
_type::String = "BlobStoreEntry"
38+
_type::String = "BlobEntry"
3939
_version::String = string(_getDFGVersion()) # TBD consider upgrading to ::VersionNumber
4040
end
4141

42+
# should be deprecated by v0.21
43+
const BlobStoreEntry = BlobEntry
44+
4245
_fixtimezone(cts::NamedTuple) = ZonedDateTime(cts.utc_datetime*"+00")
4346

4447
# # needed for deserialization from JSON during DFG v0.19 transition, see #867

0 commit comments

Comments
 (0)