-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add customizable adhoc SQL query for select adhoc values #655
Merged
Changes from 16 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3e0a716
Add adhoc query editor
lunaticusgreen ef8913c
Merge branch 'master' of github.com:Altinity/clickhouse-grafana into …
Slach fd885f3
update package-lock.json
Slach 46d7ad2
Merge branch 'master' into issue-330
Slach a3c0f20
fix type error
lunaticusgreen 1b4122f
Merge branch 'master' of github.com:Altinity/clickhouse-grafana into …
Slach df641f4
Fix query error
lunaticusgreen c734565
Merge branch 'master' into issue-330
Slach bdacdd1
Fix adhoc filters reset error
lunaticusgreen a10941e
Merge branch 'master' of github.com:Altinity/clickhouse-grafana into …
Slach 1a87670
Remove not duplicated adhoc dependencies
lunaticusgreen a9aa533
Merge branch 'issue-330' of github.com:Altinity/clickhouse-grafana in…
Slach 0a5182c
add float variables
lunaticusgreen ef8513c
fix datasource.jest.ts
Slach f932258
Merge branch 'master' of github.com:Altinity/clickhouse-grafana into …
Slach d81f229
replace getadhocvariables with getadhocfilters
lunaticusgreen 2ec498d
replace getadhocvariables with getadhocfilters
lunaticusgreen eca8372
Improving adhoc tests.
antip00 9935b85
Merge branch 'master' into issue-330-e2e
antip00 906e4a0
Merge branch 'master' of github.com:Altinity/clickhouse-grafana into …
Slach 7ea70ac
Updating adhoc tests.
antip00 a527b2e
Merge branch 'issue-330' into issue-330-e2e
antip00 ff4d475
Merge branch 'master' of github.com:Altinity/clickhouse-grafana into …
Slach 6ed91d5
Add check operator
lunaticusgreen 2fc1337
Merge branch 'issue-330' into issue-330-e2e
antip00 2d7fedc
update go.mod to trigger tests
Slach 099a9fb
add synthetic key for adhoc filters
lunaticusgreen bf731b2
Merge branch 'issue-330' of github.com:Altinity/clickhouse-grafana in…
Slach c0b08e0
Merge pull request #666 from Altinity/issue-330-e2e
Slach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const COMPRESSION_TYPE_OPTIONS = [ | ||
{ label: 'gzip', value: 'gzip' }, | ||
{ label: 'br', value: 'br' }, | ||
{ label: 'deflate', value: 'deflate' }, | ||
{ label: 'zstd', value: 'zstd' }, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
src/views/QueryEditor/components/QueryHeader/QueryHeader.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import {SelectableValue} from "@grafana/data"; | ||
import {EditorMode} from "../../../../types/types"; | ||
import {E2ESelectors} from "@grafana/e2e-selectors"; | ||
|
||
const Components = { | ||
QueryEditor: { | ||
EditorMode: { | ||
options: { | ||
QuerySettings: 'Query Settings', | ||
SQLEditor: 'SQL Editor', | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
const selectors: { components: E2ESelectors<typeof Components> } = { | ||
components: Components, | ||
}; | ||
|
||
export const QueryHeaderTabs: Array<SelectableValue<EditorMode>> = [ | ||
{ label: selectors.components.QueryEditor.EditorMode.options.QuerySettings, value: EditorMode.Builder }, | ||
{ label: selectors.components.QueryEditor.EditorMode.options.SQLEditor, value: EditorMode.SQL }, | ||
]; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong fix
we don't have default data source name
remove
clickhouse
here