Remove DE QC query string param code for this PR.

pull/10616/head
Hunter Trujillo 2017-09-06 11:50:02 -06:00
parent 8fb6910447
commit 24f0fdf9c1
1 changed files with 0 additions and 28 deletions

View File

@ -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)) {