-
Notifications
You must be signed in to change notification settings - Fork 43
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: move light_rolling_stock to /models #3641
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #3641 +/- ##
============================================
- Coverage 69.79% 68.91% -0.89%
Complexity 2002 2002
============================================
Files 438 439 +1
Lines 21896 22358 +462
Branches 1658 1658
============================================
+ Hits 15282 15407 +125
- Misses 5819 6156 +337
Partials 795 795
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
7219fcf
to
ea570c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool PR !
The effort curves structure is okay 😁
I don't know if you really need to keep DieselJson
in your structs if they are not Queryable
or Insertable
Also, you replaced "without effort curves" with "with simplified effort curves" in docstrings, however there are no speed-effort curves in the light rolling stock (even though there is an argument mode_effort_curves
). I think it's okay but it might be confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole PR is very cool thanks for this refactor
editoast/src/schema/rolling_stock_schema/light_rolling_stock.rs
Outdated
Show resolved
Hide resolved
8c94807
to
e610de1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things to fix and we're good.
e610de1
to
8725d59
Compare
Good PR, it's ok for me, but I think we should rename the |
- move LightRollingStockModel to /models - create LightRollingStock schema - add tests
8725d59
to
003d010
Compare
closes #3642