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

Migration: TestData Query Editor #27997

Merged
merged 45 commits into from Oct 14, 2020
Merged

Migration: TestData Query Editor #27997

merged 45 commits into from Oct 14, 2020

Conversation

@Clarity-89
Copy link
Contributor

@Clarity-89 Clarity-89 commented Oct 2, 2020

What this PR does / why we need it:

  • Migrate TestData Query Editor to React
  • Use new Inline form components
  • Minor UI updates

Screenshots:
Screenshot 2020-10-02 at 13 53 03
Screenshot 2020-10-02 at 13 32 22
Screenshot 2020-10-02 at 13 32 44

(Wide screen)
Screenshot 2020-10-02 at 13 33 13

Which issue(s) this PR fixes:

Fixes #27526

Special notes for your reviewer:

There is an error in console when adding new point via Manual Entry, which happens because the datapoints value is null. Couldn't get to the bottom of it. It also happens in production, with the old editor.
Screenshot 2020-10-02 at 13 30 32

@Clarity-89 Clarity-89 added this to the 7.3 milestone Oct 2, 2020
@Clarity-89 Clarity-89 requested a review from torkelo Oct 2, 2020
@Clarity-89 Clarity-89 requested a review from grafana/grafana-frontend-platform as a code owner Oct 2, 2020
@Clarity-89 Clarity-89 self-assigned this Oct 2, 2020
@Clarity-89 Clarity-89 requested review from kaydelaney, peterholmberg, dprokop and hugohaggmark and removed request for grafana/grafana-frontend-platform Oct 2, 2020
@torkelo
Copy link
Member

@torkelo torkelo commented Oct 3, 2020

Awesome job! Will take if for test spin later

@Clarity-89
Copy link
Contributor Author

@Clarity-89 Clarity-89 commented Oct 5, 2020

Noticed that a few e2e tests got broken because of the new Select, which cannot be selected by cypress. @hugohaggmark do you know if we have any way to test our Select in e2e tests?

@hugohaggmark
Copy link
Member

@hugohaggmark hugohaggmark commented Oct 5, 2020

Noticed that a few e2e tests got broken because of the new Select, which cannot be selected by cypress. @hugohaggmark do you know if we have any way to test our Select in e2e tests?

I think I've added some aria-label for the Select, check where this is used by e2e

@Clarity-89
Copy link
Contributor Author

@Clarity-89 Clarity-89 commented Oct 5, 2020

Noticed that a few e2e tests got broken because of the new Select, which cannot be selected by cypress. @hugohaggmark do you know if we have any way to test our Select in e2e tests?

I think I've added some aria-label for the Select, check where this is used by e2e

Thank you! I'll check it out.

Copy link
Member

@torkelo torkelo left a comment

Looks good, awesome job!

@Clarity-89 Clarity-89 merged commit 3225b11 into master Oct 14, 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
@Clarity-89 Clarity-89 deleted the migraton/test-data-q-editor branch Oct 14, 2020
ryantxu added a commit that referenced this pull request Nov 18, 2020
* Use new editor

* Add basic fields

* Add labels

* Add ids

* Add ManualEntryEditor

* Use tooltip prop

* Switch to inline labels

* Fix inline label tooltip position

* Allow resetting max-width

* Replace form inputs

* Add random walk editor

* separate editors

* Add logs and endpoints fields

* Add PredictablePulseEditor

* Add CSVWaveEditor

* Add grow prop

* Add default query

* Fix types

* Fix manual editor

* Fix type issues

* Handle scenario change

* Sort scenarios by label

* Add ManualEditor test

* Fix label height

* test manual editor

* Update test

* Setup QueryEditor tests

* Fix selected value

* Connect CSVWaveEditor

* Convert stream data to numbers

* Fix random walk editor

* Cleanup

* Convert scenarios to ts

* Remove extra icon styles

* Minor tweaks

* Update e2e tests

* Remove useEffect

* Add missing aria-labels

* Use new button components
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.

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