Skip to content

Commit be0a1e7

Browse files
committed
Exclude yanked crates on user/team pages
Don't display crates that have been fully yanked - i.e., crates that where every version has been yanked - on user and team pages.
1 parent 5a5a670 commit be0a1e7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/routes/team.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default Route.extend({
1616
return this.store.queryRecord('team', { team_id }).then(
1717
team => {
1818
params.team_id = team.get('id');
19+
params.include_yanked = 'n';
1920
return RSVP.hash({
2021
crates: this.store.query('crate', params),
2122
team,

app/routes/user.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default Route.extend({
1515
return this.store.queryRecord('user', { user_id }).then(
1616
user => {
1717
params.user_id = user.get('id');
18+
params.include_yanked = 'n';
1819
return RSVP.hash({
1920
crates: this.store.query('crate', params),
2021
user,

0 commit comments

Comments
 (0)