Skip to content
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

Use getDefaultQuery method to set default query #191

Closed
sunker opened this issue Nov 4, 2022 · 1 comment
Closed

Use getDefaultQuery method to set default query #191

sunker opened this issue Nov 4, 2022 · 1 comment
Labels

Comments

@sunker
Copy link
Collaborator

sunker commented Nov 4, 2022

Instead of calling onChange to set default query for new queries, we should use the new getDefaultQuery method defined in the data source api. We can use the same default query as today.

export const defaultQuery: Partial<RedshiftQuery> = {
rawSQL: '',
format: FormatOptions.TimeSeries,
fillMode: { mode: FillValueOptions.Previous },
};

Part of https://github.com/grafana/cloud-data-sources/issues/79

@sunker sunker self-assigned this Nov 4, 2022
@idastambuk
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants