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

editoast: better sql query to split a track section #10030

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

sim51
Copy link
Contributor

@sim51 sim51 commented Dec 12, 2024

Fix #8947

New query is not using the ST_LineSubstring which gives bad result with geography data that has long segment. By computing the geo point and doing a split of the TS near this point, it's a lot better.

@sim51 sim51 requested a review from a team as a code owner December 12, 2024 14:00
@github-actions github-actions bot added the area:editoast Work on Editoast Service label Dec 12, 2024
@sim51 sim51 changed the title [editoast] better sql query to split a track section editoast: better sql query to split a track section Dec 12, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.09%. Comparing base (9140024) to head (bdf07d8).
Report is 142 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10030      +/-   ##
==========================================
+ Coverage   80.06%   80.09%   +0.03%     
==========================================
  Files        1050     1054       +4     
  Lines      105423   105648     +225     
  Branches      757      759       +2     
==========================================
+ Hits        84405    84619     +214     
- Misses      20977    20988      +11     
  Partials       41       41              
Flag Coverage Δ
editoast 74.22% <ø> (-0.04%) ⬇️
front 89.28% <ø> (+0.03%) ⬆️
gateway 2.18% <ø> (+<0.01%) ⬆️
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 87.00% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sim51 sim51 force-pushed the bsi/issue-8947 branch 2 times, most recently from ddfb790 to d24ace6 Compare December 12, 2024 18:49
Fix #8947

New query is not using the `ST_LineSubstring` which gives bad result with geography data that has long segment.
By computing the geo point and doing a split of the TS near this point, it's a lot better.

Signed-off-by: Benoit Simard <contact@bsimard.com>
Copy link
Contributor

@flomonster flomonster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sim51 sim51 added this pull request to the merge queue Jan 2, 2025
Merged via the queue into dev with commit e2fac0f Jan 2, 2025
27 checks passed
@sim51 sim51 deleted the bsi/issue-8947 branch January 2, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:editoast Work on Editoast Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug when splitting a track in infrastructure editor
3 participants