The Wayback Machine - https://web.archive.org/web/20201121025134/https://github.com/grafana/grafana/pull/28321
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

TestData: Remove useEffect that triggeres query on component load #28321

Merged
merged 5 commits into from Oct 20, 2020

Conversation

@torkelo
Copy link
Member

@torkelo torkelo commented Oct 16, 2020

Fixes so that testdata does not issue queries when the query editor is loaded, and fixes so the scenario api is not called for every query

@torkelo torkelo requested a review from grafana/grafana-frontend-platform as a code owner Oct 16, 2020
@torkelo torkelo requested review from jackw and kaydelaney and removed request for grafana/grafana-frontend-platform Oct 16, 2020
@torkelo torkelo force-pushed the fix-testdata-issue branch from 4cba7da to 64b08c3 Oct 16, 2020
Copy link
Member

@hugohaggmark hugohaggmark left a comment

LGTM!

useEffect(() => {
onUpdate(query);
}, []);

This comment has been minimized.

@Clarity-89

Clarity-89 Oct 19, 2020
Contributor

Hmm, strange, I remember the graphs weren't rendered properly on page reload after saving dashboard, so that's why I added this call on mount, but I just checked it again and it works without it too.

@torkelo torkelo merged commit d3def11 into master Oct 20, 2020
6 checks passed
6 checks passed
Analyze (javascript)
Details
Analyze (go)
Details
Analyze (python)
Details
CodeQL No new alerts
Details
continuous-integration/drone/pr Build is passing
Details
license/cla Contributor License Agreement is signed.
Details
@torkelo torkelo deleted the fix-testdata-issue branch Oct 20, 2020
aknuds1 added a commit that referenced this pull request Oct 21, 2020
…8321)

* TestData: Remove useEffect that triggeres query on component load

* Updated

* Update e2e spec
ryantxu added a commit that referenced this pull request Nov 18, 2020
…8321)

* TestData: Remove useEffect that triggeres query on component load

* Updated

* Update e2e spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.