grafana/public/app/core/utils
Artur Wierzbicki f45eb309ef
Live: move centrifuge service to a web worker (#41090)
* Fix: make webpack pickup workers written in TS

* Add comlink to dependencies

* Temporary fix: copy paste `toDataQueryError` from @grafana/runtime to avoid web dependencies

* Implemented comlink-based centrifuge worker & worker proxy

* Temporary fix: implement comlink transferHandlers for subscriptions and streamingdataframes

* Move liveTimer filtering from CentrifugeService into GrafanaLiveService

* Switch from CentrifugeService to CentrifugeServiceWorkerProxy in GrafanaLive

* Naming fix

* Refactor: move liveTimer-based data filtering from GrafanaLiveService to CentrifugeServiceWorker

* observe dataStream on an async scheduler

* Fix: - Unsubscribe is now propagated from the main thread to the worker, - improve worker&workerProxy types

* Fix: Prettify types

* Fix: Add error & complete observers

* Docs: Add comment explaining the `subscriberTransferHandler`

* Fix: Replace `StreamingDataFrameHandler` with explicitly converting StreamingDataFrame to a DataFrameDTO

* Refactor: move liveTimer filtering to service.ts to make it easy to implement a `live-service-web-worker` feature flag

* Feat: add `live-service-web-worker` feature flag

* Fix: extract toDataQueryError.ts to a separate file within `@grafana-runtime` to avoid having a dependency from webworker to the whole package (@grafana-runtime/index.ts)

* Update public/app/features/dashboard/dashgrid/liveTimer.ts

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>

* Fix: fixed default import class in worker file

* Fix: cast worker as Endpoint

* Migrate from worker-loader to webpack native worker support v1 - broken prod build

* Fix: Use custom path in HtmlWebpackPlugin

* Fix: Loading workers from CDNs

* Fix: Avoid issues with jest ESM support by mocking `createWorker` files

* Fix: move the custom mockWorker rendering layout to `test/mocks`

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2021-11-09 21:05:01 +04:00
..
acl.ts Chore: Fix all Typescript strict null errors (#26204) 2020-07-10 12:46:59 +02:00
applyStateChanges.ts Templating: Migrates some variable types from Angular to React/Redux (#22434) 2020-03-10 08:53:41 +01:00
arrayMove.ts DashboardSettings: Migrate Link Settings to React (#31150) 2021-02-25 11:50:10 +01:00
browser.test.ts Core: Show browser not supported notification (#19904) 2019-10-23 10:30:31 +02:00
browser.ts Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
CancelablePromise.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
colors.ts Moved colorpicker to ui/components 2019-01-11 07:03:12 +01:00
ConfigProvider.tsx AppEvents: export appEvents in @grafana/runtime and support copy panel (#40715) 2021-10-20 13:01:21 -07:00
connectWithReduxStore.tsx Chore: Enable eslint-plugin-react partial rules (#29428) 2020-12-01 16:19:52 +01:00
CorsWorker.ts Live: move centrifuge service to a web worker (#41090) 2021-11-09 21:05:01 +04:00
css_loader.ts Chore: noImplictAny no errors left (#18303) 2019-08-01 14:38:34 +02:00
dag.test.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
dag.ts Chore: Reduces strict errors (#33012) 2021-04-15 14:21:06 +02:00
deferred.ts Chore: Fix more strict typescript errors (#35514) 2021-06-14 15:13:48 +01:00
docsLinks.ts Transformations: Remove beta notice from transformations and field overrides (#26881) 2020-08-10 10:58:45 +02:00
errors.test.ts Tracing: Add some error handling to JaegerQueryField (#23599) 2020-04-21 14:18:56 +02:00
errors.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
explore.test.ts Dashboard: replace datasource name with a reference object (#33817) 2021-10-29 10:57:24 -07:00
explore.ts Dashboard: replace datasource name with a reference object (#33817) 2021-10-29 10:57:24 -07:00
factors.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
fetch.test.ts BackendSrv: support binary responseType like $http did (#29004) 2020-11-18 09:35:28 -08:00
fetch.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
flatten.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
kbn.test.ts streamline kbn.addSlashes and add a test, streamline escaping in angular tip() function (#41066) 2021-11-05 09:18:42 -04:00
kbn.ts streamline kbn.addSlashes and add a test, streamline escaping in angular tip() function (#41066) 2021-11-05 09:18:42 -04:00
model_utils.ts Chore: noImplictAny no errors left (#18303) 2019-08-01 14:38:34 +02:00
object.test.ts Dashboard schema: strip null values from save model (#41385) 2021-11-09 16:55:42 +01:00
object.ts Dashboard schema: strip null values from save model (#41385) 2021-11-09 16:55:42 +01:00
query.test.ts Dashboard: Allow more than 26 queries per panel. (#35442) 2021-06-23 15:23:02 +02:00
query.ts api/ds/query: simplify data sources lookup for queries and expressions (#41172) 2021-11-05 08:12:55 -07:00
richHistory.test.ts Explore: rich history: add more tests (#40769) 2021-10-25 15:23:47 +02:00
richHistory.ts Explore: rich history: add more tests (#40769) 2021-10-25 15:23:47 +02:00
shortLinks.test.ts Shorten url: Unification across Explore and Dashboards (#28434) 2020-10-22 10:31:58 +02:00
shortLinks.ts Replace AppEvents with notifyApp in Explore (#31864) 2021-03-15 15:11:52 +01:00
standardTransformers.ts Transformations: Add gazetteer transformation (#40967) 2021-10-27 20:20:56 -07:00
ticks.ts DateTime: adding support to select preferred timezone for presentation of date and time values. (#23586) 2020-04-27 15:28:06 +02:00
timePicker.test.ts Refactor: move some files to @grafana/data (#17952) 2019-07-06 08:05:53 +02:00
timePicker.ts Refactor: move some files to @grafana/data (#17952) 2019-07-06 08:05:53 +02:00
tracing.ts Zipkin: Add node graph view to trace response (#34414) 2021-05-20 10:01:28 +02:00
version.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00