Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: fix pathfinding response waypoints #4991

Merged
merged 1 commit into from
Sep 29, 2023
Merged

core: fix pathfinding response waypoints #4991

merged 1 commit into from
Sep 29, 2023

Conversation

flomonster
Copy link
Contributor

@flomonster flomonster commented Sep 7, 2023

In the application, we assume that the number of waypoints given as input to the PF must match the number of waypoints output (unsuggested) by core.

When two waypoints are at the same location, they are merged into a single unsuggested waypoint. This PR fixes this.

Merge this after: #4655

@flomonster flomonster requested a review from a team as a code owner September 7, 2023 10:03
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #4991 (2d6c535) into dev (5da16c9) will increase coverage by 0.00%.
Report is 1 commits behind head on dev.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                dev    #4991   +/-   ##
=========================================
  Coverage     18.55%   18.55%           
- Complexity     2466     2469    +3     
=========================================
  Files           859      859           
  Lines        106263   106267    +4     
  Branches       2499     2500    +1     
=========================================
+ Hits          19714    19718    +4     
  Misses        85182    85182           
  Partials       1367     1367           
Flag Coverage Δ
core 79.19% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...rd/api/pathfinding/PathfindingResultConverter.java 92.78% <100.00%> (+0.07%) ⬆️
...d/api/pathfinding/response/PathWaypointResult.java 71.42% <100.00%> (+1.73%) ⬆️

@flomonster flomonster added this pull request to the merge queue Sep 29, 2023
Merged via the queue into dev with commit 00616a6 Sep 29, 2023
6 checks passed
@flomonster flomonster deleted the fam/fix-core-pf branch September 29, 2023 13:33
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.

3 participants