Skip to content

Commit 09f1818

Browse files
committed
Fix missing incoming dependencies using resolved modules
1 parent dc2d482 commit 09f1818

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cypher/Metrics/Set_Incoming_Typescript_Module_Dependencies.cypher

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Set incoming Typscript Module dependencies
22

3-
// Get the top level dependency between a Typescript module and an external modules it uses
3+
// Get the top level dependency between a Typescript module and other modules that uses it
44
MATCH (source:TS:Module)
5-
OPTIONAL MATCH (source)<-[:RESOLVES_TO]-(sourceExternal:ExternalModule)<-[moduleDependency:DEPENDS_ON]-(target:TS:Module)
5+
OPTIONAL MATCH (source)<-[moduleDependency:DEPENDS_ON]-(target:TS:Module)
66
WHERE source <> target
77
// Get the project of the external module if available
88
OPTIONAL MATCH (projectdir:Directory)<-[:HAS_ROOT]-(project:TS:Project)-[:CONTAINS]->(target)
@@ -21,9 +21,6 @@ OPTIONAL MATCH (projectdir:Directory)<-[:HAS_ROOT]-(project:TS:Project)-[:CONTAI
2121
,source.incomingDependentAbstractTypeWeight = abstractTypeCardinality
2222
,source.incomingDependentModules = externalModuleCount
2323
,source.incomingDependentPackages = size(projectNames)
24-
// Incoming dependencies properties can't easily be set on sourceExternal nodes
25-
// since there might be more than one per source. If this is needed in future
26-
// assure that there is no regression for the source nodes.
2724
RETURN source.globalFqn AS fullQualifiedModuleName
2825
,source.name AS moduleName
2926
,declarationCount AS incomingDependencies

0 commit comments

Comments
 (0)