Skip to content

Commit

Permalink
Merge pull request #983 from JuliaRobotics/23Q1/fix/blob_data
Browse files Browse the repository at this point in the history
Sorting out blob and data naming
  • Loading branch information
dehann authored Mar 10, 2023
2 parents 971b70f + 9770e1b commit 3e2eca0
Show file tree
Hide file tree
Showing 15 changed files with 605 additions and 579 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- '1.8'
- '~1.9.0-0'
- 'nightly'
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Listing news on any major breaking changes in DFG. For regular changes, see integrated Github.com project milestones for DFG.

# v0.20

- Close long running serialization redo (#590) using only JSON3.jl and StructTypes.jl going forward.
- Standardize BlobEntry=>Blob naming of functions, and keeping convenience wrappers `{get,add,update,delete}Data[!]`.
- Consolidate to only one `BlobEntry` definition, dropping use of `AbstractBlobEntry`.
- Include type field `VariableNodeData.covar`.
- Drop minimum Julia compat to 1.8.

# v0.19

- Add ids and metadata to data types.
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Requires = "1"
StructTypes = "1"
TensorCast = "0.3.3, 0.4"
TimeZones = "1.3.1"
julia = "1.6"
julia = "1.8"

[extras]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
2 changes: 1 addition & 1 deletion attic/DataBlobs/FileDataEntryBlob.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ end
function addData!(::Type{BlobEntry}, dfg::AbstractDFG, label::Symbol, key::Symbol, folder::String, blob::Vector{UInt8}, timestamp=now(localzone());
id::UUID = uuid4(), hashfunction = sha256)
fde = BlobEntry(key, id, folder, bytes2hex(hashfunction(blob)), timestamp)
de = addDataEntry!(dfg, label, fde)
de = addBlobEntry!(dfg, label, fde)
db = addBlob!(dfg, fde, blob)
return de=>db
end
6 changes: 4 additions & 2 deletions src/DataBlobs/DataBlobs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ using SHA
include("entities/BlobEntry.jl")
include("entities/BlobStores.jl")

include("services/AbstractBlobEntries.jl")
include("services/BlobEntry.jl")
include("services/BlobStores.jl")
include("services/Blob.jl")
include("services/HelpersDataWrapEntryBlob.jl")

# include("services/InMemoryStore.jl")

Expand All @@ -22,3 +21,6 @@ export BlobEntry
# export copyStore

export getId, getHash, getTimestamp

# convenience wrappers
export getData, addData!, updateData!, deleteData!
Loading

0 comments on commit 3e2eca0

Please sign in to comment.