Removed snippets feature flag (#7839)

This commit is contained in:
arunvjn 2021-09-27 13:49:07 +05:30 committed by GitHub
parent 8d92d82e92
commit cb2ad8990a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -14,7 +14,6 @@ import { ReactComponent as NewPlus } from "assets/icons/menu/new-plus.svg";
import { ReactComponent as Binding } from "assets/icons/menu/binding.svg";
import { ReactComponent as Snippet } from "assets/icons/ads/snippet.svg";
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
import getFeatureFlags from "utils/featureFlags";
enum Shortcuts {
PLUS = "PLUS",
@ -221,10 +220,7 @@ export const generateQuickCommands = (
recentEntities,
5,
);
const actionCommands = [newBinding];
if (getFeatureFlags().SNIPPET) {
actionCommands.push(insertSnippet);
}
const actionCommands = [newBinding, insertSnippet];
suggestionsMatchingSearchText.push(
...matchingCommands(actionCommands, searchText, []),

View File

@ -10,7 +10,6 @@ import { Datasource } from "entities/Datasource";
import { useEffect, useState } from "react";
import { fetchRawGithubContentList } from "./githubHelper";
import { PluginType } from "entities/Action";
import getFeatureFlags from "utils/featureFlags";
import { modText } from "./HelpBar";
import { WidgetType } from "constants/WidgetConstants";
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
@ -134,7 +133,6 @@ export const filterCategories: Record<SEARCH_CATEGORY_ID, SearchCategory> = {
kind: SEARCH_ITEM_TYPES.category,
id: SEARCH_CATEGORY_ID.SNIPPETS,
desc: createMessage(SNIPPET_DESCRIPTION),
show: () => getFeatureFlags().SNIPPET,
},
[SEARCH_CATEGORY_ID.DOCUMENTATION]: {
title: "Search Documentation",