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

Stop returning deprecated badges from API #5071

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Aug 12, 2022

Badges were removed from the crates.io UI almost two years ago (see #2436), and they have also been removed from the cargo documentation (see rust-lang/cargo#8727).

This PR adjusts our API to no longer return the list of badges specified in the Cargo.toml file. Instead, we return an empty array (badges: []) to not break any users that expect us to return an array under that key.

Note that this change is just the absolute minimum to no longer return the badges, and some more cleanup work can be done afterwards. Ultimately, the goal is to completely drop the badges from the database (needs to be announced in #3617).

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants