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: add get rolling stock by name endpoint #7243

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

younesschrifi
Copy link
Contributor

Add an enpoint to retrieve a rolling stock given its name.

@younesschrifi younesschrifi requested a review from a team as a code owner April 17, 2024 11:12
@younesschrifi younesschrifi force-pushed the yci/add_rolling_stock_by_name_endpoint branch from 9f9b92e to c3f6590 Compare April 17, 2024 11:15
@codecov-commenter
Copy link

codecov-commenter commented Apr 17, 2024

Codecov Report

Attention: Patch coverage is 80.85106% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 28.35%. Comparing base (3c081df) to head (2827ff8).
Report is 23 commits behind head on dev.

Files Patch % Lines
front/scripts/api-errors-i18n.ts 0.00% 14 Missing ⚠️
editoast/src/views/rolling_stocks/mod.rs 82.14% 10 Missing ⚠️
editoast/src/views/light_rolling_stocks.rs 89.65% 3 Missing ⚠️

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

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #7243      +/-   ##
============================================
+ Coverage     28.20%   28.35%   +0.15%     
- Complexity     2289     2299      +10     
============================================
  Files          1128     1142      +14     
  Lines        139471   139928     +457     
  Branches       2801     2845      +44     
============================================
+ Hits          39335    39680     +345     
- Misses        98505    98598      +93     
- Partials       1631     1650      +19     
Flag Coverage Δ
core 78.55% <ø> (+0.03%) ⬆️
editoast 70.13% <85.22%> (-0.02%) ⬇️
front 9.15% <73.58%> (+0.03%) ⬆️
gateway 2.43% <ø> (-0.02%) ⬇️
railjson_generator 87.49% <ø> (ø)
tests 83.96% <ø> (ø)

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

@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.

Mostly lgtm, just some details:

editoast/src/views/rolling_stocks/mod.rs Show resolved Hide resolved
editoast/src/views/rolling_stocks/mod.rs Outdated Show resolved Hide resolved
editoast/src/views/rolling_stocks/mod.rs Show resolved Hide resolved
editoast/src/views/rolling_stocks/mod.rs Show resolved Hide resolved
@younesschrifi younesschrifi force-pushed the yci/add_rolling_stock_by_name_endpoint branch 3 times, most recently from b229322 to e8138fb Compare April 18, 2024 07:33
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.

Tested, thanks!

@younesschrifi younesschrifi removed the request for review from flomonster April 18, 2024 08:16
@younesschrifi younesschrifi force-pushed the yci/add_rolling_stock_by_name_endpoint branch from e8138fb to 24be174 Compare April 18, 2024 08:34
@younesschrifi younesschrifi requested a review from a team as a code owner April 18, 2024 08:34
@younesschrifi younesschrifi force-pushed the yci/add_rolling_stock_by_name_endpoint branch 2 times, most recently from 758c585 to 9a1a454 Compare April 18, 2024 09:05
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

@younesschrifi younesschrifi force-pushed the yci/add_rolling_stock_by_name_endpoint branch from 9a1a454 to ef54189 Compare April 18, 2024 09:07
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

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

Lgtm. You can rest now :)

@younesschrifi younesschrifi force-pushed the yci/add_rolling_stock_by_name_endpoint branch 2 times, most recently from 28acdcb to d8afe65 Compare April 18, 2024 09:31
@younesschrifi younesschrifi force-pushed the yci/add_rolling_stock_by_name_endpoint branch from d8afe65 to 05f2e75 Compare April 18, 2024 09:42
When the script found an error definition in openapi.yml file, it tries to generate its message with a dummy variable object.
And this object can't be well defined, specially for objects.
This leads to an error for the script, even if it's valid.
@flomonster flomonster added this pull request to the merge queue Apr 18, 2024
Merged via the queue into dev with commit 086800d Apr 18, 2024
17 checks passed
@flomonster flomonster deleted the yci/add_rolling_stock_by_name_endpoint branch April 18, 2024 10:45
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.

None yet

6 participants