ShiftLeftSecurity / overflowdb

ShiftLeft OverflowDB
Apache License 2.0
112 stars 21 forks source link

edge property hack: prereq for flatgraph -> odb converter #439

Closed mpollmeier closed 3 months ago

mpollmeier commented 3 months ago

In order to prepare for a potential rollback to overflowdb in the future, we're creating a flatgraph->overflowdb converter. Since flatgraph supports exactly one edge property only, there are no edge property names. So when we deserialise and find exactly one edge property with the name EDGE_PROPERTY, and the schema defines exactly one edge property, then we assume that's the one. Let's be clear: this is a dirty hack, but since we're phasing out overflowdb in favor of flatgraph, it's arguably ok.

mpollmeier commented 3 months ago

Looks good!