From 9ada66366b0e60e1a4ddf6f299732b16f37eced8 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 28 Dec 2020 10:23:25 +0100 Subject: [PATCH] Remove "Authors" section from crate details page --- app/models/version.js | 10 ---------- app/routes/crate/version.js | 3 --- app/templates/crate/version.hbs | 9 --------- 3 files changed, 22 deletions(-) diff --git a/app/models/version.js b/app/models/version.js index 59964c95be4..c6017ccc4f7 100644 --- a/app/models/version.js +++ b/app/models/version.js @@ -17,7 +17,6 @@ export default class Version extends Model { @belongsTo('crate', { async: false }) crate; - @hasMany('users', { async: true }) authors; @hasMany('dependency', { async: true }) dependencies; @hasMany('version-download', { async: true }) version_downloads; @@ -26,15 +25,6 @@ export default class Version extends Model { }) crateName; - @alias('loadAuthorsTask.last.value') authorNames; - - @(task(function* () { - // trigger the async relationship to load the content - let authors = yield this.authors; - return authors.meta.names; - }).keepLatest()) - loadAuthorsTask; - @alias('loadDepsTask.last.value.normal') normalDependencies; @alias('loadDepsTask.last.value.build') buildDependencies; @alias('loadDepsTask.last.value.dev') devDependencies; diff --git a/app/routes/crate/version.js b/app/routes/crate/version.js index 1fc1c6ae87f..483eddc9a9c 100644 --- a/app/routes/crate/version.js +++ b/app/routes/crate/version.js @@ -32,9 +32,6 @@ export default class VersionRoute extends Route { super.setupController(...arguments); model.version.loadDepsTask.perform(); - if (!model.version.authorNames) { - model.version.loadAuthorsTask.perform(); - } controller.loadReadmeTask.perform().catch(() => { // ignored diff --git a/app/templates/crate/version.hbs b/app/templates/crate/version.hbs index ec6d4d4b765..c22c5b9eef0 100644 --- a/app/templates/crate/version.hbs +++ b/app/templates/crate/version.hbs @@ -123,15 +123,6 @@ {{/each}} - -
-

Authors

- -