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 d4bb64cbfd5..59b258eae57 100644 --- a/app/routes/crate/version.js +++ b/app/routes/crate/version.js @@ -65,9 +65,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}} - -