diff --git a/superset-frontend/src/SqlLab/components/QuerySearch/QuerySearch.test.jsx b/superset-frontend/src/SqlLab/components/QuerySearch/QuerySearch.test.jsx
deleted file mode 100644
index 2a891d34af84c..0000000000000
--- a/superset-frontend/src/SqlLab/components/QuerySearch/QuerySearch.test.jsx
+++ /dev/null
@@ -1,139 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-import React from 'react';
-import thunk from 'redux-thunk';
-import configureStore from 'redux-mock-store';
-import fetchMock from 'fetch-mock';
-import QuerySearch from 'src/SqlLab/components/QuerySearch';
-import { Provider } from 'react-redux';
-import { supersetTheme, ThemeProvider } from '@superset-ui/core';
-import { fireEvent, render, screen, act } from '@testing-library/react';
-import '@testing-library/jest-dom/extend-expect';
-import userEvent from '@testing-library/user-event';
-import { user } from 'src/SqlLab/fixtures';
-
-const mockStore = configureStore([thunk]);
-const store = mockStore({
- sqlLab: user,
-});
-
-const SEARCH_ENDPOINT = 'glob:*/superset/search_queries?*';
-const USER_ENDPOINT = 'glob:*/api/v1/query/related/user';
-const DATABASE_ENDPOINT = 'glob:*/api/v1/database/?*';
-
-fetchMock.get(SEARCH_ENDPOINT, []);
-fetchMock.get(USER_ENDPOINT, []);
-fetchMock.get(DATABASE_ENDPOINT, []);
-
-describe('QuerySearch', () => {
- const mockedProps = {
- displayLimit: 50,
- };
-
- it('is valid', () => {
- expect(
- React.isValidElement(
-
-
-
-
- ,
- ),
- ).toBe(true);
- });
-
- beforeEach(async () => {
- // You need this await function in order to change state in the app. In fact you need it everytime you re-render.
- await act(async () => {
- render(
-
-
-
-
- ,
- );
- });
- });
-
- it('should have three Selects', () => {
- expect(screen.getByText(/28 days ago/i)).toBeInTheDocument();
- expect(screen.getByText(/now/i)).toBeInTheDocument();
- expect(screen.getByText(/success/i)).toBeInTheDocument();
- });
-
- it('updates fromTime on user selects from time', () => {
- const role = screen.getByText(/28 days ago/i);
- fireEvent.keyDown(role, { key: 'ArrowDown', keyCode: 40 });
- userEvent.click(screen.getByText(/1 hour ago/i));
- expect(screen.getByText(/1 hour ago/i)).toBeInTheDocument();
- });
-
- it('updates toTime on user selects on time', () => {
- const role = screen.getByText(/now/i);
- fireEvent.keyDown(role, { key: 'ArrowDown', keyCode: 40 });
- userEvent.click(screen.getByText(/1 hour ago/i));
- expect(screen.getByText(/1 hour ago/i)).toBeInTheDocument();
- });
-
- it('updates status on user selects status', () => {
- const role = screen.getByText(/success/i);
- fireEvent.keyDown(role, { key: 'ArrowDown', keyCode: 40 });
- userEvent.click(screen.getByText(/failed/i));
- expect(screen.getByText(/failed/i)).toBeInTheDocument();
- });
-
- it('should have one input for searchText', () => {
- expect(
- screen.getByPlaceholderText(/Query search string/i),
- ).toBeInTheDocument();
- });
-
- it('updates search text on user inputs search text', () => {
- const search = screen.getByPlaceholderText(/Query search string/i);
- userEvent.type(search, 'text');
- expect(search.value).toBe('text');
- });
-
- it('should have one Button', () => {
- const button = screen.getAllByRole('button');
- expect(button.length).toEqual(1);
- });
-
- it('should call API when search button is pressed', async () => {
- fetchMock.resetHistory();
- const button = screen.getByRole('button');
- await act(async () => {
- userEvent.click(button);
- });
- expect(fetchMock.calls(SEARCH_ENDPOINT)).toHaveLength(1);
- });
-
- it('should call API when (only)enter key is pressed', async () => {
- fetchMock.resetHistory();
- const search = screen.getByPlaceholderText(/Query search string/i);
- await act(async () => {
- userEvent.type(search, 'a');
- });
- expect(fetchMock.calls(SEARCH_ENDPOINT)).toHaveLength(0);
- await act(async () => {
- userEvent.type(search, '{enter}');
- });
- expect(fetchMock.calls(SEARCH_ENDPOINT)).toHaveLength(1);
- });
-});
diff --git a/superset-frontend/src/SqlLab/components/QuerySearch/index.tsx b/superset-frontend/src/SqlLab/components/QuerySearch/index.tsx
deleted file mode 100644
index 3018ff1924586..0000000000000
--- a/superset-frontend/src/SqlLab/components/QuerySearch/index.tsx
+++ /dev/null
@@ -1,289 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-import React, { useState, useEffect } from 'react';
-import { useDispatch } from 'react-redux';
-
-import { setDatabases, addDangerToast } from 'src/SqlLab/actions/sqlLab';
-import Button from 'src/components/Button';
-import Select from 'src/components/DeprecatedSelect';
-import { styled, t, SupersetClient, QueryResponse } from '@superset-ui/core';
-import { debounce } from 'lodash';
-import Loading from 'src/components/Loading';
-import {
- now,
- epochTimeXHoursAgo,
- epochTimeXDaysAgo,
- epochTimeXYearsAgo,
-} from 'src/utils/dates';
-import AsyncSelect from 'src/components/AsyncSelect';
-import { STATUS_OPTIONS, TIME_OPTIONS } from 'src/SqlLab/constants';
-import QueryTable from '../QueryTable';
-
-interface QuerySearchProps {
- displayLimit: number;
-}
-
-interface UserMutatorProps {
- value: number;
- text: string;
-}
-
-interface DbMutatorProps {
- id: number;
- database_name: string;
-}
-
-const TableWrapper = styled.div`
- display: flex;
- flex-direction: column;
- flex: 1;
- height: 100%;
-`;
-
-const TableStyles = styled.div`
- table {
- background-color: ${({ theme }) => theme.colors.grayscale.light4};
- }
-
- .table > thead > tr > th {
- border-bottom: ${({ theme }) => theme.gridUnit / 2}px solid
- ${({ theme }) => theme.colors.grayscale.light2};
- background: ${({ theme }) => theme.colors.grayscale.light4};
- }
-`;
-
-const StyledTableStylesContainer = styled.div`
- overflow: auto;
-`;
-
-const QuerySearch = ({ displayLimit }: QuerySearchProps) => {
- const dispatch = useDispatch();
-
- const [databaseId, setDatabaseId] = useState('');
- const [userId, setUserId] = useState('');
- const [searchText, setSearchText] = useState('');
- const [from, setFrom] = useState('28 days ago');
- const [to, setTo] = useState('now');
- const [status, setStatus] = useState('success');
- const [queriesArray, setQueriesArray] = useState([]);
- const [queriesLoading, setQueriesLoading] = useState(true);
-
- const getTimeFromSelection = (selection: string) => {
- switch (selection) {
- case 'now':
- return now();
- case '1 hour ago':
- return epochTimeXHoursAgo(1);
- case '1 day ago':
- return epochTimeXDaysAgo(1);
- case '7 days ago':
- return epochTimeXDaysAgo(7);
- case '28 days ago':
- return epochTimeXDaysAgo(28);
- case '90 days ago':
- return epochTimeXDaysAgo(90);
- case '1 year ago':
- return epochTimeXYearsAgo(1);
- default:
- return null;
- }
- };
-
- const insertParams = (baseUrl: string, params: string[]) => {
- const validParams = params.filter(function (p) {
- return p !== '';
- });
- return `${baseUrl}?${validParams.join('&')}`;
- };
-
- const refreshQueries = async () => {
- setQueriesLoading(true);
- const params = [
- userId && `user_id=${userId}`,
- databaseId && `database_id=${databaseId}`,
- searchText && `search_text=${searchText}`,
- status && `status=${status}`,
- from && `from=${getTimeFromSelection(from)}`,
- to && `to=${getTimeFromSelection(to)}`,
- ];
-
- try {
- const response = await SupersetClient.get({
- endpoint: insertParams('/superset/search_queries', params),
- });
- const queries = Object.values(response.json);
- setQueriesArray(queries);
- } catch (err) {
- dispatch(addDangerToast(t('An error occurred when refreshing queries')));
- } finally {
- setQueriesLoading(false);
- }
- };
- useEffect(() => {
- refreshQueries();
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
-
- const onUserClicked = (userId: string) => {
- setUserId(userId);
- refreshQueries();
- };
-
- const onDbClicked = (dbId: string) => {
- setDatabaseId(dbId);
- refreshQueries();
- };
-
- const onKeyDown = (event: React.KeyboardEvent) => {
- if (event.keyCode === 13) {
- refreshQueries();
- }
- };
-
- const onChange = (e: React.ChangeEvent) => {
- e.persist();
- const handleChange = debounce(e => {
- setSearchText(e.target.value);
- }, 200);
- handleChange(e);
- };
-
- const userMutator = ({ result }: { result: UserMutatorProps[] }) =>
- result.map(({ value, text }: UserMutatorProps) => ({
- label: text,
- value,
- }));
-
- const dbMutator = ({ result }: { result: DbMutatorProps[] }) => {
- const options = result.map(({ id, database_name }: DbMutatorProps) => ({
- value: id,
- label: database_name,
- }));
- dispatch(setDatabases(result));
- if (result.length === 0) {
- dispatch(
- addDangerToast(t("It seems you don't have access to any database")),
- );
- }
- return options;
- };
-
- return (
-
-
-
- {queriesLoading ? (
-
- ) : (
-
-
-
- )}
-
-
- );
-};
-
-export default QuerySearch;
diff --git a/superset/translations/de/LC_MESSAGES/messages.po b/superset/translations/de/LC_MESSAGES/messages.po
index 8726ceae19a23..f922572973f26 100644
--- a/superset/translations/de/LC_MESSAGES/messages.po
+++ b/superset/translations/de/LC_MESSAGES/messages.po
@@ -1271,10 +1271,6 @@ msgstr "Ein Fehler ist aufgetreten"
msgid "An error occurred saving dataset"
msgstr "Beim Speichern des Datensatz ist ein Fehler aufgetreten"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr "Beim Aktualisieren von Abfragen ist ein Fehler aufgetreten"
-
#: superset/key_value/commands/exceptions.py:33
msgid "An error occurred while accessing the value."
msgstr "Beim Zugriff auf den Wert ist ein Fehler aufgetreten."
@@ -5929,18 +5925,6 @@ msgstr "Filtertyp"
msgid "Filter box"
msgstr "Filterkomponente"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr "Filtern nach Datenbank"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr "Nach Status filtern"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr "Filtern nach Benutzer*in"
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr "Filterkonfiguration"
@@ -6822,7 +6806,6 @@ msgstr "Problem 1000 - Die Datenquelle ist zu groß, um sie abzufragen."
msgid "Issue 1001 - The database is under an unusual load."
msgstr "Problem 1001 - Die Datenbank ist ungewöhnlich belastet."
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9495,10 +9478,6 @@ msgstr "Abfragename"
msgid "Query preview"
msgstr "Abfragen-Voransicht"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr "Abfragen suchen"
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
msgid "Query was stopped"
msgstr "Abfrage wurde angehalten"
@@ -10541,7 +10520,6 @@ msgid "Scoping"
msgstr "Auswahlverfahren"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -15498,10 +15476,6 @@ msgstr "Zoomstufe der Karte"
msgid "[Alert] %(label)s"
msgstr "[Alarm] %(label)s"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr "[Von]-"
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr ""
@@ -15521,10 +15495,6 @@ msgstr "[Fehlender Datensatz]"
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr "[Superset] Zugriff auf die Datenquelle %(name)s wurde gewährt"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr "[Bis]-"
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
msgid "[Untitled]"
msgstr "[Unbenannt]"
diff --git a/superset/translations/en/LC_MESSAGES/messages.po b/superset/translations/en/LC_MESSAGES/messages.po
index 4fb9477b0ff36..4e93822c649c6 100644
--- a/superset/translations/en/LC_MESSAGES/messages.po
+++ b/superset/translations/en/LC_MESSAGES/messages.po
@@ -1141,10 +1141,6 @@ msgstr ""
msgid "An error occurred saving dataset"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr ""
-
#: superset/key_value/commands/exceptions.py:33
msgid "An error occurred while accessing the value."
msgstr ""
@@ -5521,18 +5517,6 @@ msgstr ""
msgid "Filter box"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr ""
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr ""
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr ""
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr ""
@@ -6345,7 +6329,6 @@ msgstr ""
msgid "Issue 1001 - The database is under an unusual load."
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -8889,10 +8872,6 @@ msgstr ""
msgid "Query preview"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr ""
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
msgid "Query was stopped"
msgstr ""
@@ -9885,7 +9864,6 @@ msgid "Scoping"
msgstr ""
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -14280,10 +14258,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr ""
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr ""
@@ -14301,10 +14275,6 @@ msgstr ""
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr ""
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
msgid "[Untitled]"
msgstr ""
diff --git a/superset/translations/es/LC_MESSAGES/messages.po b/superset/translations/es/LC_MESSAGES/messages.po
index c5af1d4a4e504..05ce1f0f00ebc 100644
--- a/superset/translations/es/LC_MESSAGES/messages.po
+++ b/superset/translations/es/LC_MESSAGES/messages.po
@@ -1194,10 +1194,6 @@ msgstr "Se produjo un error"
msgid "An error occurred saving dataset"
msgstr "Se produjo un error al crear el origen de datos"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr ""
-
#: superset/key_value/commands/exceptions.py:33
#, fuzzy
msgid "An error occurred while accessing the value."
@@ -5795,18 +5791,6 @@ msgstr "Filtrar por usuario"
msgid "Filter box"
msgstr "Caja de filtro"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr "Filtrar por base de datos"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr "Filtrar por estado"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr "Filtrar por usuario"
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr "Configuración de filtros"
@@ -6672,7 +6656,6 @@ msgstr "Issue 1000 - La fuente de datos es demasiado grande para consultar."
msgid "Issue 1001 - The database is under an unusual load."
msgstr "Issue 1001 - La base de datos tiene una carga inusualmente elevada."
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9340,10 +9323,6 @@ msgstr "Nombre de la consulta"
msgid "Query preview"
msgstr "Previsualización de Datos"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr "Cadena de búsqueda de consulta"
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
#, fuzzy
msgid "Query was stopped"
@@ -10398,7 +10377,6 @@ msgid "Scoping"
msgstr ""
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -15081,10 +15059,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr "[De]-"
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr "Las columnas [Longitud] y [Latitud] deben estar presentes en [Group By]"
@@ -15103,10 +15077,6 @@ msgstr "Cambiar fuente"
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr "Se ha otorgado Acceso [Superset] a la fuente de datos %(name)"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr "[A]-"
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
#, fuzzy, python-format
msgid "[Untitled]"
diff --git a/superset/translations/fr/LC_MESSAGES/messages.po b/superset/translations/fr/LC_MESSAGES/messages.po
index 5472d7459c74a..ab997ba19425f 100644
--- a/superset/translations/fr/LC_MESSAGES/messages.po
+++ b/superset/translations/fr/LC_MESSAGES/messages.po
@@ -1242,10 +1242,6 @@ msgstr "Un erreur s'est produite"
msgid "An error occurred saving dataset"
msgstr "Une erreur s'est produite durant la sauvegarde du jeu de données"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr "Une erreur s'est produite en rafaîchissant les requêtes"
-
#: superset/key_value/commands/exceptions.py:33
#, fuzzy
msgid "An error occurred while accessing the value."
@@ -5932,18 +5928,6 @@ msgstr "Type du filtre"
msgid "Filter box"
msgstr "Boite de filtrage"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr "Filtrer par base de données"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr "Filtrer par statut"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr "Filtrer par utilisateur"
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr "Configuration du filtre"
@@ -6837,7 +6821,6 @@ msgstr "Source de données trop volumineuse pour être interrogée."
msgid "Issue 1001 - The database is under an unusual load."
msgstr "La base de données est soumise à une charge inhabituelle."
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9550,10 +9533,6 @@ msgstr "Nom de la requête"
msgid "Query preview"
msgstr "Prévisualisation de la requête"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr "Chaîne de recherche"
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
msgid "Query was stopped"
msgstr "La requête a été arrêtée"
@@ -10618,7 +10597,6 @@ msgid "Scoping"
msgstr "Portée"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -15466,10 +15444,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr "[Alert] %(label)s"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr "[Depuis]-"
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr ""
@@ -15489,10 +15463,6 @@ msgstr "[jeu de données manquant]"
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr "[Superset] Accès à la source de données %(name)s accordé"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr "[à]-"
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
msgid "[Untitled]"
msgstr "[Sans titre]"
diff --git a/superset/translations/it/LC_MESSAGES/messages.po b/superset/translations/it/LC_MESSAGES/messages.po
index 3873a4b5a8921..52f2214afdbc7 100644
--- a/superset/translations/it/LC_MESSAGES/messages.po
+++ b/superset/translations/it/LC_MESSAGES/messages.po
@@ -1169,10 +1169,6 @@ msgstr ""
msgid "An error occurred saving dataset"
msgstr "Errore nel creare il datasource"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr "Errore nel creare il datasource"
-
#: superset/key_value/commands/exceptions.py:33
#, fuzzy
msgid "An error occurred while accessing the value."
@@ -5672,18 +5668,6 @@ msgstr "Valore del filtro"
msgid "Filter box"
msgstr "Filtri"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr "Mostra database"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr "Valore del filtro"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr "Valore del filtro"
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr "Controlli del filtro"
@@ -6519,7 +6503,6 @@ msgstr ""
msgid "Issue 1001 - The database is under an unusual load."
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9140,10 +9123,6 @@ msgstr "Ricerca Query"
msgid "Query preview"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr "Ricerca Query"
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
#, fuzzy
msgid "Query was stopped"
@@ -10165,7 +10144,6 @@ msgid "Scoping"
msgstr ""
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -14708,10 +14686,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr ""
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr ""
@@ -14730,10 +14704,6 @@ msgstr "Seleziona una destinazione"
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr "[Superset] Accesso al datasource $(name) concesso"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr ""
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
#, fuzzy, python-format
msgid "[Untitled]"
diff --git a/superset/translations/ja/LC_MESSAGES/messages.po b/superset/translations/ja/LC_MESSAGES/messages.po
index d34ad5518cd6f..c4b66f8be422d 100644
--- a/superset/translations/ja/LC_MESSAGES/messages.po
+++ b/superset/translations/ja/LC_MESSAGES/messages.po
@@ -1162,10 +1162,6 @@ msgstr "エラーが発生しました"
msgid "An error occurred saving dataset"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr ""
-
#: superset/key_value/commands/exceptions.py:33
#, fuzzy
msgid "An error occurred while accessing the value."
@@ -5658,18 +5654,6 @@ msgstr "フィルタタイプ"
msgid "Filter box"
msgstr "フィルタボックス"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr ""
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr ""
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr ""
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr "フィルタ構成"
@@ -6500,7 +6484,6 @@ msgstr "Issue 1000 - データ ソースが大きすぎてクエリを実行で
msgid "Issue 1001 - The database is under an unusual load."
msgstr "Issue 1001 - データベースに異常な負荷がかかっています。"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9115,10 +9098,6 @@ msgstr "クエリ名"
msgid "Query preview"
msgstr "クエリプレビュー"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr ""
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
msgid "Query was stopped"
msgstr ""
@@ -10136,7 +10115,6 @@ msgid "Scoping"
msgstr "スコープ"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -14672,10 +14650,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr ""
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr ""
@@ -14693,10 +14667,6 @@ msgstr "[データセットが見つかりません]"
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr "[Superset] データソース %(name)s へのアクセスは許可されました"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr ""
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
msgid "[Untitled]"
msgstr ""
diff --git a/superset/translations/ko/LC_MESSAGES/messages.po b/superset/translations/ko/LC_MESSAGES/messages.po
index 5b4530e0399dc..de5a0a09f49b1 100644
--- a/superset/translations/ko/LC_MESSAGES/messages.po
+++ b/superset/translations/ko/LC_MESSAGES/messages.po
@@ -1160,10 +1160,6 @@ msgstr ""
msgid "An error occurred saving dataset"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr ""
-
#: superset/key_value/commands/exceptions.py:33
#, fuzzy, python-format
msgid "An error occurred while accessing the value."
@@ -5625,18 +5621,6 @@ msgstr ""
msgid "Filter box"
msgstr "필터"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr "데이터베이스 선택"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr "필터"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr "필터"
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr ""
@@ -6469,7 +6453,6 @@ msgstr "이슈 1000 - 데이터 소스가 쿼리하기에 너무 큽니다."
msgid "Issue 1001 - The database is under an unusual load."
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9052,10 +9035,6 @@ msgstr "Query 검색"
msgid "Query preview"
msgstr "데이터 미리보기"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr "Query 검색"
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
msgid "Query was stopped"
msgstr ""
@@ -10067,7 +10046,6 @@ msgid "Scoping"
msgstr ""
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -14557,10 +14535,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr ""
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr ""
@@ -14578,10 +14552,6 @@ msgstr ""
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr ""
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
msgid "[Untitled]"
msgstr ""
diff --git a/superset/translations/messages.pot b/superset/translations/messages.pot
index 98c91df9b68c6..ab78f415696a4 100644
--- a/superset/translations/messages.pot
+++ b/superset/translations/messages.pot
@@ -1147,10 +1147,6 @@ msgstr ""
msgid "An error occurred saving dataset"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr ""
-
#: superset/key_value/commands/exceptions.py:33
msgid "An error occurred while accessing the value."
msgstr ""
@@ -5526,18 +5522,6 @@ msgstr ""
msgid "Filter box"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr ""
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr ""
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr ""
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr ""
@@ -6351,7 +6335,6 @@ msgstr ""
msgid "Issue 1001 - The database is under an unusual load."
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -8896,10 +8879,6 @@ msgstr ""
msgid "Query preview"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr ""
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
msgid "Query was stopped"
msgstr ""
@@ -9892,7 +9871,6 @@ msgid "Scoping"
msgstr ""
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -14286,10 +14264,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr ""
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr ""
@@ -14307,10 +14281,6 @@ msgstr ""
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr ""
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
msgid "[Untitled]"
msgstr ""
diff --git a/superset/translations/nl/LC_MESSAGES/messages.po b/superset/translations/nl/LC_MESSAGES/messages.po
index 5db5e5ae4e1d9..8c54d1a9ec99f 100644
--- a/superset/translations/nl/LC_MESSAGES/messages.po
+++ b/superset/translations/nl/LC_MESSAGES/messages.po
@@ -2773,7 +2773,6 @@ msgid "Filter List"
msgstr "Filter Lijst"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:261
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:94
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -9926,39 +9925,10 @@ msgstr "SQL"
msgid "No query history yet..."
msgstr "Nog geen zoekgeschiedenis…"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:137
-msgid "An error occurred when refreshing queries"
-msgstr "Er is een fout opgetreden bij het vernieuwen van de queries"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:185
#: superset-frontend/src/components/DatabaseSelector/index.tsx:184
msgid "It seems you don't have access to any database"
msgstr "Het lijkt erop dat je geen toegang hebt tot een database"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:200
-msgid "Filter by user"
-msgstr "Filter op gebruiker"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:209
-msgid "Filter by database"
-msgstr "Filter op database"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:218
-msgid "Query search string"
-msgstr "Query zoek string"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:224
-msgid "[From]-"
-msgstr "[From]-"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:236
-msgid "[To]-"
-msgstr "[To]-"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:245
-msgid "Filter by status"
-msgstr "Filter op status"
-
#: superset-frontend/src/SqlLab/components/QueryTable/index.tsx:117
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:54
#: superset-frontend/src/views/CRUD/data/query/QueryList.tsx:142
diff --git a/superset/translations/pt/LC_MESSAGES/message.po b/superset/translations/pt/LC_MESSAGES/message.po
index b944475c5591c..e06a21ce4f42f 100644
--- a/superset/translations/pt/LC_MESSAGES/message.po
+++ b/superset/translations/pt/LC_MESSAGES/message.po
@@ -2033,7 +2033,6 @@ msgstr "Nenhum registo encontrado"
msgid "Filter List"
msgstr "Filtros"
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:296
#: superset-frontend/src/explore/components/DataTableControl.tsx:73
#: superset-frontend/src/explore/components/controls/VizTypeControl.jsx:226
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:398
@@ -3599,40 +3598,11 @@ msgstr "SQL"
msgid "No query history yet..."
msgstr "Ainda não há histórico de queries ..."
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:193
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar.jsx:101
#: superset-frontend/src/components/DatabaseSelector.tsx:151
msgid "It seems you don't have access to any database"
msgstr "Parece que não tem acesso a nenhuma base de dados"
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:220
-msgid "An error occurred when refreshing queries"
-msgstr "Ocorreu um erro ao criar a origem dos dados"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:235
-msgid "Filter by user"
-msgstr "Valor de filtro"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:244
-msgid "Filter by database"
-msgstr "Selecione uma base de dados"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:253
-msgid "Query search string"
-msgstr "Pesquisa de Query"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:259
-msgid "[From]-"
-msgstr "[A partir de]-"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:271
-msgid "[To]-"
-msgstr "[Para]-"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch.jsx:280
-msgid "Filter by status"
-msgstr "Valor de filtro"
-
#: superset-frontend/src/SqlLab/components/QueryTable.jsx:128
#: superset-frontend/src/dashboard/components/menu/MarkdownModeDropdown.jsx:34
#: superset-frontend/src/explore/components/controls/TextAreaControl.jsx:134
diff --git a/superset/translations/pt_BR/LC_MESSAGES/messages.po b/superset/translations/pt_BR/LC_MESSAGES/messages.po
index 2441b2c768325..b6a2c945f1f85 100644
--- a/superset/translations/pt_BR/LC_MESSAGES/messages.po
+++ b/superset/translations/pt_BR/LC_MESSAGES/messages.po
@@ -1238,10 +1238,6 @@ msgstr "Ocorreu um erro"
msgid "An error occurred saving dataset"
msgstr "Ocorreu um erro ao salvar o conjunto de dados"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr "Ocorreu um erro ao atualizar as consultas"
-
#: superset/key_value/commands/exceptions.py:33
#, fuzzy
msgid "An error occurred while accessing the value."
@@ -5928,18 +5924,6 @@ msgstr "Filtrar por usuário"
msgid "Filter box"
msgstr "Caixa de filtro"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr "Filtrar por banco de dados"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr "Filtrar por status"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr "Filtrar por usuário"
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr "Configuração do filtro"
@@ -6830,7 +6814,6 @@ msgstr "Problema 1000 - A fonte de dados é muito grande para consulta."
msgid "Issue 1001 - The database is under an unusual load."
msgstr "Problema 1001 - O banco de dados está sob carga atípica."
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9533,10 +9516,6 @@ msgstr "Nome da consulta"
msgid "Query preview"
msgstr "Pré-visualização da consulta"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr "Texto da consulta de busca"
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
#, fuzzy
msgid "Query was stopped"
@@ -10596,7 +10575,6 @@ msgid "Scoping"
msgstr "Escopo"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -15404,10 +15382,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr "[Alert] %(label)s"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr "[A partir de]-"
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr "[Longitude] e as colunas [Latitude] devem estar presentes em [Group By]"
@@ -15426,10 +15400,6 @@ msgstr "Mudar conjunto de dados"
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr "[Superset] O acesso à fonte de dados %(name) s foi concedido"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr "[Para]-"
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
#, fuzzy, python-format
msgid "[Untitled]"
diff --git a/superset/translations/ru/LC_MESSAGES/messages.po b/superset/translations/ru/LC_MESSAGES/messages.po
index 8cfde5eed55ce..cda726cd5725f 100644
--- a/superset/translations/ru/LC_MESSAGES/messages.po
+++ b/superset/translations/ru/LC_MESSAGES/messages.po
@@ -1211,10 +1211,6 @@ msgstr "Произошла ошибка"
msgid "An error occurred saving dataset"
msgstr "Произошла ошибка при создании источника данных"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr "Произошла ошибка при создании источника данных"
-
#: superset/key_value/commands/exceptions.py:33
#, fuzzy
msgid "An error occurred while accessing the value."
@@ -5860,18 +5856,6 @@ msgstr "Значение фильтра"
msgid "Filter box"
msgstr "Фильтр"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr "Выберите базу данных"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr "Значение фильтра"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr "Значение фильтра"
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr "Фильтруемые срезы"
@@ -6753,7 +6737,6 @@ msgstr "Проблема 1000 - Источник данных слишком в
msgid "Issue 1001 - The database is under an unusual load."
msgstr "Проблема 1001 - Необычная загрузка базы данных."
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9438,10 +9421,6 @@ msgstr "Имя запроса"
msgid "Query preview"
msgstr "Предпросмотр данных"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr "Поиск запросов"
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
#, fuzzy
msgid "Query was stopped"
@@ -10488,7 +10467,6 @@ msgid "Scoping"
msgstr ""
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -15217,10 +15195,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr "[Оповещение] %(label)s"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr "[С]-"
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr "Столбцы [Долгота] и [Широта] должны присутствовать в поле [Группировка]"
@@ -15239,10 +15213,6 @@ msgstr "Выберите источник данных"
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr "Доступ к базе данных предоставлен для пользователя — %(name)s"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr "[До]-"
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
#, fuzzy, python-format
msgid "[Untitled]"
diff --git a/superset/translations/sk/LC_MESSAGES/messages.po b/superset/translations/sk/LC_MESSAGES/messages.po
index 6429587f83a59..68ac5ffb1c97a 100644
--- a/superset/translations/sk/LC_MESSAGES/messages.po
+++ b/superset/translations/sk/LC_MESSAGES/messages.po
@@ -1141,10 +1141,6 @@ msgstr ""
msgid "An error occurred saving dataset"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr ""
-
#: superset/key_value/commands/exceptions.py:33
msgid "An error occurred while accessing the value."
msgstr ""
@@ -5538,18 +5534,6 @@ msgstr ""
msgid "Filter box"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr ""
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr ""
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr ""
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr ""
@@ -6362,7 +6346,6 @@ msgstr ""
msgid "Issue 1001 - The database is under an unusual load."
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -8906,10 +8889,6 @@ msgstr ""
msgid "Query preview"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr ""
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
msgid "Query was stopped"
msgstr ""
@@ -9906,7 +9885,6 @@ msgid "Scoping"
msgstr ""
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -14304,10 +14282,6 @@ msgstr ""
msgid "[Alert] %(label)s"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr ""
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr ""
@@ -14325,10 +14299,6 @@ msgstr ""
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr ""
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr ""
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
msgid "[Untitled]"
msgstr ""
diff --git a/superset/translations/sl/LC_MESSAGES/messages.po b/superset/translations/sl/LC_MESSAGES/messages.po
index 8f655c74d817a..52c0a4d1d9750 100644
--- a/superset/translations/sl/LC_MESSAGES/messages.po
+++ b/superset/translations/sl/LC_MESSAGES/messages.po
@@ -2675,7 +2675,6 @@ msgid "Filter List"
msgstr "Seznam filtrov"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:122
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:260
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:107
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:453
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:304
@@ -10161,38 +10160,6 @@ msgstr "SQL"
msgid "Run a query to display query history"
msgstr "Za prikaz zgodovine poizvedb zaženite poizvedbo"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:136
-msgid "An error occurred when refreshing queries"
-msgstr "Pri osveževanju poizvedb je prišlo do napake"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:184
-msgid "It seems you don't have access to any database"
-msgstr "Zdi se, da nimate dostopa do nobene podatkovne baz"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:199
-msgid "Filter by user"
-msgstr "Filtriraj po uporabniku"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:208
-msgid "Filter by database"
-msgstr "Filtriraj po podatkovni bazi"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:217
-msgid "Query search string"
-msgstr "Iskalni niz za poizvedbo"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:223
-msgid "[From]-"
-msgstr "[Od]-"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:235
-msgid "[To]-"
-msgstr "[Do]-"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:244
-msgid "Filter by status"
-msgstr "Filtriraj po statusu"
-
#: superset-frontend/src/SqlLab/components/QueryTable/index.tsx:121
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:53
#: superset-frontend/src/views/CRUD/data/query/QueryList.tsx:142
diff --git a/superset/translations/zh/LC_MESSAGES/messages.po b/superset/translations/zh/LC_MESSAGES/messages.po
index ea3762b1c6c91..971f7cfcb2fe4 100644
--- a/superset/translations/zh/LC_MESSAGES/messages.po
+++ b/superset/translations/zh/LC_MESSAGES/messages.po
@@ -1193,10 +1193,6 @@ msgstr "发生了一个错误"
msgid "An error occurred saving dataset"
msgstr "保存数据集时发生错误"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:132
-msgid "An error occurred when refreshing queries"
-msgstr "创建数据源时发生错误"
-
#: superset/key_value/commands/exceptions.py:33
#, fuzzy
msgid "An error occurred while accessing the value."
@@ -5740,18 +5736,6 @@ msgstr "过滤用户"
msgid "Filter box"
msgstr "过滤器"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:204
-msgid "Filter by database"
-msgstr "过滤数据库"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:240
-msgid "Filter by status"
-msgstr "过滤状态"
-
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:195
-msgid "Filter by user"
-msgstr "过滤用户"
-
#: superset-frontend/src/explore/components/controls/FilterBoxItemControl/index.jsx:282
msgid "Filter configuration"
msgstr "过滤配置"
@@ -6620,7 +6604,6 @@ msgstr "Issue 1000 - 数据源太大,无法进行查询。"
msgid "Issue 1001 - The database is under an unusual load."
msgstr "Issue 1001 - 数据库负载异常。"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:180
#: superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.jsx:125
#: superset-frontend/src/components/DatabaseSelector/index.tsx:183
msgid "It seems you don't have access to any database"
@@ -9256,10 +9239,6 @@ msgstr "查询名称"
msgid "Query preview"
msgstr "查询预览"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:213
-msgid "Query search string"
-msgstr "查询搜索字符串"
-
#: superset-frontend/src/SqlLab/components/ResultSet/index.tsx:682
#, fuzzy
msgid "Query was stopped"
@@ -10290,7 +10269,6 @@ msgid "Scoping"
msgstr "范围"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:121
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:256
#: superset-frontend/src/explore/components/DataTableControl/index.tsx:77
#: superset-frontend/src/views/CRUD/alert/AlertList.tsx:419
#: superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayersList.tsx:305
@@ -14908,10 +14886,6 @@ msgstr "地图缩放等级"
msgid "[Alert] %(label)s"
msgstr "[警报] %(label)s"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:219
-msgid "[From]-"
-msgstr "[从]-"
-
#: superset/viz.py:2349
msgid "[Longitude] and [Latitude] columns must be present in [Group By]"
msgstr "[经度] 和 [纬度] 的选择项必须出现在 [Group By]"
@@ -14930,10 +14904,6 @@ msgstr "丢失数据集"
msgid "[Superset] Access to the datasource %(name)s was granted"
msgstr "[Superset] 允许访问数据源 %(name)s"
-#: superset-frontend/src/SqlLab/components/QuerySearch/index.tsx:231
-msgid "[To]-"
-msgstr "[至]-"
-
#: superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx:94
#, fuzzy, python-format
msgid "[Untitled]"
diff --git a/superset/views/core.py b/superset/views/core.py
index 534f8f667d707..c5ef7ad1cb8c5 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2598,6 +2598,7 @@ def queries_exec(last_updated_ms: Union[float, int]) -> FlaskResponse:
@has_access
@event_logger.log_this
@expose("/search_queries")
+ @deprecated()
def search_queries(self) -> FlaskResponse: # pylint: disable=no-self-use
"""
Search for previously run sqllab queries. Used for Sqllab Query Search