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: magic wand revamp #6210

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

woshilapin
Copy link
Contributor

If we want to keep opportunities to parallelize this code, all the errors related to the same object should be addressed together. It will become important when some Operation::Update will happen and need to be ordered correctly.

Still missing some tests on (can take inspiration on fn fix_track_section()):

  • fn fix_catenary()
  • fn fix_detector()
  • fn fix_operational_point()
  • fn fix_route()
  • fn fix_signal()
  • fn fix_speed_section()
  • fn fix_switch()

@woshilapin woshilapin requested a review from a team as a code owner December 22, 2023 22:06
@woshilapin woshilapin removed the request for review from flomonster December 22, 2023 22:07
@woshilapin woshilapin force-pushed the wsl/refactor/5856-auto-fix-revamp branch 2 times, most recently from 2030abe to 57d840b Compare December 22, 2023 22:46
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (84d57c2) 27.30% compared to head (24faeea) 26.93%.
Report is 1 commits behind head on dev.

Files Patch % Lines
editoast/src/views/infra/auto_fixes/mod.rs 92.74% 9 Missing ⚠️
...itoast/src/views/infra/auto_fixes/track_section.rs 93.22% 4 Missing ⚠️
editoast/src/views/infra/auto_fixes/buffer_stop.rs 87.50% 2 Missing ⚠️
editoast/src/views/infra/auto_fixes/detector.rs 87.50% 2 Missing ⚠️
editoast/src/views/infra/auto_fixes/signal.rs 87.50% 2 Missing ⚠️
editoast/src/views/infra/auto_fixes/switch.rs 87.50% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6210      +/-   ##
============================================
- Coverage     27.30%   26.93%   -0.37%     
  Complexity     2136     2136              
============================================
  Files           952      961       +9     
  Lines        124900   124258     -642     
  Branches       2690     2574     -116     
============================================
- Hits          34106    33472     -634     
- Misses        89189    89297     +108     
+ Partials       1605     1489     -116     
Flag Coverage Δ
core 78.88% <ø> (ø)
editoast 75.46% <93.02%> (+0.10%) ⬆️
front 8.69% <ø> (-0.79%) ⬇️
gateway 2.54% <ø> (ø)
tests 81.77% <ø> (ø)

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.

Copy link
Contributor

@hamz2a hamz2a left a comment

Choose a reason for hiding this comment

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

You could move auto_fixes.rs into auto_fxes/ and rename it to mod.rs.
Otherwise, LGTM.

Copy link
Contributor

@leovalais leovalais left a comment

Choose a reason for hiding this comment

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

LGTM (tested locally). I agree on mv auto_fixes.rs autofixes/mod.rs.

@bougue-pe bougue-pe force-pushed the wsl/refactor/5856-auto-fix-revamp branch from 35ff70d to 583b3f9 Compare December 29, 2023 15:57
@woshilapin woshilapin force-pushed the wsl/refactor/5856-auto-fix-revamp branch from 583b3f9 to d4d0b51 Compare January 3, 2024 10:59
If we want to keep opportunities to parallelize this code,
all the errors related to the same object should be addressed together.
It will become important when some `Operation::Update` will happen and need to
be ordered correctly.
@woshilapin woshilapin force-pushed the wsl/refactor/5856-auto-fix-revamp branch from 8d0cf43 to 24faeea Compare January 3, 2024 11:17
@woshilapin woshilapin enabled auto-merge January 3, 2024 12:42
@woshilapin
Copy link
Contributor Author

Tests are going in another PR (to avoid blocking other work).

@woshilapin woshilapin added this pull request to the merge queue Jan 3, 2024
Merged via the queue into dev with commit 3a3bc3f Jan 3, 2024
18 of 19 checks passed
@woshilapin woshilapin deleted the wsl/refactor/5856-auto-fix-revamp branch January 3, 2024 12:50
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.

4 participants