Skip to content
Open
3 changes: 2 additions & 1 deletion app/components/repo-build-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default Component.extend({
return store.query('build', {
repository_id: repoId,
event_type: eventTypes,
limit, offset
limit,
offset
});
},

Expand Down
1 change: 1 addition & 0 deletions app/mixins/builds/load-more.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default Mixin.create({
let options = {
repository_id: this.get('repo.id'),
offset: this.get('builds.length'),
representation: 'list'
};
if (type != null) {
options.event_type = type.replace(/s$/, '');
Expand Down
2 changes: 2 additions & 0 deletions app/models/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ const Repo = VcsEntity.extend({
const builds = this.store.filter('build', {
event_type: ['push', 'api', 'cron', 'release'],
repository_id: id,
representation: 'list'
}, (b) => {
let eventTypes = ['push', 'api', 'cron', 'release'];
return this._buildRepoMatches(b, id) && eventTypes.includes(b.get('eventType'));
Expand All @@ -252,6 +253,7 @@ const Repo = VcsEntity.extend({
this.store.subscribe(builds, 'build', {
event_type: ['push', 'api', 'cron', 'release'],
repository_id: id,
representation: 'list'
}, (b) => {
let eventTypes = ['push', 'api', 'cron', 'release'];
return this._buildRepoMatches(b, id) && eventTypes.includes(b.get('eventType'));
Expand Down