Skip to content
Open

REDO #12

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/views/graphView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ export class GraphView {
WHERE n:Repository OR n:File OR n:Contributor OR n:Dependency
RETURN id(n) as id, labels(n)[0] as label,
coalesce(n.name, n.fullName, n.path, n.email) as name
LIMIT 200
LIMIT 100
`);
const edges = await this.neo4j.executeQuery(`
MATCH (a)-[r]->(b)
WHERE (a:Repository OR a:File OR a:Contributor OR a:Dependency)
AND (b:Repository OR b:File OR b:Contributor OR b:Dependency)
RETURN id(a) as src, id(b) as tgt, type(r) as rel
LIMIT 500
LIMIT 400
`);
this.panel?.webview.postMessage({
command: 'graphData',
Expand Down Expand Up @@ -69,7 +69,7 @@ export class GraphView {
MATCH (r:Repository {fullName: $repo})-[rel]-(n)
RETURN id(n) as id, labels(n)[0] as label,
coalesce(n.name, n.fullName, n.path, n.email) as name
LIMIT 150
LIMIT 100
`, { repo: msg.repo });
const repoNode = await this.neo4j.executeQuery(`
MATCH (r:Repository {fullName: $repo})
Expand Down