Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparation for v0.19 #918

Merged
merged 23 commits into from
Jan 29, 2023
Merged

Preparation for v0.19 #918

merged 23 commits into from
Jan 29, 2023

Conversation

GearsAD
Copy link
Collaborator

@GearsAD GearsAD commented Dec 4, 2022

This is in preparation for the v0.19 release as we discussed @dehann @Affie.

  • Attic has been cleaned out
  • Neo4jDFG has been removed
  • Tests have been updated

Open question(s) (@Affie)

  • Is GraphsDFG different from LightDFG? Can we not merge those?

Regarding downstream the DFG driver we are planning on building out, I believe these functions will be difficult to implement:

  • getAddHistory
  • getBiadjacencyMatrix
  • getInternalId
  • findFactorsBetweenNaive
  • saveDFG, loadDFG!, loadDFG
  • toDot and toDotFile

I suggest we leave this open until we are ready to make v0.19 (no urgency), I just set it up while reviewing the code.

@codecov
Copy link

codecov bot commented Dec 4, 2022

Codecov Report

Merging #918 (7a0c32a) into master (685b5f9) will decrease coverage by 2.63%.
The diff coverage is 70.89%.

@@            Coverage Diff             @@
##           master     #918      +/-   ##
==========================================
- Coverage   76.06%   73.44%   -2.63%     
==========================================
  Files          38       27      -11     
  Lines        3134     2154     -980     
==========================================
- Hits         2384     1582     -802     
+ Misses        750      572     -178     
Impacted Files Coverage Δ
src/DFGPlots/DFGPlots.jl 66.66% <ø> (-16.67%) ⬇️
src/Deprecated.jl 28.57% <0.00%> (-0.85%) ⬇️
src/DistributedFactorGraphs.jl 100.00% <ø> (ø)
src/entities/AbstractDFG.jl 100.00% <ø> (ø)
src/services/AbstractDFG.jl 83.45% <33.33%> (-1.90%) ⬇️
src/services/Serialization.jl 65.86% <57.89%> (-6.10%) ⬇️
src/services/DFGFactor.jl 82.60% <66.66%> (-3.76%) ⬇️
src/services/DFGVariable.jl 71.10% <66.66%> (-1.38%) ⬇️
src/entities/DFGFactor.jl 88.00% <91.66%> (+1.79%) ⬆️
src/entities/DFGVariable.jl 88.23% <94.44%> (+4.02%) ⬆️
... and 13 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dehann
Copy link
Member

dehann commented Dec 5, 2022

getAddHistory
getBiadjacencyMatrix
getInternalId
findFactorsBetweenNaive
saveDFG, loadDFG!, loadDFG
toDot and toDotFile

All these functions should stay in the abstract interface, and if new drivers are not immediately able to implement them then that is just a limitation of that driver. Other DFG drivers like GraphDFG already implement them so nothing has to change there. Also functions that exist in AbstactDFG only made it there because they were used somewhere. We have very little fat in DFG so to speak.

@dehann
Copy link
Member

dehann commented Dec 5, 2022

to make v0.19 (no urgency), I just set it up while reviewing the code

thanks for prepping the PR!

@dehann
Copy link
Member

dehann commented Dec 5, 2022

Neo4jDFG has been removed

We should just put Neo4jDFG under a whole new repo and distribute with GPL license? See Stefan K's issue:

smallData = JSON2.read(packedProps["smallData"], Dict{Symbol, SmallDataTypes})

# Smalldata refactor to metadata
if (haskey(packedProps, "metadata"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to help, on master branch i added additional option in if packedProps is no longer a JSON string inside the top level JSONable object:

smallData = if haskey(packedProps, "smallData")
if packedProps["smallData"] isa String
JSON2.read(packedProps["smallData"], Dict{Symbol, SmallDataTypes})
elseif packedProps["smallData"] isa Dict
Dict{Symbol, SmallDataTypes}( Symbol.(keys(packedProps["smallData"])) .=> values(packedProps["smallData"]) )
# packedProps["smallData"]
else
@warn "unknown smallData deserialization on $label, type $(typeof(packedProps["smallData"]))" maxlog=10
Dict{Symbol, SmallDataTypes}()
end
else
Dict{Symbol, SmallDataTypes}()
end

Copy link
Member

@dehann dehann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@GearsAD GearsAD marked this pull request as ready for review January 27, 2023 01:36
@GearsAD GearsAD requested a review from Affie January 27, 2023 01:36
@GearsAD
Copy link
Collaborator Author

GearsAD commented Jan 27, 2023

This is the precursor to resolving #590

@GearsAD
Copy link
Collaborator Author

GearsAD commented Jan 27, 2023

-5,700 lines... yep 🧹 🔥

Copy link
Member

@dehann dehann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i had another fix or two to add, and looks good to me. Tests on IIF also pass.

@dehann dehann merged commit 4c00aae into master Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants