Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 14, 2024

As mentioned on Zulip, the versions.crate_size column in our database has been backfilled and does not contain any NULL values anymore.

This PR adjusts the column to be NOT NULL to avoid these values from being reintroduced in the future :)

Related:

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 14, 2024
@Turbo87 Turbo87 requested a review from a team November 14, 2024 06:38
@codecov
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.08%. Comparing base (8801923) to head (62d52eb).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9926      +/-   ##
==========================================
- Coverage   89.09%   89.08%   -0.01%     
==========================================
  Files         290      290              
  Lines       30086    30093       +7     
==========================================
+ Hits        26804    26808       +4     
- Misses       3282     3285       +3     

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

Copy link
Contributor

@eth3lbert eth3lbert left a comment

Choose a reason for hiding this comment

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

Since the backfill process has been completed, I believe this shouldn't cause any issues. For local env, IIUC, running import-database-dump.sh should include the backfilled values. Otherwise, users might need to perform their own backfill process.

@Turbo87 Turbo87 merged commit 3f4b4a2 into rust-lang:main Nov 15, 2024
8 checks passed
@Turbo87 Turbo87 deleted the not-null-size branch November 15, 2024 15:47
jNullj added a commit to jNullj/shields-fun-fork that referenced this pull request Nov 21, 2024
changes upstream removed all null crate_size
see also rust-lang/crates.io#9926
github-merge-queue bot pushed a commit to badges/shields that referenced this pull request Nov 26, 2024
* remove obsolete test for version without size

changes upstream removed all null crate_size
see also rust-lang/crates.io#9926

* remove null handling in CratesSize service
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

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants