VolkovLabs / business-satellite

The Business Satellite data source for Grafana allows retrieving data from local and remote Grafana instances via HTTP API.
https://docs.volkovlabs.io
Apache License 2.0
12 stars 2 forks source link

Move API methods under feature flag to support various Grafana versions #53

Closed asimonok closed 1 year ago

asimonok commented 1 year ago

Move API methods under feature flag to support various Grafana versions.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 95.08% and project coverage change: +0.02% :tada:

Comparison is base (e2d2059) 97.14% compared to head (8fdc249) 97.17%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #53 +/- ## ========================================== + Coverage 97.14% 97.17% +0.02% ========================================== Files 29 30 +1 Lines 350 389 +39 Branches 37 47 +10 ========================================== + Hits 340 378 +38 Misses 9 9 - Partials 1 2 +1 ``` | [Files Changed](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs) | Coverage Δ | | |---|---|---| | [src/components/ConfigEditor/ConfigEditor.tsx](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbXBvbmVudHMvQ29uZmlnRWRpdG9yL0NvbmZpZ0VkaXRvci50c3g=) | `88.88% <50.00%> (+0.65%)` | :arrow_up: | | [src/datasource/datasource.ts](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2RhdGFzb3VyY2UvZGF0YXNvdXJjZS50cw==) | `95.83% <95.23%> (-1.23%)` | :arrow_down: | | [src/api/annotations.ts](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2FwaS9hbm5vdGF0aW9ucy50cw==) | `90.16% <100.00%> (ø)` | | | [src/api/api.ts](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2FwaS9hcGkudHM=) | `100.00% <100.00%> (ø)` | | | [src/api/provisioning.ts](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2FwaS9wcm92aXNpb25pbmcudHM=) | `100.00% <100.00%> (ø)` | | | [src/components/QueryEditor/QueryEditor.tsx](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbXBvbmVudHMvUXVlcnlFZGl0b3IvUXVlcnlFZGl0b3IudHN4) | `100.00% <100.00%> (ø)` | | | [src/constants/request.ts](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbnN0YW50cy9yZXF1ZXN0LnRz) | `100.00% <100.00%> (ø)` | | | [src/utils/api.ts](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL3V0aWxzL2FwaS50cw==) | `100.00% <100.00%> (ø)` | | | [src/utils/index.ts](https://app.codecov.io/gh/VolkovLabs/volkovlabs-grapi-datasource/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL3V0aWxzL2luZGV4LnRz) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.