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

Split ModelV2 codegen in multiple submodules (part 1) #7254

Merged
merged 6 commits into from
Apr 18, 2024

Conversation

leovalais
Copy link
Contributor

@leovalais leovalais commented Apr 17, 2024

Defines for each generated code block (struct definition, impl block, trait implementation) a struct
implementing ToTokens to isolate (almost) all quoting into modelv2::codegen.

This PR contains this refactoring for all blocks except the DB access ModelV2 traits implementations.
These will come in another PR.

Tip

This PR can be reviewed commit by commit.

@codecov-commenter
Copy link

codecov-commenter commented Apr 17, 2024

Codecov Report

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

Project coverage is 28.44%. Comparing base (82f7396) to head (0f13129).
Report is 1 commits behind head on dev.

Files Patch % Lines
editoast/editoast_derive/src/modelv2/config.rs 85.71% 3 Missing ⚠️

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

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #7254      +/-   ##
============================================
+ Coverage     28.35%   28.44%   +0.08%     
  Complexity     2299     2299              
============================================
  Files          1147     1155       +8     
  Lines        139928   140097     +169     
  Branches       2845     2845              
============================================
+ Hits          39678    39846     +168     
- Misses        98600    98601       +1     
  Partials       1650     1650              
Flag Coverage Δ
core 78.55% <ø> (ø)
editoast 70.30% <99.12%> (+0.18%) ⬆️
front 9.15% <ø> (ø)
gateway 2.43% <ø> (ø)
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.

@leovalais leovalais force-pushed the lva/organize-modelsv2-derive-part-2 branch from 01dcc35 to 6c351a0 Compare April 18, 2024 12:32
@leovalais leovalais marked this pull request as ready for review April 18, 2024 12:35
@leovalais leovalais requested a review from a team as a code owner April 18, 2024 12:35
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.

That is some serious clean up 🧹 and reorganisation 📂 Nice for those who will maintain it later.

editoast/editoast_derive/src/modelv2/args.rs Outdated Show resolved Hide resolved
@leovalais leovalais force-pushed the lva/organize-modelsv2-derive-part-2 branch from 6c351a0 to 0f13129 Compare April 18, 2024 13:29
@leovalais leovalais enabled auto-merge April 18, 2024 13:30
@leovalais leovalais added this pull request to the merge queue Apr 18, 2024
Merged via the queue into dev with commit 6828093 Apr 18, 2024
17 checks passed
@leovalais leovalais deleted the lva/organize-modelsv2-derive-part-2 branch April 18, 2024 14:06
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