mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: ESlint import order (#44959)
* Add and configure eslint-plugin-import * Fix the lint:ts npm command * Autofix + prettier all the files * Manually fix remaining files * Move jquery code in jest-setup to external file to safely reorder imports * Resolve issue caused by circular dependencies within Prometheus * Update .betterer.results * Fix missing // @ts-ignore * ignore iconBundle.ts * Fix missing // @ts-ignore
This commit is contained in:
parent
147a1600e7
commit
3c6e0e8ef8
@ -5,329 +5,329 @@
|
||||
//
|
||||
exports[`no enzyme tests`] = {
|
||||
value: `{
|
||||
"packages/grafana-ui/src/components/BarGauge/BarGauge.test.tsx:2315765050": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/BarGauge/BarGauge.test.tsx:4199795290": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/ColorPicker/NamedColorsPalette.test.tsx:1355456933": [
|
||||
[1, 31, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/ColorPicker/NamedColorsPalette.test.tsx:3311646309": [
|
||||
[0, 31, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/FileUpload/FileUpload.test.tsx:3475964456": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/FileUpload/FileUpload.test.tsx:4145620610": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/FormField/FormField.test.tsx:2387359174": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/FormField/FormField.test.tsx:3429087660": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Forms/Legacy/Input/Input.test.tsx:4019574269": [
|
||||
[2, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Forms/Legacy/Input/Input.test.tsx:3129955645": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Gauge/Gauge.test.tsx:1435004725": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Gauge/Gauge.test.tsx:2525939157": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Graph/Graph.test.tsx:2882401917": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Graph/Graph.test.tsx:1664091255": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Graph/GraphTooltip/MultiModeGraphTooltip.test.tsx:3734531523": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Graph/GraphTooltip/MultiModeGraphTooltip.test.tsx:1865444105": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/List/AbstractList.test.tsx:2210654375": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/List/AbstractList.test.tsx:2972876749": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Logs/LogLabels.test.tsx:1113070745": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Logs/LogLabels.test.tsx:1029448019": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Logs/LogMessageAnsi.test.tsx:1478948568": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Logs/LogMessageAnsi.test.tsx:1630730648": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Logs/LogRowContextProvider.test.tsx:636540759": [
|
||||
[3, 17, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Logs/LogRowContextProvider.test.tsx:2719724375": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Logs/LogRows.test.tsx:2288254498": [
|
||||
[3, 17, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Logs/LogRows.test.tsx:3121815234": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/QueryField/QueryField.test.tsx:1297745712": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/QueryField/QueryField.test.tsx:375894800": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Slider/Slider.test.tsx:2110443485": [
|
||||
[3, 17, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Slider/Slider.test.tsx:751112695": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Typeahead/PartialHighlighter.test.tsx:3831493850": [
|
||||
[1, 31, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Typeahead/PartialHighlighter.test.tsx:1751923376": [
|
||||
[0, 31, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Typeahead/Typeahead.test.tsx:1026793168": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Typeahead/Typeahead.test.tsx:972524250": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/components/Typeahead/TypeaheadInfo.test.tsx:3968135869": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/components/Typeahead/TypeaheadInfo.test.tsx:3512289373": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/slate-plugins/braces.test.tsx:2551821825": [
|
||||
[3, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/slate-plugins/braces.test.tsx:1440546721": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/slate-plugins/clear.test.tsx:4145618392": [
|
||||
[3, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/slate-plugins/clear.test.tsx:1085648664": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/slate-plugins/runner.test.tsx:2165687770": [
|
||||
[3, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/slate-plugins/runner.test.tsx:446043290": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/grafana-ui/src/slate-plugins/suggestions.test.tsx:4138775391": [
|
||||
[1, 18, 13, "RegExp match", "2409514259"]
|
||||
"packages/grafana-ui/src/slate-plugins/suggestions.test.tsx:3654981205": [
|
||||
[0, 18, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/CanvasSpanGraph.test.js:3515574241": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/GraphTicks.test.js:1837731860": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/Scrubber.test.js:1200884350": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/TickLabels.test.js:3094256278": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/ViewingLayer.test.js:2643658696": [
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/CanvasSpanGraph.test.js:1974748555": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/index.test.js:4118842298": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/TracePageHeader.test.js:3669774385": [
|
||||
[15, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/TracePageSearchBar.test.js:2095199604": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/ListView/index.test.js:793239444": [
|
||||
[15, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/ReferencesButton.test.js:2288177454": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBar.test.js:2127169675": [
|
||||
[15, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.test.js:814916029": [
|
||||
[15, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianKeyValues.test.js:2200354834": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianLogs.test.js:3242453659": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianReferences.test.js:1301875390": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianText.test.js:2881451220": [
|
||||
[15, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/KeyValuesTable.test.js:2159985979": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/TextList.test.js:3713828679": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/index.test.js:3788127934": [
|
||||
[17, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetailRow.test.js:1119974018": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanTreeOffset.test.js:232429058": [
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/GraphTicks.test.js:940336852": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/Ticks.test.js:2626977087": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/Scrubber.test.js:4256741694": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineCollapser.test.js:954294244": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/TickLabels.test.js:2931161174": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineColumnResizer.test.js:208811948": [
|
||||
[15, 17, 13, "RegExp match", "2409514259"]
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/ViewingLayer.test.js:1676554632": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineHeaderRow.test.js:1197952226": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/SpanGraph/index.test.js:186764954": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineViewingLayer.test.js:3714128222": [
|
||||
[15, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/VirtualizedTraceView.test.js:2249890922": [
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/TracePageHeader.test.js:3242042907": [
|
||||
[14, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/index.test.js:4107025050": [
|
||||
"packages/jaeger-ui-components/src/TracePageHeader/TracePageSearchBar.test.js:2807329716": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/ListView/index.test.js:1734982398": [
|
||||
[14, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/ReferencesButton.test.js:3807792910": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBar.test.js:1478502145": [
|
||||
[14, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.test.js:3826510429": [
|
||||
[14, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianKeyValues.test.js:2408389970": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianLogs.test.js:3960703835": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianReferences.test.js:2429764318": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianText.test.js:1966455998": [
|
||||
[14, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/KeyValuesTable.test.js:3813002651": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/TextList.test.js:3006381933": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/index.test.js:3097530078": [
|
||||
[16, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetailRow.test.js:2623922632": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanTreeOffset.test.js:1117377794": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/Ticks.test.js:743308415": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineCollapser.test.js:4018342820": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineColumnResizer.test.js:2286101708": [
|
||||
[15, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineHeaderRow.test.js:2106409544": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineViewingLayer.test.js:1423129438": [
|
||||
[15, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/VirtualizedTraceView.test.js:2326471104": [
|
||||
[13, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/TraceTimelineViewer/index.test.js:381298544": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/common/CopyIcon.test.js:187212136": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/common/CopyIcon.test.js:3119664776": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/jaeger-ui-components/src/common/NewWindowIcon.test.js:1750458349": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/common/NewWindowIcon.test.js:3878561197": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/jaeger-ui-components/src/common/UiFindInput.test.js:2207118020": [
|
||||
[14, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/common/UiFindInput.test.js:2258975438": [
|
||||
[15, 19, 13, "RegExp match", "2409514259"]
|
||||
"packages/jaeger-ui-components/src/url/ReferenceLink.test.js:3249503373": [
|
||||
[14, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"packages/jaeger-ui-components/src/url/ReferenceLink.test.js:830986413": [
|
||||
[15, 26, 13, "RegExp match", "2409514259"]
|
||||
"public/app/core/components/PageActionBar/PageActionBar.test.tsx:1251504193": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/core/components/PageActionBar/PageActionBar.test.tsx:2111991019": [
|
||||
"public/app/core/components/QueryOperationRow/QueryOperationAction.test.tsx:3032694716": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/core/components/QueryOperationRow/QueryOperationRow.test.tsx:2026575657": [
|
||||
[0, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/core/components/Select/FolderPicker.test.tsx:993468764": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/core/components/Select/MetricSelect.test.tsx:3351544014": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/alerting/AlertRuleList.test.tsx:2998938420": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/alerting/TestRuleResult.test.tsx:2358420489": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/api-keys/ApiKeysAddedModal.test.tsx:3246264379": [
|
||||
[0, 20, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/components/DashboardRow/DashboardRow.test.tsx:1463123173": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/components/SaveDashboard/forms/SaveDashboardAsForm.test.tsx:1969004590": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/components/SaveDashboard/forms/SaveDashboardForm.test.tsx:948029434": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/components/ShareModal/ShareLink.test.tsx:2357087833": [
|
||||
[0, 35, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/dashgrid/DashboardGrid.test.tsx:2723773538": [
|
||||
[0, 35, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.test.tsx:2851646279": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/DashboardsTable.test.tsx:1950355032": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/DataSourceDashboards.test.tsx:1369048021": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/DataSourcesListPage.test.tsx:2960099202": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/settings/BasicSettings.test.tsx:625016324": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/settings/ButtonRow.test.tsx:1422996720": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dimensions/editors/ThresholdsEditor/ThresholdsEditor.test.tsx:4164297658": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/LiveLogs.test.tsx:156663779": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/RichHistory/RichHistoryStarredTab.test.tsx:3328200031": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/RunButton.test.tsx:4267530266": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/SecondaryActions.test.tsx:1177396128": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/TimeSyncButton.test.tsx:853739820": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/folders/FolderSettingsPage.test.tsx:1109052730": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/invites/InviteesTable.test.tsx:3612992381": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/org/OrgDetailsPage.test.tsx:3835042085": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/org/OrgProfile.test.tsx:623809345": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/CreateTeam.test.tsx:1750035593": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamGroupSync.test.tsx:2526985933": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamList.test.tsx:854193970": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamMemberRow.test.tsx:1649328210": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamMembers.test.tsx:4089428239": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamPages.test.tsx:3990420214": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamSettings.test.tsx:2043271249": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/users/UsersActionBar.test.tsx:3740177621": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/users/UsersListPage.test.tsx:3908145117": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/users/UsersTable.test.tsx:263958312": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloud-monitoring/components/Aggregation.test.tsx:3822406835": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/core/components/QueryOperationRow/QueryOperationAction.test.tsx:1284778262": [
|
||||
[2, 19, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/cloudwatch/components/ConfigEditor.test.tsx:1224072551": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/core/components/QueryOperationRow/QueryOperationRow.test.tsx:4115956163": [
|
||||
[2, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/core/components/Select/FolderPicker.test.tsx:3389713532": [
|
||||
"public/app/plugins/datasource/cloudwatch/components/LogsQueryField.test.tsx:2097436158": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/core/components/Select/MetricSelect.test.tsx:3409251428": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/elasticsearch/configuration/ConfigEditor.test.tsx:3481855642": [
|
||||
[0, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/alerting/AlertRuleList.test.tsx:1800339390": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/elasticsearch/configuration/DataLinks.test.tsx:248699332": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/alerting/TestRuleResult.test.tsx:4118445705": [
|
||||
[3, 19, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/grafana-azure-monitor-datasource/components/deprecated/components/InsightsConfig.test.tsx:1107283234": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/api-keys/ApiKeysAddedModal.test.tsx:3516294961": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/influxdb/components/ConfigEditor.test.tsx:3456478975": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/components/DashboardRow/DashboardRow.test.tsx:2934056165": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/loki/components/LokiExploreQueryEditor.test.tsx:1488067923": [
|
||||
[0, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/components/SaveDashboard/forms/SaveDashboardAsForm.test.tsx:2536713486": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/loki/components/LokiQueryEditor.test.tsx:146069464": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/components/SaveDashboard/forms/SaveDashboardForm.test.tsx:1262111696": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/loki/configuration/ConfigEditor.test.tsx:3658171175": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/components/ShareModal/ShareLink.test.tsx:809006195": [
|
||||
[1, 35, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/loki/configuration/DebugSection.test.tsx:1551927716": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/dashgrid/DashboardGrid.test.tsx:3682134210": [
|
||||
[1, 35, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/loki/configuration/DerivedField.test.tsx:3570129984": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.test.tsx:3293585799": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/loki/configuration/DerivedFields.test.tsx:2402631398": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/DashboardsTable.test.tsx:1799076152": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/datasource/prometheus/configuration/AzureCredentialsForm.test.tsx:3424320489": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/DataSourceDashboards.test.tsx:3705773301": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/DataSourcesListPage.test.tsx:1470540840": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/settings/BasicSettings.test.tsx:3867031406": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/datasources/settings/ButtonRow.test.tsx:1546608090": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/dimensions/editors/ThresholdsEditor/ThresholdsEditor.test.tsx:2556927610": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/LiveLogs.test.tsx:1667605379": [
|
||||
[2, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/RichHistory/RichHistoryStarredTab.test.tsx:492930613": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/RunButton.test.tsx:138299098": [
|
||||
[3, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/SecondaryActions.test.tsx:2096700362": [
|
||||
[2, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/explore/TimeSyncButton.test.tsx:4230066214": [
|
||||
[2, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/folders/FolderSettingsPage.test.tsx:3884290298": [
|
||||
[2, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/invites/InviteesTable.test.tsx:3077684439": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/org/OrgDetailsPage.test.tsx:2540662821": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/org/OrgProfile.test.tsx:4200739179": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/CreateTeam.test.tsx:262744099": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamGroupSync.test.tsx:1549471437": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamList.test.tsx:3009556824": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamMemberRow.test.tsx:7032440": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamMembers.test.tsx:3993436101": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamPages.test.tsx:1265047708": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/teams/TeamSettings.test.tsx:2628968507": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/users/UsersActionBar.test.tsx:4031641375": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/users/UsersListPage.test.tsx:2626906707": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/features/users/UsersTable.test.tsx:3051231816": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloud-monitoring/components/Aggregation.test.tsx:2813729913": [
|
||||
[2, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/components/ConfigEditor.test.tsx:2974837543": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/components/LogsQueryField.test.tsx:3888529428": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/elasticsearch/configuration/ConfigEditor.test.tsx:1089831034": [
|
||||
[1, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/elasticsearch/configuration/DataLinks.test.tsx:2916632804": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/grafana-azure-monitor-datasource/components/deprecated/components/InsightsConfig.test.tsx:1635510338": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/influxdb/components/ConfigEditor.test.tsx:767000341": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/components/LokiExploreQueryEditor.test.tsx:2608233977": [
|
||||
[1, 26, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/components/LokiQueryEditor.test.tsx:2337402520": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/configuration/ConfigEditor.test.tsx:1661240493": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/configuration/DebugSection.test.tsx:2909181412": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/configuration/DerivedField.test.tsx:1527527456": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/configuration/DerivedFields.test.tsx:2923116422": [
|
||||
[1, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/prometheus/configuration/AzureCredentialsForm.test.tsx:1231427": [
|
||||
[1, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/panel/bargauge/BarGaugePanel.test.tsx:1527575498": [
|
||||
[1, 31, 13, "RegExp match", "2409514259"]
|
||||
"public/app/plugins/panel/bargauge/BarGaugePanel.test.tsx:1597135392": [
|
||||
[0, 31, 13, "RegExp match", "2409514259"]
|
||||
]
|
||||
}`
|
||||
};
|
||||
|
@ -20,3 +20,6 @@ vendor
|
||||
# Auto-generated localisation files
|
||||
public/locales/_build/
|
||||
public/locales/**/*.js
|
||||
|
||||
# Auto-generated icon file
|
||||
packages/grafana-ui/src/components/Icon/iconBundle.ts
|
||||
|
16
.eslintrc
16
.eslintrc
@ -1,12 +1,24 @@
|
||||
{
|
||||
"extends": ["@grafana/eslint-config"],
|
||||
"root": true,
|
||||
"plugins": ["@emotion", "lodash", "jest"],
|
||||
"plugins": ["@emotion", "lodash", "jest", "import"],
|
||||
"settings": {
|
||||
"import/internal-regex": "^(app/)|(@grafana)",
|
||||
"import/external-module-folders": ["node_modules", ".yarn"]
|
||||
},
|
||||
"rules": {
|
||||
"react/prop-types": "off",
|
||||
"@emotion/jsx-import": "error",
|
||||
"lodash/import-scope": [2, "member"],
|
||||
"jest/no-focused-tests": "error"
|
||||
"jest/no-focused-tests": "error",
|
||||
"import/order": [
|
||||
"error",
|
||||
{
|
||||
"groups": [["builtin", "external"], "internal", "parent", "sibling", "index"],
|
||||
"newlines-between": "always",
|
||||
"alphabetize": { "order": "asc" }
|
||||
}
|
||||
]
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { e2e } from '@grafana/e2e';
|
||||
import {
|
||||
addDays,
|
||||
addHours,
|
||||
@ -10,6 +9,8 @@ import {
|
||||
toDate,
|
||||
} from 'date-fns';
|
||||
|
||||
import { e2e } from '@grafana/e2e';
|
||||
|
||||
e2e.scenario({
|
||||
describeName: 'Dashboard time zone support',
|
||||
itName: 'Tests dashboard time zone scenarios',
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { e2e } from '@grafana/e2e';
|
||||
|
||||
import { expect } from '../../public/test/lib/common';
|
||||
|
||||
const flakyTimeout = 10000;
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { e2e } from '@grafana/e2e';
|
||||
|
||||
import { smokeTestScenario } from '../shared/smokeTestScenario';
|
||||
|
||||
e2e.scenario(smokeTestScenario);
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { e2e } from '@grafana/e2e';
|
||||
|
||||
import { smokeTestScenario } from '../../shared/smokeTestScenario';
|
||||
|
||||
e2e.scenario(smokeTestScenario);
|
||||
|
@ -22,7 +22,7 @@
|
||||
"lint:ts": "eslint . --ext .js,.tsx,.ts --cache",
|
||||
"lint:sass": "yarn stylelint '{public/sass,packages}/**/*.scss' --cache",
|
||||
"test:ci": "betterer ci && mkdir -p reports/junit && JEST_JUNIT_OUTPUT_DIR=reports/junit jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}",
|
||||
"lint:fix": "yarn lint --fix",
|
||||
"lint:fix": "yarn lint:ts --fix",
|
||||
"packages:build": "lerna run clean && lerna run build --ignore @grafana-plugins/input-datasource",
|
||||
"packages:docsExtract": "rm -rf ./reports/docs && lerna run docsExtract",
|
||||
"packages:docsToMarkdown": "api-documenter markdown --input-folder ./reports/docs/ --output-folder ./docs/sources/packages_api/ --hugo",
|
||||
@ -182,6 +182,7 @@
|
||||
"enzyme-to-json": "3.6.2",
|
||||
"eslint": "8.11.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jest": "26.1.2",
|
||||
"eslint-plugin-jsdoc": "38.0.6",
|
||||
"eslint-plugin-lodash": "7.4.0",
|
||||
|
@ -1,9 +1,9 @@
|
||||
import resolve from '@rollup/plugin-node-resolve';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import sourceMaps from 'rollup-plugin-sourcemaps';
|
||||
import json from '@rollup/plugin-json';
|
||||
import { terser } from 'rollup-plugin-terser';
|
||||
import resolve from '@rollup/plugin-node-resolve';
|
||||
import path from 'path';
|
||||
import sourceMaps from 'rollup-plugin-sourcemaps';
|
||||
import { terser } from 'rollup-plugin-terser';
|
||||
|
||||
const pkg = require('./package.json');
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { FieldType, DataFrame } from '../types';
|
||||
|
||||
import { ArrayDataFrame } from './ArrayDataFrame';
|
||||
import { toDataFrameDTO } from './processDataFrame';
|
||||
import { FieldType, DataFrame } from '../types';
|
||||
|
||||
describe('Array DataFrame', () => {
|
||||
const input = [
|
||||
|
@ -1,8 +1,9 @@
|
||||
import { Field, FieldType, DataFrame } from '../types/dataFrame';
|
||||
import { vectorToArray } from '../vector/vectorToArray';
|
||||
import { Vector, QueryResultMeta } from '../types';
|
||||
import { guessFieldTypeFromNameAndValue, toDataFrameDTO } from './processDataFrame';
|
||||
import { Field, FieldType, DataFrame } from '../types/dataFrame';
|
||||
import { FunctionalVector } from '../vector/FunctionalVector';
|
||||
import { vectorToArray } from '../vector/vectorToArray';
|
||||
|
||||
import { guessFieldTypeFromNameAndValue, toDataFrameDTO } from './processDataFrame';
|
||||
|
||||
/** @public */
|
||||
export type ValueConverter<T = any> = (val: any) => T;
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
import { CircularVector } from '../vector/CircularVector';
|
||||
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
|
||||
interface CircularOptions {
|
||||
append?: 'head' | 'tail';
|
||||
capacity?: number;
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { FieldType } from '../types/dataFrame';
|
||||
|
||||
import { DataFrameJSON, dataFrameFromJSON } from './DataFrameJSON';
|
||||
|
||||
describe('DataFrame JSON', () => {
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { DataFrame, FieldType, FieldConfig, Labels, QueryResultMeta } from '../types';
|
||||
import { ArrayVector } from '../vector';
|
||||
|
||||
import { guessFieldTypeFromNameAndValue } from './processDataFrame';
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { FieldType, DataFrameDTO } from '../types/dataFrame';
|
||||
import { DateTime } from '../datetime/moment_wrapper';
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
import { FieldType, DataFrameDTO } from '../types/dataFrame';
|
||||
|
||||
import { DataFrameView } from './DataFrameView';
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
|
||||
interface MySpecialObject {
|
||||
time: DateTime;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { DataFrame, Field } from '../types/dataFrame';
|
||||
import { DisplayProcessor } from '../types';
|
||||
import { DataFrame, Field } from '../types/dataFrame';
|
||||
import { FunctionalVector } from '../vector/FunctionalVector';
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { FieldCache } from './FieldCache';
|
||||
import { FieldType } from '../types/dataFrame';
|
||||
|
||||
import { FieldCache } from './FieldCache';
|
||||
import { toDataFrame } from './processDataFrame';
|
||||
|
||||
describe('FieldCache', () => {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { DataFrameDTO, FieldType } from '../types/dataFrame';
|
||||
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
|
||||
describe('Reversing DataFrame', () => {
|
||||
|
@ -1,12 +1,14 @@
|
||||
import { Field, DataFrame, DataFrameDTO, FieldDTO, FieldType } from '../types/dataFrame';
|
||||
import { QueryResultMeta } from '../types/data';
|
||||
import { guessFieldTypeFromValue, guessFieldTypeForField, toDataFrameDTO } from './processDataFrame';
|
||||
import { isString } from 'lodash';
|
||||
import { makeFieldParser } from '../utils/fieldParser';
|
||||
|
||||
import { QueryResultMeta } from '../types/data';
|
||||
import { Field, DataFrame, DataFrameDTO, FieldDTO, FieldType } from '../types/dataFrame';
|
||||
import { MutableVector, Vector } from '../types/vector';
|
||||
import { makeFieldParser } from '../utils/fieldParser';
|
||||
import { ArrayVector } from '../vector/ArrayVector';
|
||||
import { FunctionalVector } from '../vector/FunctionalVector';
|
||||
|
||||
import { guessFieldTypeFromValue, guessFieldTypeForField, toDataFrameDTO } from './processDataFrame';
|
||||
|
||||
export type MutableField<T = any> = Field<T, MutableVector<T>>;
|
||||
|
||||
type MutableVectorCreator = (buffer?: any[]) => MutableVector;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Field } from '../types/dataFrame';
|
||||
import { KeyValue } from '../types/data';
|
||||
import { Field } from '../types/dataFrame';
|
||||
|
||||
export interface Dimension<T = any> {
|
||||
// Name of the dimension
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { FieldType } from '../types/dataFrame';
|
||||
|
||||
import { compareDataFrameStructures, compareArrayValues } from './frameComparisons';
|
||||
import { toDataFrame } from './processDataFrame';
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
import { dateTime } from '../datetime/moment_wrapper';
|
||||
import { DataFrameDTO, FieldType, TableData, TimeSeries } from '../types/index';
|
||||
|
||||
import { ArrayDataFrame } from './ArrayDataFrame';
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
import {
|
||||
guessFieldTypeFromValue,
|
||||
guessFieldTypes,
|
||||
@ -7,10 +12,7 @@ import {
|
||||
toDataFrame,
|
||||
toLegacyResponseData,
|
||||
} from './processDataFrame';
|
||||
import { DataFrameDTO, FieldType, TableData, TimeSeries } from '../types/index';
|
||||
import { dateTime } from '../datetime/moment_wrapper';
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
import { ArrayDataFrame } from './ArrayDataFrame';
|
||||
|
||||
import { getFieldTypeFromValue } from '.';
|
||||
|
||||
describe('toDataFrame', () => {
|
||||
|
@ -2,6 +2,9 @@
|
||||
import { isArray, isBoolean, isNumber, isString } from 'lodash';
|
||||
|
||||
// Types
|
||||
import { isDateTime } from '../datetime/moment_wrapper';
|
||||
import { fieldIndexComparer } from '../field/fieldComparers';
|
||||
import { getFieldDisplayName } from '../field/fieldState';
|
||||
import {
|
||||
DataFrame,
|
||||
Field,
|
||||
@ -17,15 +20,13 @@ import {
|
||||
TIME_SERIES_VALUE_FIELD_NAME,
|
||||
TIME_SERIES_TIME_FIELD_NAME,
|
||||
} from '../types/index';
|
||||
import { isDateTime } from '../datetime/moment_wrapper';
|
||||
import { ArrayVector } from '../vector/ArrayVector';
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
import { SortedVector } from '../vector/SortedVector';
|
||||
import { ArrayDataFrame } from './ArrayDataFrame';
|
||||
import { getFieldDisplayName } from '../field/fieldState';
|
||||
import { fieldIndexComparer } from '../field/fieldComparers';
|
||||
import { vectorToArray } from '../vector/vectorToArray';
|
||||
|
||||
import { ArrayDataFrame } from './ArrayDataFrame';
|
||||
import { dataFrameFromJSON } from './DataFrameJSON';
|
||||
import { MutableDataFrame } from './MutableDataFrame';
|
||||
|
||||
function convertTableToDataFrame(table: TableData): DataFrame {
|
||||
const fields = table.columns.map((c) => {
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { toDataFrame } from './processDataFrame';
|
||||
import { FieldType } from '../types';
|
||||
|
||||
import { toDataFrame } from './processDataFrame';
|
||||
import { anySeriesWithTimeField } from './utils';
|
||||
|
||||
describe('anySeriesWithTimeField', () => {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { DataFrame, FieldType } from '../types/dataFrame';
|
||||
|
||||
import { getTimeField } from './processDataFrame';
|
||||
|
||||
export function isTimeSerie(frame: DataFrame) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import sinon, { SinonFakeTimers } from 'sinon';
|
||||
import { each } from 'lodash';
|
||||
import sinon, { SinonFakeTimers } from 'sinon';
|
||||
|
||||
import * as dateMath from './datemath';
|
||||
import { dateTime, DurationUnit, DateTime } from './moment_wrapper';
|
||||
|
@ -1,7 +1,9 @@
|
||||
import { includes, isDate } from 'lodash';
|
||||
import { DateTime, dateTime, dateTimeForTimeZone, DurationUnit, isDateTime, ISO_8601 } from './moment_wrapper';
|
||||
|
||||
import { TimeZone } from '../types/index';
|
||||
|
||||
import { DateTime, dateTime, dateTimeForTimeZone, DurationUnit, isDateTime, ISO_8601 } from './moment_wrapper';
|
||||
|
||||
const units: DurationUnit[] = ['y', 'M', 'w', 'd', 'h', 'm', 's', 'Q'];
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Duration, Interval } from 'date-fns';
|
||||
import intervalToDuration from 'date-fns/intervalToDuration';
|
||||
import add from 'date-fns/add';
|
||||
import intervalToDuration from 'date-fns/intervalToDuration';
|
||||
|
||||
const durationMap: { [key in Required<keyof Duration>]: string[] } = {
|
||||
years: ['y', 'Y', 'years'],
|
||||
|
@ -1,9 +1,11 @@
|
||||
/* eslint-disable id-blacklist, no-restricted-imports, @typescript-eslint/ban-types */
|
||||
import moment, { MomentInput, Moment } from 'moment-timezone';
|
||||
|
||||
import { TimeZone } from '../types';
|
||||
import { DateTimeInput } from './moment_wrapper';
|
||||
import { systemDateFormats } from './formats';
|
||||
|
||||
import { DateTimeOptions, getTimeZone } from './common';
|
||||
import { systemDateFormats } from './formats';
|
||||
import { DateTimeInput } from './moment_wrapper';
|
||||
|
||||
/**
|
||||
* The type describing the options that can be passed to the {@link dateTimeFormat}
|
||||
|
@ -1,6 +1,7 @@
|
||||
import moment, { Moment, MomentInput, DurationInputArg1, DurationInputArg2 } from 'moment';
|
||||
|
||||
import { TimeZone } from '../types/time';
|
||||
/* eslint-disable id-blacklist, no-restricted-imports, @typescript-eslint/ban-types */
|
||||
import moment, { Moment, MomentInput, DurationInputArg1, DurationInputArg2 } from 'moment';
|
||||
export interface DateTimeBuiltinFormat {
|
||||
__momentBuiltinFormatBrand: any;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { dateTimeParse } from './parser';
|
||||
import { systemDateFormats } from './formats';
|
||||
import { dateTimeParse } from './parser';
|
||||
|
||||
describe('dateTimeParse', () => {
|
||||
it('should be able to parse using default format', () => {
|
||||
|
@ -1,10 +1,11 @@
|
||||
/* eslint-disable id-blacklist, no-restricted-imports, @typescript-eslint/ban-types */
|
||||
import { lowerCase } from 'lodash';
|
||||
import moment, { MomentInput } from 'moment-timezone';
|
||||
import { DateTimeInput, DateTime, isDateTime } from './moment_wrapper';
|
||||
|
||||
import { DateTimeOptions, getTimeZone } from './common';
|
||||
import { parse, isValid } from './datemath';
|
||||
import { lowerCase } from 'lodash';
|
||||
import { systemDateFormats } from './formats';
|
||||
import { DateTimeInput, DateTime, isDateTime } from './moment_wrapper';
|
||||
|
||||
/**
|
||||
* The type that describes options that can be passed when parsing a date and time value.
|
||||
|
@ -1,7 +1,9 @@
|
||||
import { TimeRange } from '../types/time';
|
||||
import { dateTime, rangeUtil } from './index';
|
||||
|
||||
import { timeRangeToRelative } from './rangeutil';
|
||||
|
||||
import { dateTime, rangeUtil } from './index';
|
||||
|
||||
describe('Range Utils', () => {
|
||||
describe('relative time', () => {
|
||||
it('should identify absolute vs relative', () => {
|
||||
|
@ -3,8 +3,8 @@ import { each, has } from 'lodash';
|
||||
import { RawTimeRange, TimeRange, TimeZone, IntervalValues, RelativeTimeRange, TimeOption } from '../types/time';
|
||||
|
||||
import * as dateMath from './datemath';
|
||||
import { isDateTime, DateTime, dateTime } from './moment_wrapper';
|
||||
import { timeZoneAbbrevation, dateTimeFormat, dateTimeFormatTimeAgo } from './formatter';
|
||||
import { isDateTime, DateTime, dateTime } from './moment_wrapper';
|
||||
import { dateTimeParse } from './parser';
|
||||
|
||||
const spans: { [key: string]: { display: string; section?: number } } = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { getTimeZoneInfo } from './timezones';
|
||||
import { setTimeZoneResolver } from './common';
|
||||
import { getTimeZoneInfo } from './timezones';
|
||||
|
||||
describe('getTimeZoneInfo', () => {
|
||||
// global timezone is set to Pacific/Easter, see jest-config.js file
|
||||
|
@ -1,6 +1,8 @@
|
||||
import moment from 'moment-timezone';
|
||||
import { memoize } from 'lodash';
|
||||
import moment from 'moment-timezone';
|
||||
|
||||
import { TimeZone } from '../types';
|
||||
|
||||
import { getTimeZone } from './common';
|
||||
|
||||
export enum InternalTimeZones {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { EventBusSrv } from './EventBus';
|
||||
import { BusEvent, BusEventWithPayload } from './types';
|
||||
import { eventFactory } from './eventFactory';
|
||||
import { DataHoverEvent } from './common';
|
||||
import { eventFactory } from './eventFactory';
|
||||
import { BusEvent, BusEventWithPayload } from './types';
|
||||
|
||||
interface LoginEventPayload {
|
||||
logins: number;
|
||||
|
@ -1,6 +1,7 @@
|
||||
import EventEmitter from 'eventemitter3';
|
||||
import { Unsubscribable, Observable } from 'rxjs';
|
||||
import { filter } from 'rxjs/operators';
|
||||
|
||||
import {
|
||||
EventBus,
|
||||
LegacyEmitter,
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { AnnotationEvent, DataFrame } from '../types';
|
||||
|
||||
import { BusEventBase, BusEventWithPayload } from './types';
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Registry } from '../utils/Registry';
|
||||
import { FieldConfigPropertyItem } from '../types/fieldOverrides';
|
||||
import { Registry } from '../utils/Registry';
|
||||
|
||||
export class FieldConfigOptionsRegistry extends Registry<FieldConfigPropertyItem> {}
|
||||
|
@ -1,9 +1,10 @@
|
||||
import { getDisplayProcessor, getRawDisplayProcessor } from './displayProcessor';
|
||||
import { DisplayProcessor, DisplayValue } from '../types/displayValue';
|
||||
import { MappingType, ValueMapping } from '../types/valueMapping';
|
||||
import { FieldConfig, FieldType, ThresholdsMode } from '../types';
|
||||
import { systemDateFormats } from '../datetime';
|
||||
import { createTheme } from '../themes';
|
||||
import { FieldConfig, FieldType, ThresholdsMode } from '../types';
|
||||
import { DisplayProcessor, DisplayValue } from '../types/displayValue';
|
||||
import { MappingType, ValueMapping } from '../types/valueMapping';
|
||||
|
||||
import { getDisplayProcessor, getRawDisplayProcessor } from './displayProcessor';
|
||||
|
||||
function getDisplayProcessorFromConfig(config: FieldConfig) {
|
||||
return getDisplayProcessor({
|
||||
|
@ -2,16 +2,17 @@
|
||||
import { toString, toNumber as _toNumber, isEmpty, isBoolean, isArray, join } from 'lodash';
|
||||
|
||||
// Types
|
||||
import { getFieldTypeFromValue } from '../dataframe/processDataFrame';
|
||||
import { toUtc, dateTimeParse } from '../datetime';
|
||||
import { GrafanaTheme2 } from '../themes/types';
|
||||
import { KeyValue, TimeZone } from '../types';
|
||||
import { Field, FieldType } from '../types/dataFrame';
|
||||
import { DisplayProcessor, DisplayValue } from '../types/displayValue';
|
||||
import { getValueFormat, isBooleanUnit } from '../valueFormats/valueFormats';
|
||||
import { getValueMappingResult } from '../utils/valueMappings';
|
||||
import { toUtc, dateTimeParse } from '../datetime';
|
||||
import { KeyValue, TimeZone } from '../types';
|
||||
import { getScaleCalculator } from './scale';
|
||||
import { GrafanaTheme2 } from '../themes/types';
|
||||
import { anyToNumber } from '../utils/anyToNumber';
|
||||
import { getFieldTypeFromValue } from '../dataframe/processDataFrame';
|
||||
import { getValueMappingResult } from '../utils/valueMappings';
|
||||
import { getValueFormat, isBooleanUnit } from '../valueFormats/valueFormats';
|
||||
|
||||
import { getScaleCalculator } from './scale';
|
||||
|
||||
interface DisplayProcessorOptions {
|
||||
field: Partial<Field>;
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { createTheme } from '../themes';
|
||||
import { Field, FieldColorModeId, FieldType } from '../types';
|
||||
import { ArrayVector } from '../vector/ArrayVector';
|
||||
|
||||
import { fieldColorModeRegistry, FieldValueColorCalculator, getFieldSeriesColor } from './fieldColor';
|
||||
|
||||
function getTestField(mode: string): Field {
|
||||
|
@ -1,11 +1,13 @@
|
||||
import { interpolateRgbBasis } from 'd3-interpolate';
|
||||
|
||||
import { GrafanaTheme2 } from '../themes/types';
|
||||
import { reduceField } from '../transformations/fieldReducer';
|
||||
import { FALLBACK_COLOR, Field, FieldColorModeId, Threshold } from '../types';
|
||||
import { RegistryItem } from '../utils';
|
||||
import { Registry } from '../utils/Registry';
|
||||
import { interpolateRgbBasis } from 'd3-interpolate';
|
||||
import { fallBackTreshold } from './thresholds';
|
||||
|
||||
import { getScaleCalculator, ColorScaleValue } from './scale';
|
||||
import { reduceField } from '../transformations/fieldReducer';
|
||||
import { GrafanaTheme2 } from '../themes/types';
|
||||
import { fallBackTreshold } from './thresholds';
|
||||
|
||||
/** @beta */
|
||||
export type FieldValueColorCalculator = (value: number, percent: number, Threshold?: Threshold) => string;
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { isNumber } from 'lodash';
|
||||
|
||||
import { dateTime } from '../datetime';
|
||||
import { Field, FieldType } from '../types/dataFrame';
|
||||
import { Vector } from '../types/vector';
|
||||
import { dateTime } from '../datetime';
|
||||
import { isNumber } from 'lodash';
|
||||
|
||||
type IndexComparer = (a: number, b: number) => number;
|
||||
|
||||
|
@ -1,11 +1,13 @@
|
||||
import { merge } from 'lodash';
|
||||
import { getFieldDisplayValues, GetFieldDisplayValuesOptions } from './fieldDisplay';
|
||||
|
||||
import { toDataFrame } from '../dataframe/processDataFrame';
|
||||
import { createTheme } from '../themes';
|
||||
import { ReducerID } from '../transformations/fieldReducer';
|
||||
import { MappingType, SpecialValueMatch, ValueMapping } from '../types';
|
||||
import { standardFieldConfigEditorRegistry } from './standardFieldConfigEditorRegistry';
|
||||
import { createTheme } from '../themes';
|
||||
|
||||
import { getDisplayProcessor } from './displayProcessor';
|
||||
import { getFieldDisplayValues, GetFieldDisplayValuesOptions } from './fieldDisplay';
|
||||
import { standardFieldConfigEditorRegistry } from './standardFieldConfigEditorRegistry';
|
||||
|
||||
describe('FieldDisplay', () => {
|
||||
beforeAll(() => {
|
||||
|
@ -1,6 +1,11 @@
|
||||
import { toString, isEmpty } from 'lodash';
|
||||
|
||||
import { getDisplayProcessor } from './displayProcessor';
|
||||
import { DataFrameView } from '../dataframe/DataFrameView';
|
||||
import { getTimeField } from '../dataframe/processDataFrame';
|
||||
import { GrafanaTheme2 } from '../themes';
|
||||
import { getFieldMatcher } from '../transformations';
|
||||
import { reduceField, ReducerID } from '../transformations/fieldReducer';
|
||||
import { FieldMatcherID } from '../transformations/matchers/ids';
|
||||
import {
|
||||
DataFrame,
|
||||
DisplayValue,
|
||||
@ -14,13 +19,9 @@ import {
|
||||
TimeRange,
|
||||
TimeZone,
|
||||
} from '../types';
|
||||
import { DataFrameView } from '../dataframe/DataFrameView';
|
||||
import { GrafanaTheme2 } from '../themes';
|
||||
import { reduceField, ReducerID } from '../transformations/fieldReducer';
|
||||
import { ScopedVars } from '../types/ScopedVars';
|
||||
import { getTimeField } from '../dataframe/processDataFrame';
|
||||
import { getFieldMatcher } from '../transformations';
|
||||
import { FieldMatcherID } from '../transformations/matchers/ids';
|
||||
|
||||
import { getDisplayProcessor } from './displayProcessor';
|
||||
import { getFieldDisplayName } from './fieldState';
|
||||
|
||||
/**
|
||||
|
@ -1,13 +1,6 @@
|
||||
import {
|
||||
applyFieldOverrides,
|
||||
applyRawFieldOverrides,
|
||||
FieldOverrideEnv,
|
||||
findNumericFieldMinMax,
|
||||
getLinksSupplier,
|
||||
setDynamicConfigValue,
|
||||
setFieldConfigDefaults,
|
||||
} from './fieldOverrides';
|
||||
import { ArrayDataFrame, MutableDataFrame, toDataFrame } from '../dataframe';
|
||||
import { createTheme } from '../themes';
|
||||
import { FieldMatcherID } from '../transformations';
|
||||
import {
|
||||
DataFrame,
|
||||
Field,
|
||||
@ -22,12 +15,20 @@ import {
|
||||
} from '../types';
|
||||
import { locationUtil, Registry } from '../utils';
|
||||
import { mockStandardProperties } from '../utils/tests/mockStandardProperties';
|
||||
import { FieldMatcherID } from '../transformations';
|
||||
import { FieldConfigOptionsRegistry } from './FieldConfigOptionsRegistry';
|
||||
import { getFieldDisplayName } from './fieldState';
|
||||
import { ArrayVector } from '../vector';
|
||||
|
||||
import { FieldConfigOptionsRegistry } from './FieldConfigOptionsRegistry';
|
||||
import { getDisplayProcessor } from './displayProcessor';
|
||||
import { createTheme } from '../themes';
|
||||
import {
|
||||
applyFieldOverrides,
|
||||
applyRawFieldOverrides,
|
||||
FieldOverrideEnv,
|
||||
findNumericFieldMinMax,
|
||||
getLinksSupplier,
|
||||
setDynamicConfigValue,
|
||||
setFieldConfigDefaults,
|
||||
} from './fieldOverrides';
|
||||
import { getFieldDisplayName } from './fieldState';
|
||||
|
||||
const property1: any = {
|
||||
id: 'custom.property1', // Match field properties
|
||||
|
@ -1,3 +1,9 @@
|
||||
import { isNumber, set, unset, get, cloneDeep } from 'lodash';
|
||||
|
||||
import { guessFieldTypeForField } from '../dataframe';
|
||||
import { getTimeField } from '../dataframe/processDataFrame';
|
||||
import { asHexString } from '../themes/colorManipulator';
|
||||
import { fieldMatchers, reduceField, ReducerID } from '../transformations';
|
||||
import {
|
||||
ApplyFieldOverrideOptions,
|
||||
DataFrame,
|
||||
@ -18,21 +24,17 @@ import {
|
||||
TimeZone,
|
||||
ValueLinkConfig,
|
||||
} from '../types';
|
||||
import { fieldMatchers, reduceField, ReducerID } from '../transformations';
|
||||
import { FieldMatcher } from '../types/transformations';
|
||||
import { isNumber, set, unset, get, cloneDeep } from 'lodash';
|
||||
import { getDisplayProcessor, getRawDisplayProcessor } from './displayProcessor';
|
||||
import { guessFieldTypeForField } from '../dataframe';
|
||||
import { standardFieldConfigEditorRegistry } from './standardFieldConfigEditorRegistry';
|
||||
import { FieldConfigOptionsRegistry } from './FieldConfigOptionsRegistry';
|
||||
import { DataLinkBuiltInVars, locationUtil } from '../utils';
|
||||
import { formattedValueToString } from '../valueFormats';
|
||||
import { getFieldDisplayValuesProxy } from './getFieldDisplayValuesProxy';
|
||||
import { getFrameDisplayName } from './fieldState';
|
||||
import { getTimeField } from '../dataframe/processDataFrame';
|
||||
import { mapInternalLinkToExplore } from '../utils/dataLinks';
|
||||
import { formattedValueToString } from '../valueFormats';
|
||||
|
||||
import { FieldConfigOptionsRegistry } from './FieldConfigOptionsRegistry';
|
||||
import { getDisplayProcessor, getRawDisplayProcessor } from './displayProcessor';
|
||||
import { getFrameDisplayName } from './fieldState';
|
||||
import { getFieldDisplayValuesProxy } from './getFieldDisplayValuesProxy';
|
||||
import { standardFieldConfigEditorRegistry } from './standardFieldConfigEditorRegistry';
|
||||
import { getTemplateProxyForField } from './templateProxies';
|
||||
import { asHexString } from '../themes/colorManipulator';
|
||||
|
||||
interface OverrideProps {
|
||||
match: FieldMatcher;
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { DataFrame, TIME_SERIES_VALUE_FIELD_NAME, FieldType } from '../types';
|
||||
import { getFieldDisplayName, getFrameDisplayName } from './fieldState';
|
||||
import { toDataFrame } from '../dataframe';
|
||||
import { DataFrame, TIME_SERIES_VALUE_FIELD_NAME, FieldType } from '../types';
|
||||
|
||||
import { getFieldDisplayName, getFrameDisplayName } from './fieldState';
|
||||
|
||||
interface TitleScenario {
|
||||
frames: DataFrame[];
|
||||
|
@ -1,8 +1,9 @@
|
||||
import { getFieldDisplayValuesProxy } from './getFieldDisplayValuesProxy';
|
||||
import { applyFieldOverrides } from './fieldOverrides';
|
||||
import { MutableDataFrame, toDataFrame } from '../dataframe';
|
||||
import { createTheme } from '../themes';
|
||||
|
||||
import { applyFieldOverrides } from './fieldOverrides';
|
||||
import { getFieldDisplayValuesProxy } from './getFieldDisplayValuesProxy';
|
||||
|
||||
describe('getFieldDisplayValuesProxy', () => {
|
||||
const shortTimeField = [{ name: 'Time', values: [1, 2, 3] }];
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
import { toNumber } from 'lodash';
|
||||
|
||||
import { DataFrame, DisplayValue, TimeZone } from '../types';
|
||||
import { formattedValueToString } from '../valueFormats';
|
||||
|
||||
import { getDisplayProcessor } from './displayProcessor';
|
||||
|
||||
/**
|
||||
|
@ -1,9 +1,10 @@
|
||||
import { ThresholdsMode, Field, FieldType, FieldColorModeId } from '../types';
|
||||
import { sortThresholds } from './thresholds';
|
||||
import { ArrayVector } from '../vector/ArrayVector';
|
||||
import { getScaleCalculator } from './scale';
|
||||
import { createTheme } from '../themes';
|
||||
import { ThresholdsMode, Field, FieldType, FieldColorModeId } from '../types';
|
||||
import { getColorForTheme } from '../utils';
|
||||
import { ArrayVector } from '../vector/ArrayVector';
|
||||
|
||||
import { getScaleCalculator } from './scale';
|
||||
import { sortThresholds } from './thresholds';
|
||||
|
||||
describe('getScaleCalculator', () => {
|
||||
it('should return percent, threshold and color', () => {
|
||||
|
@ -1,7 +1,9 @@
|
||||
import { isNumber } from 'lodash';
|
||||
|
||||
import { GrafanaTheme2 } from '../themes/types';
|
||||
import { reduceField, ReducerID } from '../transformations/fieldReducer';
|
||||
import { Field, FieldConfig, FieldType, NumericRange, Threshold } from '../types';
|
||||
|
||||
import { getFieldColorModeForField } from './fieldColor';
|
||||
import { getActiveThresholdForValue } from './thresholds';
|
||||
|
||||
|
@ -1,8 +1,10 @@
|
||||
import { Registry, RegistryItem } from '../utils/Registry';
|
||||
import { ComponentType } from 'react';
|
||||
import { FieldConfigOptionsRegistry } from './FieldConfigOptionsRegistry';
|
||||
import { DataFrame, InterpolateFunction, VariableSuggestionsScope, VariableSuggestion } from '../types';
|
||||
|
||||
import { EventBus } from '../events';
|
||||
import { DataFrame, InterpolateFunction, VariableSuggestionsScope, VariableSuggestion } from '../types';
|
||||
import { Registry, RegistryItem } from '../utils/Registry';
|
||||
|
||||
import { FieldConfigOptionsRegistry } from './FieldConfigOptionsRegistry';
|
||||
|
||||
export interface StandardEditorContext<TOptions, TState = any> {
|
||||
data: DataFrame[]; // All results
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { getTemplateProxyForField } from './templateProxies';
|
||||
import { toDataFrame } from '../dataframe';
|
||||
|
||||
import { getTemplateProxyForField } from './templateProxies';
|
||||
|
||||
describe('Template proxies', () => {
|
||||
it('supports name and displayName', () => {
|
||||
const frames = [
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { DataFrame, Field } from '../types';
|
||||
import { getFieldDisplayName } from './fieldState';
|
||||
import { formatLabels } from '../utils/labels';
|
||||
|
||||
import { getFieldDisplayName } from './fieldState';
|
||||
|
||||
/**
|
||||
* This object is created often, and only used when tmplates exist. Using a proxy lets us delay
|
||||
* calculations of the more complex structures (label names) until they are actually used
|
||||
|
@ -1,8 +1,9 @@
|
||||
import { ThresholdsConfig, ThresholdsMode, FieldConfig, Threshold, Field, FieldType } from '../types';
|
||||
import { sortThresholds, getActiveThreshold, getActiveThresholdForValue } from './thresholds';
|
||||
import { validateFieldConfig } from './fieldOverrides';
|
||||
import { ArrayVector } from '../vector/ArrayVector';
|
||||
|
||||
import { validateFieldConfig } from './fieldOverrides';
|
||||
import { sortThresholds, getActiveThreshold, getActiveThresholdForValue } from './thresholds';
|
||||
|
||||
describe('thresholds', () => {
|
||||
test('sort thresholds', () => {
|
||||
const thresholds: ThresholdsConfig = {
|
||||
|
@ -1,10 +1,11 @@
|
||||
import { RegistryItemWithOptions } from '../utils/Registry';
|
||||
import { PanelData } from '../types';
|
||||
import { GrafanaTheme2 } from '../themes';
|
||||
import { PanelOptionsEditorBuilder } from '../utils';
|
||||
import { ReactNode } from 'react';
|
||||
import { PluggableMap } from 'ol';
|
||||
import BaseLayer from 'ol/layer/Base';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
import { GrafanaTheme2 } from '../themes';
|
||||
import { PanelData } from '../types';
|
||||
import { PanelOptionsEditorBuilder } from '../utils';
|
||||
import { RegistryItemWithOptions } from '../utils/Registry';
|
||||
|
||||
/**
|
||||
* @alpha
|
||||
|
@ -1,8 +1,10 @@
|
||||
import React from 'react';
|
||||
import { identityOverrideProcessor, standardEditorsRegistry, standardFieldConfigEditorRegistry } from '../field';
|
||||
import { PanelPlugin } from './PanelPlugin';
|
||||
import { FieldConfigProperty } from '../types';
|
||||
|
||||
import { PanelOptionsEditorBuilder } from '..';
|
||||
import { identityOverrideProcessor, standardEditorsRegistry, standardFieldConfigEditorRegistry } from '../field';
|
||||
import { FieldConfigProperty } from '../types';
|
||||
|
||||
import { PanelPlugin } from './PanelPlugin';
|
||||
|
||||
describe('PanelPlugin', () => {
|
||||
describe('declarative options', () => {
|
||||
|
@ -1,3 +1,7 @@
|
||||
import { set } from 'lodash';
|
||||
import { ComponentClass, ComponentType } from 'react';
|
||||
|
||||
import { FieldConfigOptionsRegistry, StandardEditorContext } from '../field';
|
||||
import {
|
||||
FieldConfigSource,
|
||||
GrafanaPlugin,
|
||||
@ -10,11 +14,9 @@ import {
|
||||
PanelPluginDataSupport,
|
||||
VisualizationSuggestionsSupplier,
|
||||
} from '../types';
|
||||
import { FieldConfigEditorBuilder, PanelOptionsEditorBuilder } from '../utils/OptionsUIBuilders';
|
||||
import { ComponentClass, ComponentType } from 'react';
|
||||
import { set } from 'lodash';
|
||||
import { deprecationWarning } from '../utils';
|
||||
import { FieldConfigOptionsRegistry, StandardEditorContext } from '../field';
|
||||
import { FieldConfigEditorBuilder, PanelOptionsEditorBuilder } from '../utils/OptionsUIBuilders';
|
||||
|
||||
import { createFieldConfigRegistry } from './registryFactories';
|
||||
|
||||
/** @beta */
|
||||
|
@ -2,6 +2,7 @@ import { FieldConfigOptionsRegistry } from '../field/FieldConfigOptionsRegistry'
|
||||
import { standardFieldConfigEditorRegistry } from '../field/standardFieldConfigEditorRegistry';
|
||||
import { FieldConfigProperty, FieldConfigPropertyItem } from '../types/fieldOverrides';
|
||||
import { FieldConfigEditorBuilder } from '../utils/OptionsUIBuilders';
|
||||
|
||||
import { SetFieldConfigOptionsArgs } from './PanelPlugin';
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { marked } from 'marked';
|
||||
|
||||
import { sanitize, sanitizeTextPanelContent } from './sanitize';
|
||||
|
||||
let hasInitialized = false;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as xss from 'xss';
|
||||
import { sanitizeUrl as braintreeSanitizeUrl } from '@braintree/sanitize-url';
|
||||
import * as xss from 'xss';
|
||||
|
||||
const XSSWL = Object.keys(xss.whiteList).reduce((acc, element) => {
|
||||
acc[element] = xss.whiteList[element]?.concat(['class', 'style']);
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { merge } from 'lodash';
|
||||
|
||||
import { alpha, darken, emphasize, getContrastRatio, lighten } from './colorManipulator';
|
||||
import { palette } from './palette';
|
||||
import { DeepPartial, ThemeRichColor } from './types';
|
||||
|
@ -1,15 +1,15 @@
|
||||
import { createBreakpoints } from './breakpoints';
|
||||
import { createComponents } from './createComponents';
|
||||
import { createColors, ThemeColorsInput } from './createColors';
|
||||
import { createComponents } from './createComponents';
|
||||
import { createShadows } from './createShadows';
|
||||
import { createShape, ThemeShapeInput } from './createShape';
|
||||
import { createSpacing, ThemeSpacingOptions } from './createSpacing';
|
||||
import { createTransitions } from './createTransitions';
|
||||
import { createTypography, ThemeTypographyInput } from './createTypography';
|
||||
import { createV1Theme } from './createV1Theme';
|
||||
import { createVisualizationColors } from './createVisualizationColors';
|
||||
import { GrafanaTheme2 } from './types';
|
||||
import { zIndex } from './zIndex';
|
||||
import { createVisualizationColors } from './createVisualizationColors';
|
||||
|
||||
/** @internal */
|
||||
export interface NewThemeOptions {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { GrafanaTheme, GrafanaThemeCommons, GrafanaThemeType } from '../types';
|
||||
|
||||
import { GrafanaTheme2 } from './types';
|
||||
|
||||
export function createV1Theme(theme: Omit<GrafanaTheme2, 'v1'>): GrafanaTheme {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { FALLBACK_COLOR } from '../types';
|
||||
|
||||
import { ThemeColors } from './createColors';
|
||||
|
||||
/**
|
||||
|
@ -1,14 +1,15 @@
|
||||
import { GrafanaTheme } from '../types/theme';
|
||||
|
||||
import { ThemeBreakpoints } from './breakpoints';
|
||||
import { ThemeComponents } from './createComponents';
|
||||
import { ThemeColors } from './createColors';
|
||||
import { ThemeComponents } from './createComponents';
|
||||
import { ThemeShadows } from './createShadows';
|
||||
import { ThemeShape } from './createShape';
|
||||
import { ThemeSpacing } from './createSpacing';
|
||||
import { ThemeTransitions } from './createTransitions';
|
||||
import { ThemeTypography } from './createTypography';
|
||||
import { ThemeZIndices } from './zIndex';
|
||||
import { ThemeVisualizationColors } from './createVisualizationColors';
|
||||
import { ThemeZIndices } from './zIndex';
|
||||
|
||||
/**
|
||||
* @beta
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { difference } from 'lodash';
|
||||
|
||||
import { fieldReducers, ReducerID, reduceField } from './fieldReducer';
|
||||
|
||||
import { Field, FieldType } from '../types/index';
|
||||
import { guessFieldTypeFromValue } from '../dataframe/processDataFrame';
|
||||
import { MutableDataFrame } from '../dataframe/MutableDataFrame';
|
||||
import { guessFieldTypeFromValue } from '../dataframe/processDataFrame';
|
||||
import { Field, FieldType } from '../types/index';
|
||||
import { ArrayVector } from '../vector/ArrayVector';
|
||||
|
||||
import { fieldReducers, ReducerID, reduceField } from './fieldReducer';
|
||||
|
||||
/**
|
||||
* Run a reducer and get back the value
|
||||
*/
|
||||
|
@ -1,8 +1,4 @@
|
||||
// Load the Builtin matchers
|
||||
import { getFieldPredicateMatchers, getFramePredicateMatchers } from './matchers/predicates';
|
||||
import { getFieldNameMatchers, getFrameNameMatchers } from './matchers/nameMatcher';
|
||||
import { getFieldTypeMatchers } from './matchers/fieldTypeMatcher';
|
||||
import { getRefIdMatchers } from './matchers/refIdMatcher';
|
||||
import {
|
||||
FieldMatcherInfo,
|
||||
MatcherConfig,
|
||||
@ -13,11 +9,16 @@ import {
|
||||
ValueMatcher,
|
||||
} from '../types/transformations';
|
||||
import { Registry } from '../utils/Registry';
|
||||
|
||||
import { getFieldTypeMatchers } from './matchers/fieldTypeMatcher';
|
||||
import { getFieldNameMatchers, getFrameNameMatchers } from './matchers/nameMatcher';
|
||||
import { getFieldPredicateMatchers, getFramePredicateMatchers } from './matchers/predicates';
|
||||
import { getRefIdMatchers } from './matchers/refIdMatcher';
|
||||
import { getSimpleFieldMatchers } from './matchers/simpleFieldMatcher';
|
||||
import { getEqualValueMatchers } from './matchers/valueMatchers/equalMatchers';
|
||||
import { getNullValueMatchers } from './matchers/valueMatchers/nullMatchers';
|
||||
import { getNumericValueMatchers } from './matchers/valueMatchers/numericMatchers';
|
||||
import { getEqualValueMatchers } from './matchers/valueMatchers/equalMatchers';
|
||||
import { getRangeValueMatchers } from './matchers/valueMatchers/rangeMatchers';
|
||||
import { getSimpleFieldMatchers } from './matchers/simpleFieldMatcher';
|
||||
import { getRegexValueMatcher } from './matchers/valueMatchers/regexMatchers';
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
import { FieldType } from '../../types/dataFrame';
|
||||
import { fieldMatchers } from '../matchers';
|
||||
|
||||
import { FieldMatcherID } from './ids';
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
|
||||
export const simpleSeriesWithTypes = toDataFrame({
|
||||
fields: [
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { Field, FieldType, DataFrame } from '../../types/dataFrame';
|
||||
import { FieldMatcherID } from './ids';
|
||||
import { FieldMatcherInfo } from '../../types/transformations';
|
||||
|
||||
import { FieldMatcherID } from './ids';
|
||||
|
||||
// General Field matcher
|
||||
const fieldTypeMatcher: FieldMatcherInfo<FieldType> = {
|
||||
id: FieldMatcherID.byType,
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { fieldMatchers } from '../matchers';
|
||||
|
||||
import { FieldMatcherID } from './ids';
|
||||
|
||||
describe('Matchers', () => {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { getFieldMatcher } from '../matchers';
|
||||
import { FieldMatcherID } from './ids';
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
import { getFieldMatcher } from '../matchers';
|
||||
|
||||
import { FieldMatcherID } from './ids';
|
||||
import { ByNamesMatcherMode } from './nameMatcher';
|
||||
|
||||
describe('Field Name by Regexp Matcher', () => {
|
||||
|
@ -1,8 +1,9 @@
|
||||
import { Field, DataFrame } from '../../types/dataFrame';
|
||||
import { FieldMatcherID, FrameMatcherID } from './ids';
|
||||
import { FieldMatcherInfo, FrameMatcherInfo, FieldMatcher } from '../../types/transformations';
|
||||
import { stringToJsRegex } from '../../text/string';
|
||||
import { getFieldDisplayName } from '../../field/fieldState';
|
||||
import { stringToJsRegex } from '../../text/string';
|
||||
import { Field, DataFrame } from '../../types/dataFrame';
|
||||
import { FieldMatcherInfo, FrameMatcherInfo, FieldMatcher } from '../../types/transformations';
|
||||
|
||||
import { FieldMatcherID, FrameMatcherID } from './ids';
|
||||
|
||||
export interface RegexpOrNamesMatcherOptions {
|
||||
pattern?: string;
|
||||
|
@ -1,8 +1,9 @@
|
||||
import { FieldType } from '../../types/dataFrame';
|
||||
import { MatcherConfig } from '../../types/transformations';
|
||||
import { fieldMatchers } from '../matchers';
|
||||
|
||||
import { simpleSeriesWithTypes } from './fieldTypeMatcher.test';
|
||||
import { FieldMatcherID, MatcherID } from './ids';
|
||||
import { MatcherConfig } from '../../types/transformations';
|
||||
|
||||
const matchesNumberConfig: MatcherConfig = {
|
||||
id: FieldMatcherID.byType,
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { Field, DataFrame, FieldType } from '../../types/dataFrame';
|
||||
import { MatcherID } from './ids';
|
||||
import { getFieldMatcher, fieldMatchers, getFrameMatchers, frameMatchers } from '../matchers';
|
||||
import { FieldMatcherInfo, MatcherConfig, FrameMatcherInfo } from '../../types/transformations';
|
||||
import { getFieldMatcher, fieldMatchers, getFrameMatchers, frameMatchers } from '../matchers';
|
||||
|
||||
import { MatcherID } from './ids';
|
||||
|
||||
const anyFieldMatcher: FieldMatcherInfo<MatcherConfig[]> = {
|
||||
id: MatcherID.anyMatch,
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { DataFrame } from '../../types/dataFrame';
|
||||
import { FrameMatcherID } from './ids';
|
||||
import { FrameMatcherInfo } from '../../types/transformations';
|
||||
import { stringToJsRegex } from '../../text';
|
||||
import { DataFrame } from '../../types/dataFrame';
|
||||
import { FrameMatcherInfo } from '../../types/transformations';
|
||||
|
||||
import { FrameMatcherID } from './ids';
|
||||
|
||||
// General Field matcher
|
||||
const refIdMacher: FrameMatcherInfo<string> = {
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { Field, FieldType, DataFrame } from '../../types/dataFrame';
|
||||
import { FieldMatcherID } from './ids';
|
||||
import { FieldMatcherInfo } from '../../types/transformations';
|
||||
|
||||
import { FieldMatcherID } from './ids';
|
||||
|
||||
const firstFieldMatcher: FieldMatcherInfo = {
|
||||
id: FieldMatcherID.first,
|
||||
name: 'First Field',
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Field } from '../../../types/dataFrame';
|
||||
import { ValueMatcherInfo } from '../../../types/transformations';
|
||||
import { ValueMatcherID } from '../ids';
|
||||
|
||||
import { BasicValueMatcherOptions } from './types';
|
||||
|
||||
const isEqualValueMatcher: ValueMatcherInfo<BasicValueMatcherOptions> = {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Field } from '../../../types/dataFrame';
|
||||
import { ValueMatcherInfo } from '../../../types/transformations';
|
||||
import { ValueMatcherID } from '../ids';
|
||||
|
||||
import { ValueMatcherOptions } from './types';
|
||||
|
||||
const isNullValueMatcher: ValueMatcherInfo<ValueMatcherOptions> = {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Field, FieldType } from '../../../types/dataFrame';
|
||||
import { ValueMatcherInfo } from '../../../types/transformations';
|
||||
import { ValueMatcherID } from '../ids';
|
||||
|
||||
import { BasicValueMatcherOptions } from './types';
|
||||
|
||||
const isGreaterValueMatcher: ValueMatcherInfo<BasicValueMatcherOptions<number>> = {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Field, FieldType } from '../../../types/dataFrame';
|
||||
import { ValueMatcherInfo } from '../../../types/transformations';
|
||||
import { ValueMatcherID } from '../ids';
|
||||
|
||||
import { RangeValueMatcherOptions } from './types';
|
||||
|
||||
const isBetweenValueMatcher: ValueMatcherInfo<RangeValueMatcherOptions<number>> = {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Field } from '../../../types/dataFrame';
|
||||
import { ValueMatcherInfo } from '../../../types/transformations';
|
||||
import { ValueMatcherID } from '../ids';
|
||||
|
||||
import { BasicValueMatcherOptions } from './types';
|
||||
|
||||
const regexValueMatcher: ValueMatcherInfo<BasicValueMatcherOptions<string>> = {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
import { DataFrame, DataTransformerInfo } from '../types';
|
||||
import { Registry, RegistryItem } from '../utils/Registry';
|
||||
|
||||
|
@ -1,11 +1,12 @@
|
||||
import { ReducerID } from './fieldReducer';
|
||||
import { DataTransformerID } from './transformers/ids';
|
||||
import { toDataFrame } from '../dataframe/processDataFrame';
|
||||
import { mockTransformationsRegistry } from '../utils/tests/mockTransformationsRegistry';
|
||||
import { reduceTransformer } from './transformers/reduce';
|
||||
import { filterFieldsByNameTransformer } from './transformers/filterByName';
|
||||
import { transformDataFrame } from './transformDataFrame';
|
||||
import { FieldType } from '../types';
|
||||
import { mockTransformationsRegistry } from '../utils/tests/mockTransformationsRegistry';
|
||||
|
||||
import { ReducerID } from './fieldReducer';
|
||||
import { transformDataFrame } from './transformDataFrame';
|
||||
import { filterFieldsByNameTransformer } from './transformers/filterByName';
|
||||
import { DataTransformerID } from './transformers/ids';
|
||||
import { reduceTransformer } from './transformers/reduce';
|
||||
|
||||
const seriesAWithSingleField = toDataFrame({
|
||||
name: 'A',
|
||||
|
@ -2,6 +2,7 @@ import { MonoTypeOperatorFunction, Observable, of } from 'rxjs';
|
||||
import { map, mergeMap } from 'rxjs/operators';
|
||||
|
||||
import { DataFrame, DataTransformerConfig } from '../types';
|
||||
|
||||
import { standardTransformersRegistry, TransformerRegistryItem } from './standardTransformersRegistry';
|
||||
|
||||
const getOperator =
|
||||
|
@ -1,25 +1,25 @@
|
||||
import { reduceTransformer } from './transformers/reduce';
|
||||
import { concatenateTransformer } from './transformers/concat';
|
||||
import { calculateFieldTransformer } from './transformers/calculateField';
|
||||
import { concatenateTransformer } from './transformers/concat';
|
||||
import { convertFieldTypeTransformer } from './transformers/convertFieldType';
|
||||
import { ensureColumnsTransformer } from './transformers/ensureColumns';
|
||||
import { filterFieldsTransformer, filterFramesTransformer } from './transformers/filter';
|
||||
import { filterFieldsByNameTransformer } from './transformers/filterByName';
|
||||
import { noopTransformer } from './transformers/noop';
|
||||
import { filterFramesByRefIdTransformer } from './transformers/filterByRefId';
|
||||
import { filterByValueTransformer } from './transformers/filterByValue';
|
||||
import { groupByTransformer } from './transformers/groupBy';
|
||||
import { groupingToMatrixTransformer } from './transformers/groupingToMatrix';
|
||||
import { histogramTransformer } from './transformers/histogram';
|
||||
import { labelsToFieldsTransformer } from './transformers/labelsToFields';
|
||||
import { mergeTransformer } from './transformers/merge';
|
||||
import { noopTransformer } from './transformers/noop';
|
||||
import { orderFieldsTransformer } from './transformers/order';
|
||||
import { organizeFieldsTransformer } from './transformers/organize';
|
||||
import { reduceTransformer } from './transformers/reduce';
|
||||
import { renameFieldsTransformer } from './transformers/rename';
|
||||
import { renameByRegexTransformer } from './transformers/renameByRegex';
|
||||
import { seriesToColumnsTransformer } from './transformers/seriesToColumns';
|
||||
import { seriesToRowsTransformer } from './transformers/seriesToRows';
|
||||
import { renameFieldsTransformer } from './transformers/rename';
|
||||
import { labelsToFieldsTransformer } from './transformers/labelsToFields';
|
||||
import { ensureColumnsTransformer } from './transformers/ensureColumns';
|
||||
import { groupByTransformer } from './transformers/groupBy';
|
||||
import { sortByTransformer } from './transformers/sortBy';
|
||||
import { mergeTransformer } from './transformers/merge';
|
||||
import { renameByRegexTransformer } from './transformers/renameByRegex';
|
||||
import { filterByValueTransformer } from './transformers/filterByValue';
|
||||
import { histogramTransformer } from './transformers/histogram';
|
||||
import { convertFieldTypeTransformer } from './transformers/convertFieldType';
|
||||
import { groupingToMatrixTransformer } from './transformers/groupingToMatrix';
|
||||
|
||||
export const standardTransformers = {
|
||||
noopTransformer,
|
||||
|
@ -1,13 +1,14 @@
|
||||
import { DataTransformerID } from './ids';
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
import { FieldType } from '../../types/dataFrame';
|
||||
import { ReducerID } from '../fieldReducer';
|
||||
import { mockTransformationsRegistry } from '../../utils/tests/mockTransformationsRegistry';
|
||||
import { transformDataFrame } from '../transformDataFrame';
|
||||
import { CalculateFieldMode, calculateFieldTransformer, ReduceOptions } from './calculateField';
|
||||
import { DataFrameView } from '../../dataframe';
|
||||
import { BinaryOperationID } from '../../utils';
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
import { ScopedVars } from '../../types';
|
||||
import { FieldType } from '../../types/dataFrame';
|
||||
import { BinaryOperationID } from '../../utils';
|
||||
import { mockTransformationsRegistry } from '../../utils/tests/mockTransformationsRegistry';
|
||||
import { ReducerID } from '../fieldReducer';
|
||||
import { transformDataFrame } from '../transformDataFrame';
|
||||
|
||||
import { CalculateFieldMode, calculateFieldTransformer, ReduceOptions } from './calculateField';
|
||||
import { DataTransformerID } from './ids';
|
||||
|
||||
const seriesA = toDataFrame({
|
||||
fields: [
|
||||
|
@ -1,18 +1,19 @@
|
||||
import { defaults } from 'lodash';
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
import { getTimeField } from '../../dataframe/processDataFrame';
|
||||
import { getFieldDisplayName } from '../../field';
|
||||
import { DataFrame, DataTransformerInfo, Field, FieldType, NullValueMode, Vector } from '../../types';
|
||||
import { DataTransformerID } from './ids';
|
||||
import { BinaryOperationID, binaryOperators } from '../../utils/binaryOperators';
|
||||
import { ArrayVector, BinaryOperationVector, ConstantVector } from '../../vector';
|
||||
import { AsNumberVector } from '../../vector/AsNumberVector';
|
||||
import { RowVector } from '../../vector/RowVector';
|
||||
import { doStandardCalcs, fieldReducers, ReducerID } from '../fieldReducer';
|
||||
import { getFieldMatcher } from '../matchers';
|
||||
import { FieldMatcherID } from '../matchers/ids';
|
||||
import { RowVector } from '../../vector/RowVector';
|
||||
import { ArrayVector, BinaryOperationVector, ConstantVector } from '../../vector';
|
||||
import { AsNumberVector } from '../../vector/AsNumberVector';
|
||||
import { getTimeField } from '../../dataframe/processDataFrame';
|
||||
import { defaults } from 'lodash';
|
||||
import { BinaryOperationID, binaryOperators } from '../../utils/binaryOperators';
|
||||
|
||||
import { ensureColumnsTransformer } from './ensureColumns';
|
||||
import { getFieldDisplayName } from '../../field';
|
||||
import { DataTransformerID } from './ids';
|
||||
import { noopTransformer } from './noop';
|
||||
|
||||
export enum CalculateFieldMode {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
|
||||
import { concatenateFields, ConcatenateFrameNameMode } from './concat';
|
||||
|
||||
export const simpleABC = toDataFrame({
|
||||
|
@ -1,10 +1,11 @@
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
import { DataTransformerID } from './ids';
|
||||
import { DataTransformerInfo } from '../../types/transformations';
|
||||
import { DataFrame, Field, TIME_SERIES_VALUE_FIELD_NAME } from '../../types/dataFrame';
|
||||
import { DataTransformerInfo } from '../../types/transformations';
|
||||
import { ArrayVector } from '../../vector';
|
||||
|
||||
import { DataTransformerID } from './ids';
|
||||
|
||||
export enum ConcatenateFrameNameMode {
|
||||
/**
|
||||
* Ignore the source frame name when moving to the destination
|
||||
|
@ -2,6 +2,7 @@ import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
import { Field, FieldType } from '../../types/dataFrame';
|
||||
import { mockTransformationsRegistry } from '../../utils/tests/mockTransformationsRegistry';
|
||||
import { ArrayVector } from '../../vector';
|
||||
|
||||
import {
|
||||
ensureTimeField,
|
||||
convertFieldType,
|
||||
|
@ -1,13 +1,14 @@
|
||||
import { SynchronousDataTransformerInfo } from '../../types';
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
import { DataTransformerID } from './ids';
|
||||
import { DataFrame, Field, FieldType } from '../../types/dataFrame';
|
||||
import { dateTimeParse } from '../../datetime';
|
||||
import { SynchronousDataTransformerInfo } from '../../types';
|
||||
import { DataFrame, Field, FieldType } from '../../types/dataFrame';
|
||||
import { ArrayVector } from '../../vector';
|
||||
import { fieldMatchers } from '../matchers';
|
||||
import { FieldMatcherID } from '../matchers/ids';
|
||||
|
||||
import { DataTransformerID } from './ids';
|
||||
|
||||
export interface ConvertFieldTypeTransformerOptions {
|
||||
conversions: ConvertFieldTypeOptions[];
|
||||
}
|
||||
|
@ -1,9 +1,10 @@
|
||||
import { DataTransformerID } from './ids';
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
import { FieldType } from '../../types/dataFrame';
|
||||
import { mockTransformationsRegistry } from '../../utils/tests/mockTransformationsRegistry';
|
||||
import { transformDataFrame } from '../transformDataFrame';
|
||||
|
||||
import { ensureColumnsTransformer } from './ensureColumns';
|
||||
import { DataTransformerID } from './ids';
|
||||
import { seriesToColumnsTransformer } from './seriesToColumns';
|
||||
|
||||
const seriesA = toDataFrame({
|
||||
|
@ -1,10 +1,12 @@
|
||||
import { seriesToColumnsTransformer } from './seriesToColumns';
|
||||
import { DataFrame } from '../../types/dataFrame';
|
||||
import { getTimeField } from '../../dataframe/processDataFrame';
|
||||
import { SynchronousDataTransformerInfo } from '../../types/transformations';
|
||||
import { DataTransformerID } from './ids';
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
import { getTimeField } from '../../dataframe/processDataFrame';
|
||||
import { DataFrame } from '../../types/dataFrame';
|
||||
import { SynchronousDataTransformerInfo } from '../../types/transformations';
|
||||
|
||||
import { DataTransformerID } from './ids';
|
||||
import { seriesToColumnsTransformer } from './seriesToColumns';
|
||||
|
||||
export const ensureColumnsTransformer: SynchronousDataTransformerInfo = {
|
||||
id: DataTransformerID.ensureColumns,
|
||||
name: 'Ensure Columns Transformer',
|
||||
|
@ -1,11 +1,12 @@
|
||||
import { FieldType } from '../../types/dataFrame';
|
||||
import { DataTransformerID } from './ids';
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
import { FieldMatcherID } from '../matchers/ids';
|
||||
import { FieldType } from '../../types/dataFrame';
|
||||
import { mockTransformationsRegistry } from '../../utils/tests/mockTransformationsRegistry';
|
||||
import { filterFieldsTransformer } from './filter';
|
||||
import { FieldMatcherID } from '../matchers/ids';
|
||||
import { transformDataFrame } from '../transformDataFrame';
|
||||
|
||||
import { filterFieldsTransformer } from './filter';
|
||||
import { DataTransformerID } from './ids';
|
||||
|
||||
export const simpleSeriesWithTypes = toDataFrame({
|
||||
fields: [
|
||||
{ name: 'A', type: FieldType.time, values: [1000, 2000] },
|
||||
|
@ -1,11 +1,12 @@
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
import { noopTransformer } from './noop';
|
||||
import { DataFrame, Field } from '../../types/dataFrame';
|
||||
import { DataTransformerID } from './ids';
|
||||
import { DataTransformerInfo, MatcherConfig } from '../../types/transformations';
|
||||
import { getFieldMatcher, getFrameMatchers } from '../matchers';
|
||||
|
||||
import { DataTransformerID } from './ids';
|
||||
import { noopTransformer } from './noop';
|
||||
|
||||
export interface FilterOptions {
|
||||
include?: MatcherConfig;
|
||||
exclude?: MatcherConfig;
|
||||
|
@ -1,11 +1,12 @@
|
||||
import { DataTransformerID } from './ids';
|
||||
import { toDataFrame } from '../../dataframe/processDataFrame';
|
||||
import { FieldType } from '../../types/dataFrame';
|
||||
import { mockTransformationsRegistry } from '../../utils/tests/mockTransformationsRegistry';
|
||||
import { filterFieldsByNameTransformer } from './filterByName';
|
||||
import { filterFieldsTransformer } from './filter';
|
||||
import { transformDataFrame } from '../transformDataFrame';
|
||||
|
||||
import { filterFieldsTransformer } from './filter';
|
||||
import { filterFieldsByNameTransformer } from './filterByName';
|
||||
import { DataTransformerID } from './ids';
|
||||
|
||||
export const seriesWithNamesToMatch = toDataFrame({
|
||||
fields: [
|
||||
{ name: 'startsWithA', type: FieldType.time, values: [1000, 2000] },
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user