disable polling in admin UI (#1057)

* fix: 🐛 disable sessions polling

* increase sessions count

* fix: 🐛 undo mirage test
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2022-04-18 18:08:23 -04:00
1 parent 215bf00407
commit 90c9fa8b73
1 file changed
+13 -7
+13 -7
View File
@@ -3,12 +3,12 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { all, hash } from 'rsvp';
import { A } from '@ember/array';
import runEvery from 'ember-pollster/decorators/route/run-every';
// import runEvery from 'ember-pollster/decorators/route/run-every';
import { notifySuccess, notifyError } from 'core/decorators/notify';
import config from '../../../config/environment';
// import config from '../../../config/environment';
import { resourceFilter } from 'core/decorators/resource-filter';
const POLL_TIMEOUT_SECONDS = config.sessionPollingTimeoutSeconds;
// const POLL_TIMEOUT_SECONDS = config.sessionPollingTimeoutSeconds;
export default class ScopesScopeSessionsRoute extends Route {
// =services
@@ -27,10 +27,16 @@ export default class ScopesScopeSessionsRoute extends Route {
})
status;
@runEvery(POLL_TIMEOUT_SECONDS * 1000)
poller() {
return this.refresh();
}
/**
* Update: disable polling due to large amounts of sessions crashing the app
* This is a temp solution till we have a pagination on the UI
* and concrete backend solution to support large amounts of sessions.
*/
// @runEvery(POLL_TIMEOUT_SECONDS * 1000)
// poller() {
// return this.refresh();
// }
// =methods