From 24f0fdf9c1a7a912d1b9f3bcf7e3c39c18a34bce Mon Sep 17 00:00:00 2001 From: Hunter Trujillo Date: Wed, 6 Sep 2017 11:50:02 -0600 Subject: [PATCH] Remove DE QC query string param code for this PR. --- ui/src/shared/middleware/queryStringConfig.js | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/ui/src/shared/middleware/queryStringConfig.js b/ui/src/shared/middleware/queryStringConfig.js index 10f755fd47..bdd3d464de 100644 --- a/ui/src/shared/middleware/queryStringConfig.js +++ b/ui/src/shared/middleware/queryStringConfig.js @@ -15,34 +15,6 @@ export const queryStringConfig = store => next => action => { next(enablePresentationMode()) } - // Data Explorer Query Config - if (qs.query) { - const query = decodeURIComponent(qs.query) - const state = store.getState() - const defaultSource = state.sources.find(source => source.default) - let id = window.location.hash // Stored on hash to prevent page reload - - if (defaultSource && !id) { - // Find query by raw text - for (const qid in state.dataExplorerQueryConfigs) { - const qc = state.dataExplorerQueryConfigs[qid] - if (qc && qc.rawText === query) { - id = qid - } - } - - id = id || uuid.v4() - - qs.queryID = id - window.location.hash = id - } - - if (defaultSource && !state.dataExplorerQueryConfigs[id]) { - const url = defaultSource.links.queries - editRawTextAsync(url, id, query)(next) - } - } - // Select Template Variable By Name const dashboardRegex = /\/sources\/(\d+?)\/dashboards\/(\d+?)/ if (dashboardRegex.test(window.location.pathname)) {