Skip to content

fix: remove duplicate findEndpointNeighborsBatch — build fix#25

Merged
aksOps merged 3 commits intomainfrom
fix/duplicate-findEndpointNeighborsBatch
Apr 3, 2026
Merged

fix: remove duplicate findEndpointNeighborsBatch — build fix#25
aksOps merged 3 commits intomainfrom
fix/duplicate-findEndpointNeighborsBatch

Conversation

@aksOps
Copy link
Copy Markdown
Contributor

@aksOps aksOps commented Apr 3, 2026

Summary

Root Cause

The merge of feat/phase5-dashboard-redesignmain (PR #24) introduced a duplicate method because both the backend chain (PRs #12-16) and the phase5 branch independently added the same batch lookup method with slightly different implementations.

Test Plan

  • Compiles cleanly (mvn compile)
  • CI passes on push

🤖 Generated with Claude Code

aksOps and others added 3 commits April 3, 2026 16:03
… fix)

The merge of feat/phase5-dashboard-redesign into main introduced a duplicate
definition of findEndpointNeighborsBatch(List<String>). Both versions had
identical semantics but different implementation style:

Kept: the first (from the backend chain PRs #12-16) which uses
NodeKind.ENDPOINT.getValue() for type safety and UNWIND/MATCH pattern
with $ids parameter.

Removed: the second (from phase5) which used string literals
('ENDPOINT', 'WEBSOCKET_ENDPOINT') and IN $nodeIds pattern.

Fixes: compilation failure on main (javac error: method already defined).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Two duplicate method definitions were introduced when feat/phase5-dashboard-redesign
was merged into main, because both the backend chain (PRs #12-16) and the phase5
branch independently added the same methods:

1. GraphStore.findEndpointNeighborsBatch(List<String>):
   - Kept: UNWIND/$ids/NodeKind.getValue() version (from backend chain, type-safe)
   - Removed: IN $nodeIds/string literal version (from phase5)

2. TopicLinkerTest.determinismTest():
   - Kept: multi-producer/multi-consumer test with PRODUCES+CONSUMES+PUBLISHES+LISTENS
     and TOPIC+EVENT nodes (more comprehensive, verifies target ID equality)
   - Removed: simpler 3-edge test (from backported detection-quality-fixes commit)

Fixes: javac compilation failures on main branch.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
findRelatedEndpoints now partitions search matches into direct endpoints
(returned immediately) and non-endpoint nodes (passed to batch query).
Two tests were stubbing findEndpointNeighborsBatch with List.of("ep:getUsers")
but since ep:getUsers IS an endpoint, it never reaches the batch call —
nonEndpointIds is empty.

Update both tests to stub List.of() (the actual argument when all search
results are direct endpoint matches).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 3, 2026

@aksOps aksOps merged commit 1ad6f3c into main Apr 3, 2026
10 checks passed
@aksOps aksOps deleted the fix/duplicate-findEndpointNeighborsBatch branch April 3, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant