arcadedb
arcadedb copied to clipboard
ArcadeDb Studio - loading adjacent edges for more than one vertex, doesn't graphically connect the adjacent vertices
ArcadeDB Version: 22.1.3
JDK Version: Corretto 11
OS: Windows 10
Expected behavior
Adjacent vertices should be graphically connected, identical to existing behaviour with the first usage.
Actual behavior
First vertex expanded rendered correctly, adjacent vertices for subsequent ones are rendered without a connecting edge.
Steps to reproduce
Load code
for (i in 0..250000) {
val tester = database.newVertex("Tester")
tester.set("id", i.toString())
database.async().createRecord(tester) {}
val software = database.newVertex("Software")
software.set("id", i.toString())
database.async().createRecord(software) {}
val client = database.newVertex("Client")
client.set("id", i.toString())
database.async().createRecord(client) {}
}
database.async().waitCompletion()
for (i in 0..250000) {
database.async().newEdgeByKeys(
"Tester",
arrayOf("id"),
arrayOf(i),
"Software",
arrayOf("id"),
arrayOf(i),
false,
"testerOf",
true,
true,
null
)
database.async().newEdgeByKeys(
"Software",
arrayOf("id"),
arrayOf(i),
"Client",
arrayOf("id"),
arrayOf(i),
false,
"belongsTo",
true,
true,
null
)
}
database.async().waitCompletion()
print("done")
GUI Steps:
- Select all Software vertices
- Click any Software vertex
- Click both under Actions -> Load adjacent outgoing, ingoing or both
- Click any Software vertex
- Click both under Actions -> Load adjacent outgoing, ingoing or both
This should be already fixed by the recent changes from the past week. Please @Jurgen-Aquilina let me know if you can check this with the latest snapshot. Thanks.
@lvca is the snapshot accessible through maven or do I need to add the JAR manually? If it is accessible through maven, can you link the repository please, as I cannot find it?
You should be able to find all the snapshots from this repository (put in your pom.xml before the tag
<repositories>
<repository>
<id>github</id>
<name>GitHub ArcadeData Apache Maven Packages</name>
<url>https://maven.pkg.github.com/ArcadeData</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
Errata
Snapshots are published on Sonatype OSS Maven repo:
https://s01.oss.sonatype.org/content/repositories/snapshots/
<repositories>
<repository>
<id>github</id>
<name>Sonatype OSS<name>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>falseenabled>
</releases>
</repository>
</repositories>
@lvca I tested this again on 22.1.3-SNAPSHOT and the problem is still present
Added the snapshot repository in the ArcadeDB website under the "Getting Started with Java" section.
Tried with the Movie database and the load on request works. Check this video attached.
https://user-images.githubusercontent.com/312606/154758666-7918167d-dcc0-4d9e-a40e-bbf751291072.mov
@lvca I tested with the OpenBeer database and it works with that one, but not with my attempts. Seems like the issue is isolated to lightweight edges, as using regular edges removed the issue. This applies to issues #312 and #311 as well.
@Jurgen-Aquilina I found the cause, thanks for the report. I'll work on this soon.
Is this issue still relevant after I closed https://github.com/ArcadeData/arcadedb/issues/312 and https://github.com/ArcadeData/arcadedb/issues/311?
No response for a while, closing the issue. In case this issue is still relevant, please comment below to reopen it.