1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/main/helm
Sebastian Malton 5a5eda935b
Add better type safety around Channels (#6133)
* Add better type safety around Channels

- Reallow non-JSON serializable complex types

- Remove unnecessary JSON serialization step to IPC

- Remove unnecesary injectable-ization of MessageChannel and
  RequestChannel declarations

- Add channel listener injectable getter function to remove general need
  for type casting and improve type safety

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add check to verify data in IPC related tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix implementation in light of new safety check in tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix listener ID clash potential

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Switch to not forcing split of request channel handlers being seperate from the listener decl

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move message channels to changed signature too

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix not registering listener

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix test imports

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Refactor listening of different channel kinds

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add test covering new checking code for request channel handlers

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-13 07:50:19 -04:00
..
__tests__ Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
exec-helm Add better type safety around Channels (#6133) 2022-10-13 07:50:19 -04:00
get-helm-env Make opening of release details work properly when release has resources without namespace (#6088) 2022-09-08 13:57:11 -04:00
helm-service Fix loading helm release details (#6318) 2022-10-07 09:16:36 -04:00
repositories Add better type safety around Channels (#6133) 2022-10-13 07:50:19 -04:00
exec.ts Electron v15.5.7 (#5562) 2022-06-08 09:55:17 +03:00
helm-binary-path.injectable.ts Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
helm-chart-manager-cache.injectable.ts Replace jest.mock's with overriding dependencies (#6014) 2022-08-23 13:04:00 +03:00
helm-chart-manager.injectable.ts Replace jest.mock's with overriding dependencies (#6014) 2022-08-23 13:04:00 +03:00
helm-chart-manager.ts Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
helm-release-manager.ts Make opening of release details work properly when release has resources without namespace (#6088) 2022-09-08 13:57:11 -04:00