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 pagination overhaul for ModelV2 list #7397

Merged
merged 5 commits into from
May 22, 2024
Merged

Conversation

leovalais
Copy link
Contributor

@leovalais leovalais commented May 9, 2024

Part of #7135

Tip

Better review commit by commit

The old pagination mechanism will be deprecated once all endpoints using it have been be updated.

@codecov-commenter
Copy link

codecov-commenter commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.49%. Comparing base (c231679) to head (e79f9a1).
Report is 26 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    #7397       +/-   ##
=============================================
+ Coverage     29.39%   87.49%   +58.09%     
=============================================
  Files          1173       31     -1142     
  Lines        145280     1535   -143745     
  Branches       2828        0     -2828     
=============================================
- Hits          42707     1343    -41364     
+ Misses       100907      192   -100715     
+ Partials       1666        0     -1666     
Flag Coverage Δ
core ?
editoast ?
front ?
gateway ?
railjson_generator 87.49% <ø> (ø)
tests ?

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.

@leovalais leovalais marked this pull request as ready for review May 13, 2024 20:01
@leovalais leovalais requested a review from a team as a code owner May 13, 2024 20:01
Copy link
Contributor

@woshilapin woshilapin left a comment

Choose a reason for hiding this comment

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

Thanks for making this move forward. There is a lot of panicking code in this PR and I believe we should remove some of it.

editoast/src/views/projects.rs Outdated Show resolved Hide resolved
editoast/src/modelsv2/prelude/list.rs Outdated Show resolved Hide resolved
editoast/src/modelsv2/prelude/list.rs Show resolved Hide resolved
editoast/src/views/pagination.rs Show resolved Hide resolved
editoast/src/views/pagination.rs Show resolved Hide resolved
@leovalais leovalais self-assigned this May 15, 2024
@leovalais leovalais force-pushed the lva/pagination-overhaul branch from 92b47a0 to 889430b Compare May 16, 2024 16:07
@leovalais leovalais force-pushed the lva/pagination-overhaul branch 2 times, most recently from 3535503 to 634c77c Compare May 16, 2024 16:42
@leovalais leovalais requested a review from woshilapin May 16, 2024 16:45
@leovalais leovalais force-pushed the lva/pagination-overhaul branch from 634c77c to 7197656 Compare May 17, 2024 09:10
Copy link
Contributor

@woshilapin woshilapin left a comment

Choose a reason for hiding this comment

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

Thanks for the correction. Seems good, only made a minor comment, but not sure of it, and also not a blocker for merging. Feel free to Resolve and merge if you disagree .

editoast/src/modelsv2/prelude/list.rs Show resolved Hide resolved
editoast/src/views/pagination.rs Outdated Show resolved Hide resolved
@leovalais leovalais force-pushed the lva/pagination-overhaul branch from 9028831 to e79f9a1 Compare May 22, 2024 10:20
@leovalais leovalais force-pushed the lva/pagination-overhaul branch from e79f9a1 to 6c9edd0 Compare May 22, 2024 10:28
@leovalais leovalais enabled auto-merge May 22, 2024 10:31
@leovalais leovalais added this pull request to the merge queue May 22, 2024
Merged via the queue into dev with commit 8959c04 May 22, 2024
17 checks passed
@leovalais leovalais deleted the lva/pagination-overhaul branch May 22, 2024 10:52
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.

3 participants