Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 19, 2024

None values are treated as using the default column value by diesel by default, and #[builder(default)] initializes these fields as None. This enables us to only overwrite these columns in tests, while the production code stays the same. This then enables us to get rid of two additional queries in the VersionBuilder test helper :)

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Oct 19, 2024
@codecov
Copy link

codecov bot commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.82%. Comparing base (d895454) to head (5840ad0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9703      +/-   ##
==========================================
- Coverage   88.82%   88.82%   -0.01%     
==========================================
  Files         288      288              
  Lines       29345    29337       -8     
==========================================
- Hits        26067    26059       -8     
  Misses       3278     3278              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Turbo87 Turbo87 merged commit 0c7405c into rust-lang:main Oct 19, 2024
10 checks passed
@Turbo87 Turbo87 deleted the version-builder branch October 19, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant