Skip to content

Commit

Permalink
refactor: remove publisher and contributor (#1214)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredgalanis authored Sep 26, 2023
1 parent f38e022 commit 130b7e4
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 65 deletions.
2 changes: 0 additions & 2 deletions app/initializers/pass-api-inflector.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function initialize() {

// Tell the inflector to not pluralize our model names
// by saying the plural is the same word
inflector.uncountable('contributor');
inflector.uncountable('deposit');
inflector.uncountable('file');
inflector.uncountable('funder');
Expand All @@ -19,7 +18,6 @@ export function initialize() {
inflector.uncountable('person');
inflector.uncountable('policy');
inflector.uncountable('publication');
inflector.uncountable('publisher');
inflector.uncountable('repositoryCopy');
inflector.uncountable('repository');
inflector.uncountable('submissionEvent');
Expand Down
22 changes: 0 additions & 22 deletions app/models/contributor.js

This file was deleted.

6 changes: 0 additions & 6 deletions app/models/journal.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable ember/no-computed-properties-in-native-classes */
import Model, { attr, belongsTo } from '@ember-data/model';
import { computed } from '@ember/object';
import { PMCParticipation as PublisherPMCParticipation } from './publisher';

export default class JournalModel extends Model {
/**
Expand All @@ -12,8 +11,6 @@ export default class JournalModel extends Model {
@attr('string') pmcParticipation;
@attr('set') issns;

@belongsTo('publisher') publisher;

@computed('pmcParticipation')
get isMethodA() {
return this.pmcParticipation ? this.pmcParticipation === PMCParticipation.A : false;
Expand All @@ -24,6 +21,3 @@ export default class JournalModel extends Model {
return this.pmcParticipation ? this.pmcParticipation === PMCParticipation.B : false;
}
}

/** Re-export from Publisher model, since they use th same codes */
export const PMCParticipation = PublisherPMCParticipation;
23 changes: 0 additions & 23 deletions app/models/publisher.js

This file was deleted.

12 changes: 0 additions & 12 deletions tests/unit/models/contributor-test.js

This file was deleted.

0 comments on commit 130b7e4

Please sign in to comment.