chore: deprecate "fix CC slowness" feature
The bug has been fixed in the Community Console as per
https://support.google.com/s/community/forum/51488989/thread/269560789/message/277336217.
In the medium term we should remove the feature code from the codebase
once we're sure it won't be needed anymore.
Change-Id: I91715238df8fbe73800885209a28c15c29b703b3
diff --git a/src/common/options/optionsPrototype.ts b/src/common/options/optionsPrototype.ts
index a3c98e8..671deb8 100644
--- a/src/common/options/optionsPrototype.ts
+++ b/src/common/options/optionsPrototype.ts
@@ -124,11 +124,6 @@
context: OptionContext.Options,
killSwitchType: KillSwitchType.Option,
},
- fixpekb269560789: {
- defaultValue: true,
- context: OptionContext.Options,
- killSwitchType: KillSwitchType.Option,
- },
// Experiments
workflows: {
@@ -219,6 +214,11 @@
context: OptionContext.Deprecated,
killSwitchType: KillSwitchType.Ignore,
},
+ fixpekb269560789: {
+ defaultValue: false,
+ context: OptionContext.Options,
+ killSwitchType: KillSwitchType.Option,
+ },
};
export type OptionPrototype<T> = Omit<
diff --git a/src/features/Features.ts b/src/features/Features.ts
index bf4d83c..67c93aa 100644
--- a/src/features/Features.ts
+++ b/src/features/Features.ts
@@ -5,7 +5,6 @@
import ExtraInfoFeature from './extraInfo/extraInfo.feature';
import WorkflowsFeature from './workflows/workflows.feature';
import CCDarkThemeFeature from './ccDarkTheme/ccDarkTheme.feature';
-import FixCCSlownessFeature from './fixCCSlowness/fixCCSlowness.feature';
export type ConcreteFeatureClass = { new (): Feature };
@@ -14,7 +13,6 @@
AutoRefreshFeature,
CCDarkThemeFeature,
ExtraInfoFeature,
- FixCCSlownessFeature,
InfiniteScrollFeature,
WorkflowsFeature,
];
diff --git a/src/features/fixCCSlowness/fixCCSlowness.feature.ts b/src/features/fixCCSlowness/fixCCSlowness.feature.ts
index 5703311..ef5ed2e 100644
--- a/src/features/fixCCSlowness/fixCCSlowness.feature.ts
+++ b/src/features/fixCCSlowness/fixCCSlowness.feature.ts
@@ -4,6 +4,11 @@
import RemoveUserAbuseEventsFromDataStartupScript from './scripts/removeUserAbuseEventsFromDataStartup.script';
// This feature also has an associated response modifier.
+
+/**
+ * @deprecated This feature has been deprecated. Its code will soon be removed
+ * once we're sure the feature won't come back.
+ */
export default class FixCCSlownessFeature extends Feature {
public readonly scripts: ConcreteScript[] = [
RemoveUserAbuseEventsFromDataStartupScript,
diff --git a/src/options/optionsPage.json5 b/src/options/optionsPage.json5
index f3ea342..3234770 100644
--- a/src/options/optionsPage.json5
+++ b/src/options/optionsPage.json5
@@ -6,7 +6,6 @@
{
name: 'featuredoptions',
options: [
- {codename: 'fixpekb269560789'},
{codename: 'list'},
{codename: 'thread'},
{codename: 'threadall'},
diff --git a/src/xhrInterceptor/responseModifiers/index.js b/src/xhrInterceptor/responseModifiers/index.js
index e736593..057960f 100644
--- a/src/xhrInterceptor/responseModifiers/index.js
+++ b/src/xhrInterceptor/responseModifiers/index.js
@@ -4,15 +4,11 @@
import createMessageRemoveParentRef from './createMessageRemoveParentRef.js';
import flattenThread from './flattenThread.js';
import loadMoreThread from './loadMoreThread.js';
-import removeUserAbuseEventsInViewForum from './removeUserAbuseEventsInViewForum.js';
-import removeUserAbuseEventsInViewThread from './removeUserAbuseEventsInViewThread.js';
export const responseModifiers = [
loadMoreThread,
flattenThread,
createMessageRemoveParentRef,
- removeUserAbuseEventsInViewForum,
- removeUserAbuseEventsInViewThread,
];
// Content script target
diff --git a/src/xhrInterceptor/responseModifiers/removeUserAbuseEventsInViewForum.js b/src/xhrInterceptor/responseModifiers/removeUserAbuseEventsInViewForum.js
index eb40e8e..9d4e713 100644
--- a/src/xhrInterceptor/responseModifiers/removeUserAbuseEventsInViewForum.js
+++ b/src/xhrInterceptor/responseModifiers/removeUserAbuseEventsInViewForum.js
@@ -1,3 +1,7 @@
+/**
+ * @deprecated The feature behind this response modifier has been deprecated.
+ * This code will soon be removed once we're sure the feature won't come back.
+ */
const removeUserAbuseEventsInViewForum = {
urlRegex: /api\/ViewForum/i,
featureGated: true,
diff --git a/src/xhrInterceptor/responseModifiers/removeUserAbuseEventsInViewThread.js b/src/xhrInterceptor/responseModifiers/removeUserAbuseEventsInViewThread.js
index ccaeb95..37ad79b 100644
--- a/src/xhrInterceptor/responseModifiers/removeUserAbuseEventsInViewThread.js
+++ b/src/xhrInterceptor/responseModifiers/removeUserAbuseEventsInViewThread.js
@@ -1,3 +1,7 @@
+/**
+ * @deprecated The feature behind this response modifier has been deprecated.
+ * This code will soon be removed once we're sure the feature won't come back.
+ */
const removeUserAbuseEventsInViewThread = {
urlRegex: /api\/ViewThread/i,
featureGated: true,