From 0d1268dc84fe71880bd570ec306ef25f81b46329 Mon Sep 17 00:00:00 2001 From: Florian Sihler Date: Mon, 4 Nov 2024 20:00:23 +0100 Subject: [PATCH] [release:patch] Fix: Dependency Query with Aliases --- .../catalog/dependencies-query/dependencies-query-executor.ts | 2 +- test/functionality/dataflow/query/dependencies-query-tests.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/queries/catalog/dependencies-query/dependencies-query-executor.ts b/src/queries/catalog/dependencies-query/dependencies-query-executor.ts index 5ca13a354a..c1bfcd6ad4 100644 --- a/src/queries/catalog/dependencies-query/dependencies-query-executor.ts +++ b/src/queries/catalog/dependencies-query/dependencies-query-executor.ts @@ -100,7 +100,7 @@ function makeCallContextQuery(functions: readonly FunctionInfo[], kind: string): return functions.map(f => ({ type: 'call-context', callName: f.name, - includeAliases: true, + includeAliases: false, callNameExact: true, subkind: f.name, linkTo: f.linkTo ? { type: 'link-to-last-call', callName: f.linkTo } : undefined, diff --git a/test/functionality/dataflow/query/dependencies-query-tests.ts b/test/functionality/dataflow/query/dependencies-query-tests.ts index 11a1b155d5..8cb6f77b98 100644 --- a/test/functionality/dataflow/query/dependencies-query-tests.ts +++ b/test/functionality/dataflow/query/dependencies-query-tests.ts @@ -72,10 +72,6 @@ describe('Dependencies Query', withShell(shell => { { nodeId: '1@p_load', functionName: 'p_load', libraryName: 'c' } ] }); - testQuery('Call with Alias', 'foo <- library\nfoo(x)', { libraries: [ - { nodeId: '2@foo', functionName: 'foo', libraryName: 'x' } - ] }); - testQuery('Load implicitly', 'foo::x\nbar:::y()', { libraries: [ { nodeId: '1@x', functionName: '::', libraryName: 'foo' }, { nodeId: '2@y', functionName: ':::', libraryName: 'bar' }