Skip to content

Commit 8e19b81

Browse files
committed
Merge branch 'master' into maint/20Q3/datablob_concepts
2 parents ced68a5 + ce22180 commit 8e19b81

16 files changed

+828
-584
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ branches:
2121
only:
2222
- master
2323
- develop
24-
- /^release-.*$/
24+
- /^release.*$/
2525

2626
jobs:
2727
include:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1919
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
2020
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2121
TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"
22-
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
2322
Unmarshal = "cbff2730-442d-58d7-89d1-8e530c41eb02"
23+
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
2424

2525
[compat]
2626
Colors = "0.8, 0.9, 0.10, 0.11, 0.12"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Release v0.8 | Release v0.9 | Dev | Coverage | DFG Docs | Caesar Docs |
44
---------|---------|-----|----------|------|------------
5-
[![Build Status](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=release/v0.8)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Build Status](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=release/v0.9)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Build Status](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=master)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Codecov Status](https://codecov.io/gh/JuliaRobotics/DistributedFactorGraphs.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaRobotics/DistributedFactorGraphs.jl) | [![docs](https://img.shields.io/badge/docs-latest-blue.svg)](http://juliarobotics.github.io/DistributedFactorGraphs.jl/latest/) | [![docs](https://img.shields.io/badge/docs-latest-blue.svg)](http://juliarobotics.github.io/Caesar.jl/latest/)
5+
[![Build Status](https://api.travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=release/v0.8)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Build Status](https://api.travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=release/v0.9)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Build Status](https://api.travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=master)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Codecov Status](https://codecov.io/gh/JuliaRobotics/DistributedFactorGraphs.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaRobotics/DistributedFactorGraphs.jl) | [![docs](https://img.shields.io/badge/docs-latest-blue.svg)](http://juliarobotics.github.io/DistributedFactorGraphs.jl/latest/) | [![docs](https://img.shields.io/badge/docs-latest-blue.svg)](http://juliarobotics.github.io/Caesar.jl/latest/)
66

77
DistributedFactorGraphs.jl provides a flexible factor graph API for use in the [Caesar.jl](https://github.com/JuliaRobotics/Caesar.jl) ecosystem. The package supplies:
88
* A standardized API for interacting with factor graphs

src/CloudGraphsDFG/CloudGraphsDFG.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import ...DistributedFactorGraphs: setSolverParams!,
2020
exists,
2121
isVariable,
2222
isFactor,
23+
getSofttype,
2324
getDescription,
2425
updateVariable!,
2526
updateFactor!,
@@ -59,6 +60,7 @@ import ...DistributedFactorGraphs: setSolverParams!,
5960
mergeTags!,
6061
removeTags!,
6162
emptyTags!,
63+
listVariableSolverData,
6264
addVariableSolverData!,
6365
updateVariableSolverData!,
6466
deleteVariableSolverData!,
@@ -69,17 +71,19 @@ import ...DistributedFactorGraphs: setSolverParams!,
6971
listPPEs,
7072
deletePPE!,
7173
updatePPE!,
72-
packPPE,
73-
unpackPPE,
7474
getSolvable,
75-
setSolvable!
75+
setSolvable!,
76+
getEstimateFields,
77+
_getname,
78+
_getmodule,
79+
getTypeFromSerializationModule
7680

7781
using Neo4j
7882
using Base64
7983

8084
using DocStringExtensions
8185
using Requires
82-
using Dates
86+
using Dates, TimeZones
8387
using Distributions
8488
using Reexport
8589
using JSON

src/CloudGraphsDFG/services/CGStructure.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function createUser(dfg::CloudGraphsDFG, user::User)::User
5858
!isValidLabel(user) && error("Node cannot have an ID '$(user.id)'.")
5959

6060
props = _convertNodeToDict(user)
61+
# TODO: Switch to _queryNeo4j
6162
retNode = _createNode(dfg.neo4jInstance, ["USER", String(user.id)], props, nothing)
6263
return user
6364
end
@@ -77,6 +78,7 @@ function createRobot(dfg::CloudGraphsDFG, robot::Robot)::Robot
7778
error("Robot '$(robot.id)' already exists for user '$(robot.userId)'")
7879

7980
props = _convertNodeToDict(robot)
81+
# TODO: Switch to _queryNeo4j
8082
retNode = _createNode(dfg.neo4jInstance, ["ROBOT", String(robot.userId), String(robot.id)], props, parents[1], :ROBOT)
8183
return robot
8284
end
@@ -96,6 +98,7 @@ function createSession(dfg::CloudGraphsDFG, session::Session)::Session
9698
error("Session '$(session.id)' already exists for robot '$(session.robotId)' and user '$(session.userId)'")
9799

98100
props = _convertNodeToDict(session)
101+
# TODO: Switch to _queryNeo4j
99102
retNode = _createNode(dfg.neo4jInstance, ["SESSION", String(session.userId), String(session.robotId), String(session.id)], props, parents[1], :SESSION)
100103
return session
101104
end
@@ -227,7 +230,7 @@ DANGER: Clears the whole session from the database.
227230
"""
228231
function clearSession!!(dfg::CloudGraphsDFG)::Nothing
229232
# Perform detach+deletion
230-
_getNeoNodesFromCyphonQuery(dfg.neo4jInstance, "(node:$(dfg.userId):$(dfg.robotId):$(dfg.sessionId)) detach delete node ")
233+
_queryNeo4j(dfg.neo4jInstance, "match (node:$(dfg.userId):$(dfg.robotId):$(dfg.sessionId)) detach delete node ")
231234

232235
# Clearing history
233236
dfg.addHistory = Symbol[]
@@ -240,7 +243,7 @@ DANGER: Clears the whole robot + sessions from the database.
240243
"""
241244
function clearRobot!!(dfg::CloudGraphsDFG)::Nothing
242245
# Perform detach+deletion
243-
_getNeoNodesFromCyphonQuery(dfg.neo4jInstance, "(node:$(dfg.userId):$(dfg.robotId)) detach delete node ")
246+
_queryNeo4j(dfg.neo4jInstance, "match (node:$(dfg.userId):$(dfg.robotId)) detach delete node ")
244247

245248
# Clearing history
246249
dfg.addHistory = Symbol[]
@@ -253,7 +256,7 @@ DANGER: Clears the whole user + robot + sessions from the database.
253256
"""
254257
function clearUser!!(dfg::CloudGraphsDFG)::Nothing
255258
# Perform detach+deletion
256-
_getNeoNodesFromCyphonQuery(dfg.neo4jInstance, "(node:$(dfg.userId)) detach delete node ")
259+
_queryNeo4j(dfg.neo4jInstance, "match (node:$(dfg.userId)) detach delete node ")
257260

258261
# Clearing history
259262
dfg.addHistory = Symbol[]

0 commit comments

Comments
 (0)