Skip to content

Commit

Permalink
Remove "Authors" section from crate details page
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Jan 9, 2021
1 parent ecd775b commit 0faaaf2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
10 changes: 0 additions & 10 deletions app/models/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions app/routes/crate/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions app/templates/crate/version.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,6 @@
{{/each}}
</ul>
</div>

<div>
<h3>Authors</h3>
<ul>
{{#each this.currentVersion.authorNames as |author|}}
<li>{{ format-email author }}</li>
{{/each}}
</ul>
</div>
</div>

<div local-class='bottom'>
Expand Down

0 comments on commit 0faaaf2

Please sign in to comment.