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

front: searchrollingstock: fix rollingstock list showing loader when empty #6520

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

Yohh
Copy link
Contributor

@Yohh Yohh commented Jan 31, 2024

  • remove condition verifying if rollingstock list length is true
  • the loader is still well displayed while searching

to try it you can drop rolling_stock table and test it in a scenario or stop editoast and open the rollingstock editor

close #6013

@Yohh Yohh requested a review from a team as a code owner January 31, 2024 09:50
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

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

Comparison is base (dfdd7ca) 28.00% compared to head (e386971) 28.01%.

Files Patch % Lines
...onents/RollingStockSelector/SearchRollingStock.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##                dev    #6520   +/-   ##
=========================================
  Coverage     28.00%   28.01%           
  Complexity     2167     2167           
=========================================
  Files          1034     1034           
  Lines        127683   127681    -2     
  Branches       2602     2602           
=========================================
+ Hits          35762    35764    +2     
+ Misses        90407    90403    -4     
  Partials       1514     1514           
Flag Coverage Δ
core 78.55% <ø> (ø)
editoast 75.47% <ø> (+<0.01%) ⬆️
front 8.61% <0.00%> (+<0.01%) ⬆️
gateway 2.50% <ø> (ø)
railjson_generator 87.25% <ø> (ø)
tests 81.95% <ø> (ø)

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

@Omar-938 Omar-938 left a comment

Choose a reason for hiding this comment

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

good for me, Works on local host

Copy link
Contributor

@Math-R Math-R left a comment

Choose a reason for hiding this comment

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

lgtm !

@Math-R Math-R enabled auto-merge February 1, 2024 16:16
…empty

- remove condition verifying if rollingstock list length is true
- the loader is still well displayed while searching
@Yohh Yohh force-pushed the yoh/front-fix-empty-rollingstock-list-shows-loader branch from fb4f372 to e386971 Compare February 1, 2024 16:45
@Math-R Math-R added this pull request to the merge queue Feb 1, 2024
Merged via the queue into dev with commit 2415f7b Feb 1, 2024
22 checks passed
@Math-R Math-R deleted the yoh/front-fix-empty-rollingstock-list-shows-loader branch February 1, 2024 17:02
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.

front: with no rolling stocks, the front-end pretends to be loading indefinitely
3 participants