1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/core/src/features
Sami Tiilikainen 69b132300c
Renderer file logging through IPC (#7499)
* Renderer file logging through IPC

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove pagehide event listener as it may cause UI to freeze

Pagehide was needed in cluster frame to better handle main frame close/reload situation. But even empty pagehide listener in cluster frame seems to freeze the UI at least on some situations (multiple clusters open).

Beforeunload is not always executed in cluster frame when main frame is reloaded/closed, leaving log files open. To fix that, `stopIpcLoggingInjectable` is introduced to close all log files.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove unnecessary formatting changes

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Lint fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Winston logger override

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove usage of doGeneralOverrides as it has been removed

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Update imports to match the new base

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove unnecessary id

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Review improvements

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Extract beforeunload listener to injectable

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Typo fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Behavioural tests and log file rename

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Update messaging to work with new base

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Move files to feature

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

---------

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2023-04-04 08:11:06 -04:00
..
__snapshots__ Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
add-cluster Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
application-menu Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
application-update Show Message Box when no update is available after manually checking for updates (#7390) 2023-04-03 15:36:25 -04:00
catalog Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
certificate-authorities Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
cluster Move Cluster.apiUrl to seperate injectable (#7354) 2023-03-31 15:28:14 -04:00
command-pallet Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
entity-settings Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
extensions Stop all extensions before quitting app (#7450) 2023-03-31 13:37:29 -04:00
file-system-provisioner Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
helm-charts Block renderering non http(s):// links via <HelmChartIcon> (#7419) 2023-03-29 07:39:57 -04:00
helm-releases Change typing for after/before window/application start (#7342) 2023-03-13 15:35:33 +02:00
hotbar/storage Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
namespace-filtering/renderer Cherry pick PRs from 6.4.4 and 6.4.3 (#7309) 2023-03-07 09:46:00 -08:00
navigation/reload-page Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
path-picking-dialog Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
pod-logs Fix download all logs for pod with few containers (#7413) 2023-03-27 12:22:37 +03:00
population-of-logs-to-a-file Renderer file logging through IPC (#7499) 2023-04-04 08:11:06 -04:00
preferences Extract React Application as a Feature (#7441) 2023-03-31 11:57:20 +03:00
quitting-and-restarting-the-app Change typing for after/before window/application start (#7342) 2023-03-13 15:35:33 +02:00
resolve-system-proxy Change typing for after/before window/application start (#7342) 2023-03-13 15:35:33 +02:00
routes/extension-api Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
shell-sync Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
status-bar Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
telemetry Add workload 'kind' param to 'show-details' event (#7464) 2023-04-04 09:59:36 +03:00
terminal/renderer/fonts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
theme/system-type Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
top-bar/extension-api Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
tray Change typing for after/before window/application start (#7342) 2023-03-13 15:35:33 +02:00
user-preferences Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
weblinks Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
welcome Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
extension-special-characters-in-page-registrations.test.tsx Fix behaviour of auto generated CRD KubeApis and KubeObjectStores (#7384) 2023-03-22 17:51:26 +02:00
navigate-to-extension-page.test.tsx Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
navigating-between-routes.test.tsx Change typing for after/before window/application start (#7342) 2023-03-13 15:35:33 +02:00