Skip to content

Commit a06c4bb

Browse files
committed
Fix misleading project scoped percentage
1 parent cd2e043 commit a06c4bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypher/External_Dependencies/List_external_modules_resolved_to_internal_ones_for_Typescript.cypher

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
OPTIONAL MATCH (project:TS:Project)-[:CONTAINS]->(module)
55
WITH project.name AS projectName
66
,count(DISTINCT module) AS resolvedModuleCount
7-
,COUNT { (modules:Module) } AS totalModuleCount
8-
,COUNT { (externalModules:ExternalModule) } AS totalExternalModuleCount
7+
,COUNT { (project)-[:CONTAINS]->(modules:TS:Module) } AS totalModuleCount
8+
,COUNT { (ext:TS:ExternalModule)-[:IS_IMPLEMENTED_IN]->(m:TS:Module)<-[:CONTAINS]-(project) } AS totalExternalModuleCount
99
,collect(DISTINCT module.fileName + ' -> ' + external.globalFqn)[0..4] AS resolvedExamples
1010
RETURN projectName
1111
,resolvedModuleCount

0 commit comments

Comments
 (0)