Skip to content

Commit

Permalink
paging actually works now so only get 1 run wherever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
narenranjit committed Mar 9, 2018
1 parent 227b207 commit 336490b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/managers/run-strategies/reuse-across-sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ var Strategy = classFrom(IdentityStrategy, {
var filter = injectFiltersFromSession(this.options.filter, userSession);
var me = this;
return runService.query(filter, {
// startrecord: 0, //TODO: Uncomment when EPICENTER-2569 is fixed
// endrecord: 0,
startrecord: 0,
endrecord: 0,
sort: 'created',
direction: 'desc'
}).then(function (runs) {
Expand Down
4 changes: 2 additions & 2 deletions src/managers/run-strategies/reuse-last-initialized.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ module.exports = classFrom(Base, {
var filter = $.extend(true, { trashed: false }, sessionFilter, { model: runopts.model });
var me = this;
return runService.query(filter, {
// startrecord: 0, //TODO: Uncomment when EPICENTER-2569 is fixed
// endrecord: 0,
startrecord: 0,
endrecord: 0,
sort: 'created',
direction: 'desc'
}).then(function (runs) {
Expand Down
6 changes: 3 additions & 3 deletions src/managers/scenario-strategies/reuse-last-unsaved.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ module.exports = classFrom(Base, {
var runopts = runService.getCurrentConfig();
var filter = injectFiltersFromSession({
saved: false,
trashed: false, //TODO: change to '!=true' once EPICENTER-2500 is fixed,
trashed: false,
model: runopts.model,
}, userSession);
var me = this;
var outputModifiers = {
// startrecord: 0, //TODO: Uncomment when EPICENTER-2569 is fixed
// endrecord: 0,
startrecord: 0,
endrecord: 0,
sort: 'created',
direction: 'desc'
};
Expand Down

0 comments on commit 336490b

Please sign in to comment.