Jack Westbrook
24cfab6c7f
Chore: bump rollup across all packages ( #29486 )
...
* chore(packages): bump all rollup dependencies
* chore: refresh yarn.lock
* build(rollup): remove namedExports from config
* chore(packages): downgrade rollup so grafana-ui builds
2021-01-12 16:51:09 +01:00
kay delaney
56db402d0f
Chore: Upgrade typescript to 4.1 ( #29493 )
...
* Chore: Upgrade typescript to 4.1
2020-12-03 15:05:59 +00:00
Uchechukwu Obasi
53cd59a5a5
Datasources: fixed long error message overflowing container ( #29440 )
...
* Fixed: error message overflow container
Signed-off-by: Uchechukwu Obasi <obasiuche62@gmail.com>
* used min-width property for better styling
Signed-off-by: Uchechukwu Obasi <obasiuche62@gmail.com>
* Switched to Alert component
* Fixed passing aria-label to Alert component
* Fixed e2e test (I hope)
* another attempt to fix e2e
* Fixed display name
Co-authored-by: Uchechukwu Obasi <obate@Uchechukwus-MacBook-Pro.local>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-12-02 09:30:28 +01:00
Arve Knudsen
febdad4da2
Chore: Update package.json ( #28291 )
...
* Chore: Update what's new and release notes URL in package.json
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Chore: Update version
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-15 14:41:25 +02:00
Steven Vachon
1c865b5bcb
@grafana/e2e: timing improvements ( #27861 )
2020-10-05 11:19:53 -07:00
Hugo Häggmark
845bc7c444
Variables: Adds loading state and indicators ( #27917 )
...
* Refactor: Replaces initLock with state machine
* Refactor: removes some states for now
* Refactor: adds loading state in OptionsPicker
* Refactor: major refactor of load state
* Refactor: fixes updating graph in parallell
* Refactor: moves error handling to updateOptions
* Refactor: fixes the last cases
* Tests: disables variable e2e again
* Chore: removes nova config
* Refactor: small changes when going through the code again
* Refactor: fixes typings
* Refactor: changes after PR comments
* Refactor: split up onTimeRangeUpdated and fixed some error handling
* Tests: removes unused func
* Tests: fixes typing
2020-10-02 07:02:06 +02:00
Steven Vachon
f38e431632
@grafana/e2e: selectOption flow now accepts a config object ( #27827 )
2020-09-25 16:10:55 -04:00
kay delaney
d322417217
Chore: Upgrade typescript and related packages ( #27316 )
...
* Chore: Upgrade typescript and related packages
Closes #27115
* Apply suggestions from code review
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* fixes some tests
* Fix failing tests
* Apply suggestions from code review
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-09-25 15:48:41 +01:00
Marcus Andersson
7feaddea8f
Chore: adding platform independent typings for e2e tests. ( #27768 )
...
* added typings that are platform independent in the tests.
* fixing nits.
2020-09-24 18:47:25 +02:00
Steven Vachon
abb015bad6
@grafana/e2e: flaky chart data workaround ( #27687 )
...
Don't expect initial chart data when creating a panel that hasn't yet populated its query editor
2020-09-21 19:40:23 -04:00
Steven Vachon
ed4ef0862d
@grafana/e2e: annotation improvements ( #27582 )
...
* Removed Datadog-specific fields from config for annotation creation
* Added a custom form config option for annotation creation
* Added regex support to `selectOption`
2020-09-15 15:10:56 -04:00
Steven Vachon
d9320e37f4
@grafana/e2e: avoid query data flakiness ( #27511 )
2020-09-10 11:40:44 -04:00
Marcus Andersson
d75758071b
Chore: bumped to next version 7.3.0-pre ( #27476 )
...
* bumped version to the next minor.
* bumped packages version to the next minor.
2020-09-09 15:43:37 +02:00
Steven Vachon
6c5a0421fe
@grafana/e2e: improve types ( #27348 )
2020-09-02 20:37:23 -04:00
Steven Vachon
1a69bcfeff
@grafana/e2e: improvements ( #27170 )
...
* Minor changes
* Changed default panel screenshot name
* Removed default visualization type from `addPanel` config
... which, unless defined, will use the app's default (graph). This is the new approach for plugins which supports annotations.
* Select timezone from dashboard toolbar instead of settings
... and refactored `setDashboardTimeRange` for reuse on other pages via a now more generalized `setTimeRange`
* Added optional annotations to `addDashboard` config
* Added `explore` flow
… which reuses `configurePanel` which is very similar
2020-08-28 17:03:22 -04:00
Simon Podlipsky
7121d1e63f
Chore: Use uuid v4 as an identifier instead of Date.now() ( #27178 )
2020-08-26 11:38:39 +02:00
Alex Khomenko
f5ee1f93cd
Grafana-UI: Alert components tweaks ( #27128 )
...
* Grafana-UI: Add Alert docs and story
* Grafana-UI: Move Alert styles to emotion
* Grafana-UI: Tweak docs
* Grafana-UI: Update test
* Grafana-UI: Add outline to custom content
* Grafana-UI: Remove class name
* Grafana-UI: Remove _Alert.scss
* Grafana-UI: Add e2e Alert selector
* Grafana-UI: Use @deprecated
* Grafana-UI: Remove circular reference
* Grafana-UI: Final tweaks
2020-08-25 11:06:58 +03:00
Ryan McKinley
0fb7ee05d1
Chore: Minor cleanup ( #27112 )
2020-08-20 14:37:49 -07:00
Steven Vachon
04249ae7ad
@grafana/e2e: improvements ( #26939 )
...
* Minor changes
* Added an `editPanel` flow function
... and moved the internals of `addPanel` to a common function for use by both
* Added optional template variables to `addDashboard` config
* Use latest Cypress 4.x version
* Updated lockfile
2020-08-20 13:15:25 -04:00
Zoltán Bedi
ae30482465
Chore: MEGA - Make Eslint Great Again 💅 ( #26094 )
...
* Fix lint error in types.ts
* Bump eslint and its deps to latest
* Add eslintignore and remove not needed eslintrcs
* Change webpack configs eslint config
* Update package.jsons and removed unused eslintrc files
* Chore yarn lint --fix 💅
* Add devenv to eslintignore
* Remove eslint disable comments for rules that are not used
* Remaining eslint fixes 💅
* Bump grafana/eslint-config 💥
* Modify package.json
No need for duplicate checks.
* Modify eslintignore to ignore data and dist folders
* Revert removing .eslintrc to make sure not to use certain packages
* Modify package.json to remove not needed command
* Use gitignore for ignoring paths
2020-08-11 17:52:44 +02:00
Steven Vachon
19e9e01178
@grafana/e2e: improvements ( #26838 )
...
* Minor changes
* Only expect login “change password” notification for default passwords
* Optionally populate basic auth when adding a datasource
* Optionally match screenshot when adding a panel
2020-08-07 15:38:44 -04:00
Arve Knudsen
d28d495235
Chore: Enable PR testing in Drone ( #26189 )
...
* Add Drone configuration
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add more steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add more steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Build front-end before testing it
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Upgrade grafana/build-container
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add packaging step
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Trigger on push
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove some steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Enable steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Install Dockerize
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use node image for test-frontend
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Increase number of test workers
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Make plugin installation depend on frontend tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Make integration tests depend on frontend tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use grafana/build-container also for front-end tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Upgrade dependencies in order to fix front-end tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Depend on es-check
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Dont' depend on tests before building front-end
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add more steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix packaging
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Simplify
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Try to build images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix e2e tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Install netcat
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Include golangci-lint with grafana/build-container
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Build storybook and docs website
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix e2e tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use build image with root user
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Drop CircleCI dependencies
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix e2e tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix e2e under Drone
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Execute e2e server separately
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use own plugin for building Docker images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use Starlark to configure Drone
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add enterprise steps to pipeline
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add more enterprise steps to pipeline
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Maintain Yarn cache
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Build enterprise Docker images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Build Ubuntu Docker images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Refactor
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add Postgres integration test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add MySQL integration test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix integration tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Parameterize integration test DB connections
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Categorize integration tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use grabpl integration-tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove unintended change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Drone: Disable Ubuntu Docker images for PR pipeline
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Regenerate yarn.lock
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Upgrade grabpl
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Restore Yarn cache before installing in grafana-enterprise
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use separate pipelines for OSS and enterprise
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Let OSS builds depend on tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Restore Go cache before building back-end
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Reduce number of variants built for PRs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix building of Docker images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Drone: Simplify logic
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Drone: Use Starlark
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Drone: Fix syntax error
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Convert .drone.star to YAML
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Upgrade AWS Go SDK
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Drone: Fix Go linting
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Undo irrelevant changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Revert "Undo irrelevant changes"
This reverts commit 5152f65972
.
* Undo irrelevant changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* e2e: Support Circle
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove unused script
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* TypeScript fixes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* TypeScript fixes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove unused script
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* More Drone support
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove unused script
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix build on Circle
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove TODO comment
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-10 16:09:21 +02:00
Steven Vachon
634d8d60d6
@grafana/e2e: close options panel before interacting with the query form ( #26036 )
...
... it's logically better, but the real reason is to appease Cypress which was cause a consistent request error for a single plugin (datadog-datasource). An error which could not be reproduced manually.
2020-07-03 10:22:56 +02:00
Marcus Andersson
700ab8f3d8
Chore: bumped version to next minor. ( #25971 )
2020-07-01 13:26:36 +02:00
Steven Vachon
75a714aa51
Added options to customize chart data listening ( #25918 )
2020-06-30 09:45:36 -04:00
Steven Vachon
49e629b278
@grafana/e2e: improvements ( #25908 )
...
* Set time range when creating a dashboard
* Optionally set time range when opening a dashboard
* Default time range to 6 hours instead of 1 hour
* Minor changes
2020-06-29 16:04:38 -04:00
Steven Vachon
fb3bec058a
@grafana/e2e: improvements ( #25708 )
...
* Set time range when opening a dashboard
* Set UTC timezone when creating a dashboard
* Added flow for selecting options in custom select fields
* Fix flaky test
2020-06-26 13:33:05 -04:00
Steven Vachon
10715a1c79
@grafana/e2e: added tests ( #25836 )
...
* Use at least cypress@4.9
... which has [arguably] better TypeScript definitions
* Updated lockfile
* Added tests for CLI and API
* Minor changes
2020-06-25 13:17:45 -04:00
Steven Vachon
5b5b247cb1
@grafana/e2e: improvements ( #25677 )
...
* Minor changes
* Fixed data source selection issue
… where it appeared as though the wrong one was selected
* Fixed “executing a canceled action” issue
... thrown from RxJS
2020-06-17 15:39:39 -04:00
Ryan McKinley
d1b230f84a
Chore: upgrade to Typescript 3.9.3 ( #25154 )
...
* upgrade to typescript 3.9.3
* Fix errors that surfaced with update
* Null check fixs
* FIx null checks
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-06-17 12:26:01 +02:00
Steven Vachon
fe74abfaae
@grafana/e2e: improvements ( #25610 )
...
* Added dependency for attaching files to forms
* Fixed closing of panel options
* Updated lockfile
2020-06-16 12:42:35 -04:00
Steven Vachon
4c8ad8d031
@grafana/e2e: improvements ( #25497 )
...
* Minor changes
* Use UI for removing dashboards and datasources
… with an optional “quick” mode that instead does so via a request
* Improved URL helpers
* Simplified test teardown
* Added support for multiple tests
... instead of being forced to cram everything into a single test because the session was cleared
2020-06-11 16:31:49 -04:00
Steven Vachon
d62926b5a3
@grafana/e2e: improvements ( #25342 )
...
* Minor changes
* Remove console.* logger plugin
... as it doesn't work in Electron
* Only open/close panel editor options and groups when state is inverted
... meaning, only open when closed and only close when open. This avoids unpredictable states, causing inconsistent results.
* Support for adding multiple datasources and dashboards
... and having them all auto-removed when tests are completed
* Avoid page errors when removing dashboards and datasources [keep?]
* Wait for chart data before saving panel
... so that everything is ready when returning to the dashboard
2020-06-08 09:52:34 -04:00
Hugo Häggmark
00a9af00fc
Templating: removes old Angular variable system and featureToggle ( #24779 )
...
* Chore: initial commit
* Tests: fixes MetricsQueryEditor.test.tsx
* Tests: fixes cloudwatch/specs/datasource.test.ts
* Tests: fixes stackdriver/specs/datasource.test.ts
* Tests: remove refrences to CustomVariable
* Refactor: moves DefaultVariableQueryEditor
* Refactor: moves utils
* Refactor: moves types
* Refactor: removes variableSrv
* Refactor: removes feature toggle newVariables
* Refactor: removes valueSelectDropDown
* Chore: removes GeneralTabCtrl
* Chore: migrates RowOptions
* Refactor: adds RowOptionsButton
* Refactor: makes the interface more explicit
* Refactor: small changes
* Refactor: changed type as it can be any variable type
* Tests: fixes broken test
* Refactor: changes after PR comments
* Refactor: adds loading state and call to onChange in componentDidMount
2020-06-04 13:44:48 +02:00
Steven Vachon
104c99f1b0
@grafana/e2e: improvements ( #25307 )
...
* Added more interaction to addPanel
* Use latest Cypress 4.x
* Updated lockfile
2020-06-02 21:08:09 -04:00
Steven Vachon
df7647b268
@grafana/e2e: improvements and dumb fixes for #25203 ( #25269 )
...
* Fix type definitions
* Fix typo
* Added support for fetch() within tests
2020-06-01 13:55:37 -04:00
Steven Vachon
78febbbeef
@grafana/e2e: screenshots and panel flow ( #25203 )
...
* Cleanup
* addPanel now supports (optional) custom dashboardUid
* addPanel now supports (optional) visualization name
* Added CLI option for updating screenshot fixtures
* Added support for console.* functions within tests
* Refactored screenshot command for greater simplicity
* addPanel now sets a unique title
* Updated lockfile
2020-06-01 08:48:23 -04:00
Steven Vachon
2724f05d5e
@grafana/e2e: Avoid Cypress' issue with JSON file reporter ( #25092 )
...
https://github.com/cypress-io/cypress/issues/6406
2020-05-25 19:28:35 -04:00
Steven Vachon
68154cf98d
@grafana/e2e: generate JSON report file ( #25033 )
...
* Output JSON report from Cypress
* Updated lockfile
2020-05-25 15:07:28 -04:00
Steven Vachon
4c62689bc2
@grafana/e2e: fixes ( #24960 )
...
* Resolve Cypress bin path
... instead of expecting it to be in a place that it may not be, depending on de-duping/flattening of nested dependencies
* Remove dashboard before removing datasource
... it makes more sense and it fixes random issues, perhaps something to do with how the backend is implemented.
* Updated lockfile
2020-05-20 20:49:36 -04:00
Tobias Skarhed
85ae144a87
Changelog and Readme: Update packages to beta and add Select breaking change ( #24670 )
2020-05-14 11:58:26 +02:00
Steven Vachon
b2f8f25995
@grafana/e2e: support regex for addDataSource ( #24461 )
2020-05-11 10:51:59 -04:00
Steven Vachon
648dda96e9
@grafana/e2e: only skip password reset on local tests ( #24411 )
2020-05-07 20:06:10 -04:00
Steven Vachon
184941eab4
@grafana/e2e: added login credential env vars ( #24359 )
...
... for remote instances
2020-05-06 18:44:14 -04:00
Hugo Häggmark
0fe9e7e242
e2e: upgrades Cypress to 4.50 ( #24099 )
...
* Chore: upgrades Cypress to 4.5.0
* Refactor: splits up huge it into several
* Refactor: prevent flakiness
* Refactor: updates yarn.lock
* Refactor: changes after PR comments
* Refactor: uses e2e.flows instead of import
2020-05-04 14:44:25 +02:00
Steven Vachon
861fa8cae6
@grafana/e2e: update datasource dropdown selector ( #24141 )
2020-05-01 19:49:56 -04:00
Steven Vachon
6558df83ad
@grafana/e2e: fix module paths for runtime ( #24121 )
...
... because the "src" dir only exists at compile time.
2020-04-30 16:46:33 -04:00
Steven Vachon
b027e25127
@grafana/e2e: fix dependencies ( #24109 )
...
* @cypress/webpack-preprocessor is needed at runtime
* Removed redundant packages
* Removed unnecessary packages
2020-04-30 11:55:37 -04:00
Arve Knudsen
154dc18809
Chore: Update Grafana version ( #23985 )
...
* Update Grafana version
2020-04-28 12:29:28 +02:00
Hugo Häggmark
b09b49fb37
e2e: creates a separate package for selectors ( #23858 )
...
* Initial commit
* Chore: fixes after merge
* Chore: removes todos
* Chore: uncomment test
* Chore: adds missing externals to rollup config
* Refactor: selectors is master for everything
* Docs: updates Docs
* Chore: adds e2e-selectors to publish
2020-04-27 09:09:05 +02:00