chore: 🤖 Remove client agent feature flag (#2449)

This commit is contained in:
Zhihe Li committed 2024-09-24 11:58:25 -04:00
1 parent 695d9d413d
commit 1266930647
3 files changed
+11 -23

No files matched your search

+10 -15
View File
@@ -36,7 +36,6 @@ export default class ScopesScopeProjectsRoute extends Route {
@service clientAgentSessions;
@service pollster;
@service flashMessages;
@service features;
// =methods
@@ -52,21 +51,17 @@ export default class ScopesScopeProjectsRoute extends Route {
* @return {Promise<ScopeModel>}
*/
async model() {
if (this.features.isEnabled('client-agent')) {
// Setup the poller job
if (!this.job) {
this.boundPoller = this.poller.bind(this);
this.job = this.pollster.findOrCreateJob(this.boundPoller, 2000);
}
// Setup the poller job
if (!this.job) {
this.boundPoller = this.poller.bind(this);
this.job = this.pollster.findOrCreateJob(this.boundPoller, 2000);
}
const isClientAgentRunning = await this.ipc.invoke(
'isClientAgentRunning',
);
if (isClientAgentRunning) {
this.job.start();
} else {
this.job.stop();
}
const isClientAgentRunning = await this.ipc.invoke('isClientAgentRunning');
if (isClientAgentRunning) {
this.job.start();
} else {
this.job.stop();
}
const { id: scope_id } = this.modelFor('scopes.scope');
@@ -14,7 +14,6 @@ export default class ScopesScopeProjectsSessionsSessionRoute extends Route {
@service clientAgentSessions;
@service flashMessages;
@service intl;
@service features;
// =methods
@@ -30,7 +29,6 @@ export default class ScopesScopeProjectsSessionsSessionRoute extends Route {
// If we don't have any credentials, we'll try to fetch them from the client agent in case this session
// was initiated through the client agent.
if (
this.features.isEnabled('client-agent') &&
!session.credentials.length &&
(await this.ipc.invoke('isClientAgentRunning'))
) {
+1 -6
View File
@@ -60,9 +60,7 @@ module.exports = function (environment) {
timeout: 4000,
},
featureFlags: {
'client-agent': false,
},
featureFlags: {},
};
if (environment === 'development') {
@@ -80,9 +78,6 @@ module.exports = function (environment) {
ENV['ember-cli-mirage'].enabled = process.env.ENABLE_MIRAGE
? JSON.parse(process.env.ENABLE_MIRAGE)
: true;
// Enable features in development
ENV.featureFlags['client-agent'] = true;
}
if (environment === 'test') {