Sergey Kostrukov
10cc9bda74
Toolkit: return original stack trace for webpack errors ( #37814 )
2021-08-14 13:49:56 -07:00
Zoltán Bedi
33aeee60ff
Toolkit: Fix matchMedia not found error ( #37643 )
2021-08-10 07:34:35 +02:00
Zoltán Bedi
7e42bb5df0
Toolkit: rename deprecated tsConfig to tsconfig ( #37630 )
2021-08-06 14:04:42 +02:00
Josh Hunt
227c11d37f
Grafana-Toolkit: Improve error messages when tasks fail ( #36381 )
2021-07-06 10:07:17 +01:00
Christopher Lord
8660d0692e
CLI: Add option to skip tests and linting for grafana-toolkit plugin:build
( #35068 )
...
* Add option to skip tests and linting for plugin:build
Our plugin has a separate step of CI that tests and lints, so we'd like
to be able to control whether the build step will run it too.
defaults to continuing with lint and tests.
update README for grafana-toolkit
* remove accidental duplicate documentation of coverage
2021-06-23 08:09:23 +02:00
Josh Hunt
fcb4e5a211
Grafana-UI: Remove references to old monaco libraries ( #35557 )
2021-06-22 11:52:08 +01:00
Jack Westbrook
044acf727b
Toolkit: Resolve external fonts when Grafana is served from a sub path( #35352 )
2021-06-08 16:44:57 +02:00
Dominik Prokop
4cbffae1b4
AppPlugins: Expose react-router to apps ( #33775 )
...
* Allow Route component usage in app plugins
* i tried
* fix catalog app
* fix catalog app
* remove catalog changes from this PR
* remove extra files
* feat(plugins): expose react-router to plugins rather than export via grafana-ui
* Bring back query and pathname to AppRootPage and add deprecation notice
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2021-05-19 19:10:21 +02:00
Ryan McKinley
36fc37fd0e
Toolkit: add deprecation notice to toolkit/ci commands ( #33664 )
2021-05-04 10:13:29 -07:00
kay delaney
bad048b7ba
Performance: Standardize lodash imports to use destructured members ( #33040 )
...
* Performance: Standardize lodash imports to use destructured members
Changes lodash imports of the form `import x from 'lodash/x'` to
`import { x } from 'lodash'` to reduce bundle size.
* Remove unnecessary _ import from Graph component
* Enforce lodash import style
* Fix remaining lodash imports
2021-04-21 09:38:00 +02:00
Ryan McKinley
7351645d63
Toolkit: catch errors in version output ( #32774 )
2021-04-08 09:28:46 +02:00
Torkel Ödegaard
10badea19e
Emotion: Upgrades emotion from 10 to 11 and updates all import paths ( #32541 )
...
* Babel: Updates babel dependencies to latest version
* Emotion: Upgrade form 10 to 11
* Fixing tests
* Updated to use emotion/css instead in test
2021-04-01 14:15:23 +02:00
Jack Westbrook
b714cdf395
chore: bump execa to v2.1.0 ( #32543 )
...
* chore(toolkit): bump execa to v2 to fix vulnerability issue
* chore(toolkit): update usage of execa
2021-04-01 12:38:53 +02:00
Dominik Prokop
8d339a279b
Eslint: no-duplicate-imports rule (bump grafana-eslint-config) ( #30989 )
...
* Eslint: no-duplicate-imports rule (bump grafana-eslint-config)
* Chore: Fix duplicate imports (#31041 )
* Rebased this branch into eslint-no-duplicate-imports
* updated some changes
* merged uncaught duplicate imports
* fixes frontend test- I hope
* fixes e2e test- I hope
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-02-11 13:45:25 +01:00
Dan Cech
06061c8741
skip symlinks to directories when generating plugin manifest ( #30721 )
2021-01-29 08:51:37 -05:00
Torkel Ödegaard
1d689888b0
Prettier: Upgrade to 2 ( #30387 )
...
* Updated package json but not updated source files
* Update eslint plugin
* updated files
2021-01-20 07:59:48 +01:00
Will Browne
ffd86f2a5b
Plugins: Force POSIX style path separators for manifest generation ( #30287 )
...
* force POSIX style path separators
* include posix style for symbolic links
* include in error string
2021-01-19 15:26:50 +01:00
Alex Khomenko
4971ce6a3c
Grafana-toolkit: Update component generator templates ( #30306 )
...
* Grafana-toolkit: Update component generator templates
* Update story name
2021-01-16 11:31:54 +02:00
Steven Vachon
de3a7610d7
Print Node.js and Toolkit versions ( #30230 )
...
* Minor changes
* Print Node.js and toolkit versions when building
2021-01-12 12:17:29 -05:00
Jack Westbrook
51e3d65f9f
Chore(toolkit): disable react/prop-types for eslint config ( #29888 )
2020-12-17 09:39:07 +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
Torkel Ödegaard
dc93749287
Grunt: Removes grunt dependency and replaces some of its usage ( #29461 )
...
* Grunt: Removes grunt dependency and replaces some of it usage with alternatives
* Removed precommit toolkit task
* Fixed toolkit import
* Some cleanup of unused / not working stuff in build.go
* Removed sass errors
2020-12-01 10:32:12 +01:00
Dominik Prokop
5916ef94d0
grafana/toolkit: allow builds with lint warnings ( #28810 )
...
* grafana/toolkit: allow builds with lint warnings
* Remove redundant code
2020-11-04 13:51:23 +01:00
Dominik Prokop
a9e201332a
grafana/toolkit: Drop console and debugger statements by default when building plugin with toolkit ( #28776 )
2020-11-04 09:06:13 +01:00
Dominik Prokop
651ab5677c
grafana/toolkit: Extract CHANGELOG when building plugin ( #28773 )
2020-11-03 11:13:10 +01:00
Arve Knudsen
4d9374a051
grafana-toolkit: Remove stale reference to grafana-build-container ( #28178 )
...
* grafana-toolkit: Remove stale reference to grafana-build-container
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update packages/grafana-toolkit/src/cli/tasks/nodeVersionChecker.ts
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
2020-10-12 07:31:19 +02:00
Brian Gann
a9ef0f84b8
area/grafana/toolkit: ci-package needs to use synchronous writes ( #28148 )
...
* ci needs to use synchronous writes or the file ends up with zero length
2020-10-09 12:16:12 -05:00
Ryan McKinley
2e42ae5236
Chore: update jest to 25 ( #28096 )
2020-10-08 09:58:05 -07:00
Steven Vachon
7a65b1e8bb
@grafana/toolkit: fix plugin test errors with react-testing-library ( #28092 )
2020-10-07 15:29:59 -07:00
Dan Cech
4629c44d49
Toolkit: implement plugin signing in grafana-toolkit ( #27907 )
...
* implement plugin signing in grafana-toolkit
2020-10-05 11:27:43 -04:00
Steven Vachon
89ebab6377
Don't use process.chdir
( #27915 )
...
... because it's global
2020-10-02 10:43:39 -04:00
Domas
bd9add72de
toolkit: expose maxWorkers option for plugin build & test tasks ( #27724 )
2020-10-01 10:50:56 +02:00
Steven Vachon
d745a66a18
@grafana/toolkit: cleanup ( #27906 )
...
* Simplify `useSpinner` to run immediately, instead of returning a function
* Removed unnecessary exports
* Avoid mutating input arguments
2020-09-29 15:05:07 -04:00
Steven Vachon
15a3b97dbb
@grafana/toolkit: run npm "next" publish file system functions serially ( #27894 )
...
... to hopefully avoid race conditions with working directory changes
2020-09-29 10:16:16 -04:00
Steven Vachon
4fd8ff092e
@grafana-toolkit: promise improvements ( #27868 )
...
* Default `useSpinner` to a void argument
* Use promise-based file system functions in package:build
2020-09-28 15:43:01 -04:00
William Assis
8a22111a8e
Toolkit: Add --coverage flag to plugin build command ( #27743 )
...
* Add --coverage option to build script
* Update README
2020-09-25 08:12:00 +02:00
kennytm
ed054c205d
grafana-toolkit: avoid path.resolve with globby in moveStaticFiles ( #27670 )
2020-09-23 10:48:13 +02:00
Jorge Vallecillo
9e3def4214
Fix typos ( #27711 )
2020-09-22 11:00:59 -07:00
Ryan McKinley
b3b72b8ae6
Toolkit: clean node_modules/@grafana/data/node_modules in prepare ( #27554 )
2020-09-12 16:45:33 -07:00
Levente Balogh
6b1a80675f
Grafana Toolkit: add an option for signing plugins as admin ( #26817 )
...
* feat(grafana-toolkit): add a flag to the plugin:ci-package command
* docs(grafana-toolkit): add a short comment above the flag
* fix(grafana-toolkit): fix option for signing a plugin with the admin endpoint
2020-08-07 15:34:30 +02:00
Levente Balogh
bdbea6d1f2
fix(Toolkit/Plugin): throw an Error instead of a string ( #26618 )
2020-07-28 08:41:32 +02:00
Josh Soref
7d08a8497a
Chore: fix spelling of GitHub ( #26182 )
...
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-07-22 08:12:50 -07: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
Ryan McKinley
1a711e7df0
Panel Inspect: use monaco for json display ( #25251 )
2020-06-29 10:58:47 -07:00
Dominik Prokop
a8b660d919
Improve yarn start output ( #25773 )
2020-06-24 14:37:36 +02:00
Alex Khomenko
03f241a674
Grafana UI: Add FieldSet component ( #25348 )
...
* Grafana UI: Add FieldSet
* Grafana UI: Add story
* Grafana UI: Add docs
* Grafana UI: Export FieldSet
* Grafana UI: Fix issues
2020-06-04 16:52:52 +03:00
Josh Soref
ed92b41d47
Chore: spelling - misc ( #24438 )
...
* Chore: spelling - misc
* fix master merge
2020-06-04 06:51:30 +02:00
Sofia Papagiannaki
139be3d7ba
grafana/toolkit: Modify close milestone task to remove label from more than 100 pull requests and add dry run option ( #25108 )
...
* Fix close milestone to remove label from all the required pull requests
There used to be a limit to 100 pull requests.
* Add dry run option in close-milestone task
2020-05-26 17:26:16 +03:00
Stephanie Closson
b7d5912ca8
Chore: Toolkit fixes to use toolkit for release ( #24951 )
...
* Various fixes and requests for toolkit:
1) Added toolkit to the alpine docker image, so we can get latest fixes without having to re-release
2) Removed cp from e2d docker image
3) Change github client to allow to specify an owner so it's not "grafana" only
4) Toolkit refers to grafana-ui and grafana-data "next", rather than canary
* added toolkit to e2e docker image
* Added tools to the e2e image for building/deploying oracle
* added shasum
* removing toolkit from images
2020-05-21 09:41:15 -06:00
Ryan McKinley
9edd8b7c7e
Toolkit: update the artifact download calculation ( #24828 )
2020-05-20 15:59:25 -07:00
Andrew Rodgers
ce7b142d64
Toolkit: Update tsconfig to clear linter errors ( #24824 )
2020-05-18 16:00:02 -07:00
Dominik Prokop
c5fc18ac02
grafana/toolkit: Support paging in cherrypick task ( #24402 )
...
* Support paging in cherrypick task
* Update packages/grafana-toolkit/src/cli/tasks/cherrypick.ts
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update packages/grafana-toolkit/src/cli/tasks/cherrypick.ts
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Do not cherry pick closed PRs
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-05-11 10:24:06 +02:00
Ryan McKinley
b34a5b5648
Toolkit: use grabpl for manifest ( #24319 )
2020-05-05 19:47:58 -07:00
Dominik Prokop
97c0285543
Enable svg bundle with rollup ( #24258 )
2020-05-05 10:39:49 +02:00
Marcus Efraimsson
7c43dca9bb
Fix pagination of issues/PR's in changelog generator ( #23997 )
...
Fix pagination of issues/PR's in changelog generator
2020-04-28 16:32:12 +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
Dominik Prokop
6dfad3b352
grafana/toolkit: Do not suggest Angular panel anymore, add note about Grafana tutorials ( #23902 )
2020-04-26 13:16:04 +02:00
Carl Bergquist
78566de75a
adds template for backend datasource ( #23864 )
2020-04-24 19:45:45 +02:00
Stephanie Closson
e35f27ea8f
Toolkit: fixes for security and publishing ( #23749 )
...
* Fixes and security patches:
1. Always keep the source directory, just don't package the source
2. Do not publish the SSH key for common plugin tasks.
Changed to environment variable
* env variable renamed.
* Re-added the src remove
* touch config.yml for rebuild
2020-04-23 12:58:22 -06:00
Torkel Ödegaard
017767ae39
InputDatasource: Fixed prettier errors ( #23679 )
...
* InputDatasource: Fixed prettier errors
* Fixed prettier config in toolkit to make it consistent with grafana core prettier config
2020-04-21 10:14:14 +02:00
Ryan McKinley
1e03bb2895
Bundled Plugins: fix build issues with DirectInput ( #23640 )
...
* pass query error
* and the root
* not optional
* building bundled plugin
* missing file
* remove other branch
* fix prettier
2020-04-19 07:05:25 +02:00
Alex Khomenko
89c8855f9d
Search: migrate manage dashboards ( #23530 )
...
* Search: add search wrapper
* Search: add DashboardSearch.tsx
* Search: enable search
* Search: update types
* Search: useReducer for saving search results
* Search: use default query
* Search: add toggle custom action
* Search: add onQueryChange
* Search: debounce search
* Search: pas dispatch as a prop
* Search: add tag filter
* Search: Fix types
* Search: revert changes
* Search: close overlay on esc
* Search: enable tag filtering
* Search: clear query
* Search: add autofocus to search field
* Search: Rename close to closeSearch
* Search: Add no results message
* Search: Add loading state
* Search: Remove Select from Forms namespace
* Remove Add selectedIndex
* Remove Add getFlattenedSections
* Remove Enable selecting items
* Search: add hasId
* Search: preselect first item
* Search: Add utils tests
* Search: Fix moving selection down
* Search: Add findSelected
* Search: Add type to section
* Search: Handle Enter key press on item highlight
* Search: Move reducer et al. to separate files
* Search: Remove redundant render check
* Search: Close overlay on Esc and ArrowLeft press
* Search: Add close button
* Search: Document utils
* Search: use Icon for remove icon
* Search: Add DashboardSearch.test.tsx
* Search: Move test data to a separate file
* Search: Finalise DashboardSearch.test.tsx
* Add search reducer tests
* Search: Add search results loading indicator
* Search: Remove inline function
* Search: Do not mutate item
* Search: Tweak utils
* Search: Do not clear query on tag clear
* Search: Fix folder:current search
* Search: Fix results scroll
* Search: Update tests
* Search: Close overlay on cog icon click
* Add mobile styles for close button
* Search: Use CustomScrollbar
* Search: Memoize TagList.tsx
* Search: Fix type errors
* Search: More strictNullChecks fixes
* Search: Add ManageDashboards.tsx
* Search: Add mergeReducers
* Search: Use mergeReducers
* Search: remove default state from reducers
* Search: Fix recent and starred icons
* Search: Enable search
* Search: Add markup
* Search: Separate manageDashboardsReducer
* Search: Add DashboardActions.tsx
* Use new Select for TagFilter
* Search: Use TagFilter for search filters
* Search: Use TagList
* Search: Add toggleSection
* Search: Add more actions
* Search add manageDashboards.test.ts
* Search: Add getCheckedUids
* Search: Add modify and toggle checked actions
* Search: Update tests
* Search: Update component template
* Search: Enable section toggle
* Search: Derive canMove and canDelete
* Search: Handle delete items
* Search: Fix tests
* Search: Enable toggle items
* Search: Add confirm modal subtitle
* Search: Use theme vars
* Search: Add getCheckedDashboardsUids
* Search: Add MoveToFolderModal
* Search: Enable moving dashboards
* Search: Fix strict null checks errors
* Search: Fix strict null checks errors[2]
* Search: Enable filters
* Search: Add useSearchQuery.ts
* Search: Toggle items when toggling all
* Search: Update useSearchQuery to accept custom params
* Search: Add useSearchQuery to dashboard search
* Search: use SearchField for manage dashboards
* Search: Remove event param from query change
* Search: Add base search hooks
* Search: refactor useSearch to accept reducer
* Search: use useDashboardSearch hook
* Search: Fix useSearchQuery params
* Search: Enable folder search
* Search: Update tests
* Search: Pass the props to manage-dashboards
* Search: Add search filters margin
* Search: Remove search-field-wrapper class and hide logic for it
* Search: Adjust SearchField styles
* Search: Move search-results-container inside SearchResults
* Search: Fix type errors
* Search: Add EmptyListCTA
* Search: Update move message
* Search: Cleanup
* Search: Add todo
* Search: Fix action type
* Search: Use React wrapper vs FolderDashboardsCtrl and DashboardListCtrl
* Search: DashboardList => DashboardListPage
* Search: Remove ManageDashboards from angular_wrappers
* Minor style tweaks
* Search: Use LinkButton
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-04-17 15:29:20 +03:00
Stephanie Closson
52575ff03f
Toolkit: Copy config files to dist for plugin use/Fix circleci build errors ( #23575 )
...
* replaced run
* consolidated dist and toolkit
* Solved a few more issues
1. Need to explicitly copy circleci config to dist
so that it's published
2. Detect build directory, and use "local" or "linked"
mode for local builds.
* Reverted change used only for testing
* grafana-toolkit.js always required now. Copy to dist
* removed grafana-toolkit.dist.js, no longer required
* feedback from code review
* Code review comments 2.
2020-04-14 15:05:18 -06:00
Stephanie Closson
c5f21bdae9
Toolkit: Provide update plugin to allow plugins configuration to normalize ( #23540 )
...
* Toolkit: Update plugin added
- To normalize an bring a plugins "managed" config up to date
* Added changes for filter only release
* changed name
* updated test for checking files in manifest
2020-04-13 17:10:33 -06:00
Stephanie Closson
ae95287d1e
New alpine based plugin ci image ( #23533 )
...
* New alpine based plugin ci image
- smaller, based on alpine (downloads in 7 to 10 seconds)
- Has updated gget that uses tar.gz
- Unpacks to /opt/grafana
- Compatible cp with toolkit
* needed build tools for go lint
* added built vm to test tool
* add circleci plugin config
* added openssh to image
* fix for gget & renamed to ginstall
2020-04-13 11:53:16 -06:00
Ryan McKinley
afec54d257
Tookit: set verison from info.version ( #23511 )
2020-04-10 22:49:25 -07:00
Ryan McKinley
fc55c8d017
Toolkit: more logging while signging ( #23509 )
2020-04-10 21:09:06 -07:00
Ryan McKinley
8ed6ab2bc9
Toolkit: add CI to the signing URL ( #23507 )
2020-04-10 16:11:20 -07:00
Stephanie Closson
7f61f3cc43
Fix: 404 is returned as an exception. Catch and if 404, don't worry about it ( #23505 )
2020-04-10 11:18:44 -06:00
Alex Khomenko
f458da4d7f
React generator ( #23150 )
...
* Toolkit: Setup templates
* Toolkit: Add plop
* Toolkit: Setup createComponent task
* Toolkit: Use lodash templates
* Toolkit: Generate story and mdx file
* Toolkit: Add story type
* Toolkit: Fix types
* Toolkit: Add test template
* Toolkit: Remove plop
* Toolkit: Tweak types
* Toolkit: Minor fixes
* Toolkit: Add internal story option
* Toolkit: Fix test
* Toolkit: Clarify prompt
* Toolkit: add prompt list for component group
* Toolkit: make generator script internal
* Toolkit: add description
* Toolkit: add missing when condition
2020-04-10 11:32:49 +03:00
Ryan McKinley
b710f21a06
Toolkit: catch errors from signing service ( #23486 )
2020-04-09 13:30:34 -07:00
Ryan McKinley
227b233aaa
Toolkit: save a json manifest file for signing ( #23446 )
2020-04-09 08:28:30 -07:00
Stephanie Closson
242db64158
Learnings from latest automated git publish. Small tweaks ( #23440 )
2020-04-08 09:22:36 -06:00
Ryan McKinley
67e45a1d43
Plugins: do not publish bundled plugins to npm ( #23401 )
2020-04-07 08:01:06 -07:00
Ryan McKinley
03e3ddcbdb
Plugins: add a bundle plugins folder ( #20850 )
2020-04-07 00:04:24 -07:00
Stephanie Closson
139753358d
Fixes for toolkit ( #23379 )
...
1. Typo in the default email address
2. Nested promises causing problems in some situations. Return a promise
and resolve in the outer function
3. If extension still have '.' in front remove it prior to matching.
2020-04-06 17:28:48 -06:00
Stephanie Closson
20d3a9a00e
Circle ci fixes automated build ( #23373 )
...
* Lessons learned from using circle-ci
1. Make it clearer that GITHUB_TOKEN or GITHUB_ACCESS_TOKEN
are required for a release. Don't build without them.
2. Default gracefully to an reasonable email address.
(It does not have to actually exist, but the api needs it to publish)
* template for testing
* Wrote a basic test.
* Simple test
* Slight fix to brackets
* Code review changes
* Fix for test. Setup environment properly
2020-04-06 10:22:53 -06:00
Stephanie Closson
c5252f1b64
Toolkit: simplify the plugin ci docker image ( #23267 )
...
* removing src dir on publish
* Moved from binary to native typescript
1. Moved to a native typescrpt github publish using the existing
github client.
2. Change dist.js to detect running in a linked environment.
Todo: Optimize docker image for build size.
* Optimized build of docker container
Much smaller. From 5.47 gb to 2.88
* Feedback from discussion with Ryan
- Added gget for getting grafana versions
- Added infrastructure for testing
- Uploaded new docker image
* Fixed typo... Not sure what happened there :)
* Added command to download canary
* small fix for displaying versions in help
* Removed --dev option
Should really just rename version to (ex: 1.2.0-dev)
* removing src dir on publish
* Moved from binary to native typescript
1. Moved to a native typescrpt github publish using the existing
github client.
2. Change dist.js to detect running in a linked environment.
Todo: Optimize docker image for build size.
* Optimized build of docker container
Much smaller. From 5.47 gb to 2.88
* Feedback from discussion with Ryan
- Added gget for getting grafana versions
- Added infrastructure for testing
- Uploaded new docker image
* Fixed typo... Not sure what happened there :)
* Added command to download canary
* small fix for displaying versions in help
* Removed --dev option
Should really just rename version to (ex: 1.2.0-dev)
2020-04-02 13:57:33 -06:00
Ryan McKinley
7bb6ff30c3
Toolkit: use src/README.md if it exists ( #23271 )
2020-04-01 22:06:01 -07:00
Stephanie Closson
b6c1a063be
must publish a dist folder as well ( #23152 )
2020-03-27 09:44:55 -06:00
Ryan McKinley
1ff736b4b3
e2e: remove old toolkit e2e implementation ( #23091 )
2020-03-26 07:31:44 -07:00
Lukas Siatka
01d4cb9e37
DevEnv: update frontend dependencies - mixed 3/4 ( #22995 )
...
* DevEnv: updates pixelmatch 4.0.2 -> 5.1.0
* DevEnv: updates pixelmatch 5.0.2 -> 5.1.0 in grafana-toolkit package
* DevEnv: updates postcss-flexbugs-fixes 4.1.0 -> 4.2.0 in grafana-toolkit package
* DevEnv: updates postcss-preset-env 6.6.0 -> 6.7.0 in grafana-toolkit package
* DevEnv: updates less 3.10.3 -> 3.11.1 in grafana-toolkit package
* DevEnv: updates ora 3.4.0 -> 4.0.3 in grafana-toolkit package
* DevEnv: updates semver 6.1.1 -> 7.1.3 in grafana-toolkit package
* DevEnv: updates simple-git 1.112.0 -> 1.132.0 in grafana-toolkit package
* DevEnv: updates ora import to commonjs after its update
2020-03-26 12:46:46 +01:00
Martin Brenner
6b61c65b58
Toolkit: use fs-extra instead of fs ( #22723 )
...
* use fs-extra instead of fs
* use moveSync instead of renameSync
2020-03-11 07:37:31 -07:00
Ryan McKinley
46fcf9bf08
Toolkit: wrap plugin signing stub with error checking ( #22626 )
2020-03-06 10:51:48 -08:00
Stephanie Closson
3745cccde6
Toolkit: include a github release utility ( #22520 )
...
* Adding git publish to toolkit
* grafana-toolkit new feature plugin:github-release
* Feedback from code review
1. Used async await and exec for executing commands
2. Using dist folder to get plugin information
* Reverting change to plugin.json back to original value.
* reverted changes to yarn.lock
* reverted changes to yarn.lock
* feedback from code review
* feedback from code review 2
* moved constants to recommended functions
* styling changes and reverting yarn.lock
* removing changes to package.json
* replced execLine with execa
* better error detection around the publish token
* made simpler with commitHash from build
* Testing showed a number of required changes:
- Make the sha configurable
or through environment variable
or through git config.
- Allow a release to be recreated
- Set name and repo from git config as this is what
ghr is expecting anyway.
- Appropriate errors if the user
tries to run a release without
doing a ci-build and ci-package first.
* Using spinner.
Took out extra dependencies out of project.json
wrote tests manually.
* Updated tests. Now passing
* Adding git publish to toolkit
* grafana-toolkit new feature plugin:github-release
* Feedback from code review
1. Used async await and exec for executing commands
2. Using dist folder to get plugin information
* Reverting change to plugin.json back to original value.
* reverted changes to yarn.lock
* reverted changes to yarn.lock
* feedback from code review
* feedback from code review 2
* moved constants to recommended functions
* styling changes and reverting yarn.lock
* removing changes to package.json
* replced execLine with execa
* better error detection around the publish token
* made simpler with commitHash from build
* Testing showed a number of required changes:
- Make the sha configurable
or through environment variable
or through git config.
- Allow a release to be recreated
- Set name and repo from git config as this is what
ghr is expecting anyway.
- Appropriate errors if the user
tries to run a release without
doing a ci-build and ci-package first.
* Using spinner.
Took out extra dependencies out of project.json
wrote tests manually.
* Updated tests. Now passing
* updated test for reducers, from master
* package.json and yarn.lock from master
2020-03-06 10:15:04 -07:00
Ryan McKinley
e688f13535
Toolkit: plugin ci needs to cooperate better with make/mage ( #22588 )
...
* cleanup
* cleanup
2020-03-05 06:06:06 -08:00
Ryan McKinley
cc638e81f4
Toolkit: don't clean dist folder before build ( #22521 )
2020-03-02 11:29:09 -08:00
Ryan McKinley
63c6fc5f4e
Toolkit: add junit reporting and jest.config.js to plugin build ( #22450 )
2020-02-27 08:53:59 -08:00
Steven Vachon
3de625ef8e
@grafana/toolkit: completed support for source maps in plugin builds ( #22379 )
2020-02-22 18:54:02 -05:00
Steven Vachon
c35dc9a0f5
@grafana/toolkit: lint fix option now writes changes to disk ( #22278 )
2020-02-18 15:55:42 -05:00
Jacky
a743a1cc12
Toolkit: support sass style for plugins ( #22235 )
2020-02-16 16:47:31 -08:00
Ryan McKinley
21b53b7d79
Toolkit: don't create declaration files for plugins (by default) ( #22228 )
2020-02-15 09:05:07 -08:00
Ryan McKinley
34e4f182bc
Toolkit: add a warning about tslint migration ( #22089 )
2020-02-11 13:27:26 +01:00
Ryan McKinley
0ff19e9414
Toolkit: create manifest files for plugins ( #22056 )
2020-02-10 19:39:24 +01:00
Steven Vachon
f48169633c
TSLint → ESLint ( #21006 )
...
* Alphabetized tslint and tsconfig files
* Optimized tsconfig files
* Optimized editorconfig & prettier config files
… to reduce redundancy
* Switched to @grafana/tsconfig
… and:
* de-duped options
* removed options with default values
* Fixed nasty issue with types for nested slate-react
* Replaced TSLint with ESLint
* TSLint disables → ESLint disables
… also JSHint removals, which haven’t had an affect since it was replaced with TSLint.
* Compliances for ESLint, Prettier and TypeScript
* Updated lockfile
2020-02-08 02:40:04 +01:00
Dominik Prokop
f8654a3a2f
grafana/toolkit: Fix failing linter when there were lint issues ( #21849 )
2020-01-30 15:42:53 +01:00
Ryan McKinley
ed140346a7
Toolkit: add canvas-mock to test setup ( #21739 )
2020-01-25 08:11:08 -08:00
Sofia Papagiannaki
3fd8505195
Update changelog generation to ignore not merged pull requests ( #21641 )
2020-01-23 10:12:19 +02:00
Ryan McKinley
aee07949a3
Toolkit: copyIfNonExistent order swapped ( #21653 )
2020-01-21 22:10:16 -08:00
Ryan McKinley
152059fec9
Toolkit: fix prettier error reporting ( #21599 )
2020-01-19 18:42:41 -08:00