Closed
Description
Related to #145.
Since we currently only keep track of yanked-ness on version records rather than on crate records, implementing this involves:
- Changing the query for the crates a user owns and the query for the crates a team owns to have an additional condition that there must be at least one version associated with that crate that has
yanked
equal tofalse
.- I expect figuring out the diesel incantation to express this condition to be the most difficult part of this issue; give it a try and post what you've tried and I can help figure it out if you get stuck!
- Make a new test similar to this one that if the user or team in the test owns a crate where all versions have been yanked, that crate does NOT show up in the JSON response.