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 2) #7269

Merged
merged 16 commits into from
Apr 19, 2024

Conversation

leovalais
Copy link
Contributor

@leovalais leovalais commented Apr 18, 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.

A little refactoring of Identifiers was necessary to make the -Impl struct API convenient.

Tip

This PR can be reviewed commit by commit.

@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.49%. Comparing base (4c44842) to head (193b7d3).
Report is 3 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    #7269       +/-   ##
=============================================
+ Coverage     28.44%   87.49%   +59.04%     
=============================================
  Files          1155       31     -1124     
  Lines        140091     1535   -138556     
  Branches       2845        0     -2845     
=============================================
- Hits          39849     1343    -38506     
+ Misses        98592      192    -98400     
+ Partials       1650        0     -1650     
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 force-pushed the lva/organize-modelsv2-derive-part-3 branch from 2c46869 to b3e66c8 Compare April 18, 2024 16:40
@leovalais leovalais marked this pull request as ready for review April 18, 2024 16:41
@leovalais leovalais requested a review from a team as a code owner April 18, 2024 16:41
Renames:

- Indentifier => RawIdentifier
- TypedIdentifier => Identifier
- Restore former identifier field names in ModelConfig
@leovalais leovalais force-pushed the lva/organize-modelsv2-derive-part-3 branch from 71f496b to 193b7d3 Compare April 18, 2024 18:38
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.

I parsed through the code, seems like a good refacto seen from a newbie. I'd say if all of our test suite is working, it's probably fine 🚀

@leovalais leovalais added this pull request to the merge queue Apr 19, 2024
Merged via the queue into dev with commit c05d776 Apr 19, 2024
17 checks passed
@leovalais leovalais deleted the lva/organize-modelsv2-derive-part-3 branch April 19, 2024 13:48
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