Commit Graph

32 Commits

Author SHA1 Message Date
ismail simsek
1bb5e8a5dd chore: bump @grafana/create-plugin configuration to 6.7.1 (#2167)
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2026-01-08 15:56:29 +01:00
Hugo Häggmark
6cc6dcabe1 Chore: removes props mutation (#2056)
While investigating some potential mutations
[here](https://ops.grafana-ops.net/d/83f4951f-2ef3-4260-91a0-39a031992b75/getmutationobserverproxy-logs)
I was able to find these mutating
[lines](https://github.com/grafana/grafana-zabbix/blob/main/src/datasource/components/ConfigEditor.tsx#L55-L57)

Although this works right now, this might not work in future Grafana
versions. This PR makes sure we don't mutate the props.

I haven't been able to test this manually so I could use some help to
make sure the plugin works as expected.

---------

Co-authored-by: ivanahuckova <ivana.huckova@gmail.com>
2025-07-18 12:14:27 +02:00
Zoltán Bedi
50b9a83eec Remove commented out code and format 2023-09-24 23:41:35 +02:00
Zoltán Bedi
fdca810285 Chore: Dependency clean up 2023-09-24 22:59:27 +02:00
Alexander Zobnin
e3e896742b Build plugin with grafana toolkit (#1539)
* Use grafana toolkit template for building plugin

* Fix linter and type errors

* Update styles building

* Fix sass deprecation warning

* Remove empty js files produced by webpack building sass

* Fix signing script

* Replace classnames with cx

* Fix data source config page

* Use custom webpack config instead of overriding original one

* Use gpx_ prefix for plugin executable

* Remove unused configs

* Roll back react hooks dependencies usage

* Move plugin-specific ts config to root config file

* Temporary do not use rst2html for function description tooltip

* Remove unused code

* remove unused dependencies

* update react table dependency

* Migrate tests to typescript

* remove unused dependencies

* Remove old webpack configs

* Add sign target to makefile

* Add magefile

* Update CI test job

* Update go packages

* Update build instructions

* Downgrade go version to 1.18

* Fix go version in ci

* Fix metric picker

* Add comment to webpack config

* remove angular mocks

* update bra config

* Rename datasource-zabbix to datasource (fix mage build)

* Add instructions for building backend with mage

* Fix webpack targets

* Fix ci backend tests

* Add initial e2e tests

* Fix e2e ci tests

* Update docker compose for cypress tests

* build grafana docker image

* Fix docker stop task

* CI: add Grafana compatibility check
2022-12-09 14:14:34 +03:00
Alexander Zobnin
152821e47d fix tests 2021-01-28 12:33:35 +03:00
Alexander Zobnin
926631da96 Use secondsToHms()
from grafana/data
2021-01-20 12:20:46 +03:00
Alexander Zobnin
98408bf92c remove old alerting tests 2020-06-18 12:09:09 +03:00
Alexander Zobnin
c2aa84f349 Merge branch 'master' into backend 2020-05-28 12:02:36 +03:00
Alexander Zobnin
b09af3c93a fix tests 2020-05-14 19:02:36 +03:00
Alexander Zobnin
935d16c86f fix panel tests 2020-05-13 19:03:34 +03:00
Alexander Zobnin
bfbd2907ce fix linter errors 2020-05-12 19:31:02 +03:00
Alexander Zobnin
00f6aa459e Fix jsdom canvas error on tests 2020-05-12 19:28:57 +03:00
Alexander Zobnin
f7105d9f06 fix TriggerPanelCtrl tests 2020-05-12 19:18:15 +03:00
Alexander Zobnin
f7adf0e379 Merge branch 'master' into backend 2020-01-16 12:34:25 +03:00
Alec Sears
92e77617cf [Backend] Merge 'master' changes into the backend (#875)
* CI: fix shellcheck issues (#789)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>

* annotations: fix options in grafana 6.x, fix #813

* fix function editor in Grafana 6.4, closes #810

* add typings for grafana packages

* Add $__range_series variable for calculating function over the whole series, #531

* fix tests

* Don't set alert styles for react panels, fix #823

* docs: add range variables

* docs: percentile reference

* fix codespell

* update packages (build with node 12)

* update circleci node image to 12

* fix test configuration (babel)

* Fix 817 (#851)

* problems: update panel schema

* update packages (build with node 12)

* problems: use datasource from target

* problems: fix query editor after schema update

* problems: fix list layout

* update circleci node image to 12

* fix tests

* build(deps-dev): bump lodash from 4.17.10 to 4.17.13 (#852)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.13)

Signed-off-by: dependabot[bot] <support@github.com>

* fix packages security alerts

* problems: fix tags adding and removal

* fix adding func from typeahead, closes #468

* update change log

* bump plugin version to 3.10.5

* problems: fix tag removal (list layout)

* Fix percentile() function, closes #862 (#863)

Like the other aggregation functions, the datapoints need to be sorted in
time before calling groupBy_perf().

* Update copyright, happy New Year!

* fix not acknowledged problem color with a message (#858)

* fix not acknowledged problem color with a message

* fix not acknowledged problem color with a message, closes #857

* Variable query editor (#856)

* refactor: convert module to typescript

* refactor: covert utils to typescript

* variable query editor WIP

* variable editor: fix type error after grafana/ui update

* variable editor: use FormLabel from grafana/ui

* variable editor: refactor

* variable editor: input validation and highlights

* variable editor: fix tests

* variable query: fix backward compatibility with empty queries

* fix linter errors

* variable editor: fix variable replacement in queries

* Fixes for backend

Co-authored-by: Mario Trangoni <mario@mariotrangoni.de>
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mark Reibert <mreibert@netskope.com>
Co-authored-by: memfiz <arnis.civciss@gmail.com>
2020-01-15 14:48:43 +03:00
Alexander Zobnin
82cfda6524 Variable query editor (#856)
* refactor: convert module to typescript

* refactor: covert utils to typescript

* variable query editor WIP

* variable editor: fix type error after grafana/ui update

* variable editor: use FormLabel from grafana/ui

* variable editor: refactor

* variable editor: input validation and highlights

* variable editor: fix tests

* variable query: fix backward compatibility with empty queries

* fix linter errors

* variable editor: fix variable replacement in queries
2020-01-13 11:31:40 +03:00
vignesh-reddy
c300debe35 Backend: Merge master into the backend branch (#845)
* CI: fix shellcheck issues (#789)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>

* annotations: fix options in grafana 6.x, fix #813

* fix function editor in Grafana 6.4, closes #810

* add typings for grafana packages

* Add $__range_series variable for calculating function over the whole series, #531

* fix tests

* Don't set alert styles for react panels, fix #823

* docs: add range variables

* docs: percentile reference

* fix codespell

Co-authored-by: Mario Trangoni <mario@mariotrangoni.de>
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2019-12-30 10:45:47 +03:00
Alec Sears
05243a9701 Progress 2019-10-18 16:17:48 -05:00
Alexander Zobnin
1d13520358 fix tests 2019-10-09 15:42:34 +03:00
Alexander Zobnin
ff5a7f0136 fix tests (add kbn mock) 2019-07-31 14:36:30 +03:00
Alexander Zobnin
7727d86804 fix tests (add mocks for some grafana modules) 2019-07-08 15:45:50 +03:00
Alexander Zobnin
9708ec459c fix tests (mock for app/core/config) 2019-02-14 10:54:33 +03:00
Alexander Zobnin
666b54e159 fix linter errors 2019-02-12 22:28:04 +03:00
Alexander Zobnin
d7db242426 fix problems panel tests 2019-02-12 22:28:04 +03:00
Alexander Zobnin
2b44a40c55 tests: extract mocks into separate module 2018-11-15 10:13:49 +03:00
Alexander Zobnin
6666a4f863 webpack: clean up grunt tasks (leave only benchmark runner) #632 2018-10-21 17:02:43 +03:00
Alexander Zobnin
7a517be6e1 tests for text data table format 2018-01-27 13:17:31 +03:00
Alexander Zobnin
edb68ab389 SASS refactor 2017-12-14 10:59:52 +03:00
Alexander Zobnin
6eb6f63416 triggers panel: add tests for PanelCtrl 2017-12-03 18:14:04 +03:00
Alexander Zobnin
5359176f2a triggers panel: tests for schema migration 2017-12-03 12:52:50 +03:00
Alexander Zobnin
e80a814880 migrate tests to Jest 2017-10-30 20:26:53 +03:00