1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/core/src/common
Sebastian Malton 49f0a1af9c
Remove BaseStore<T> and replace with composition of dependencies (#7002)
* Rename ExtensionStore -> BaseExtensionStore
- The name was too close to ExtensionsStore

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

* Move ExtensionsStore to new format

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

* Move ClusterStore to new format

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

* Move UserStore to new format

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

* Cleanup types to remove multiple cast locations

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

* Move HotbarStore to new format

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

* Move WeblinkStore to new format

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

* Move FileSystemProvisionerStore to new format

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

* Update snapshots

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

* Clean up impl and rename to better describe intent

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

* Fix remaining type errors

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

* Fully split apart the enabled extensions storage

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

* Fully split apart the clusters storage

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

* Fully split apart the hotbar storage

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

* Fully split apart the weblinks storage

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

* Fully split apart the user preferences storage

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

* Fix crashing

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

* Fix tests and snapshots

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

* Fix integration test failures

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

* Improve typing to prevent errors in the future.

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

* Cleanup @k8slens/messaging and friends

- To fix type errors

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

* Fix lint issue

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

* Fix type errors

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

* Fix global override not being complete enough causing tests to fail

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

* Bump memory for unit tests on CI

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

* Attempt to fix memory issue on CI again

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

* Fixup test because of new injectables

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

* Upgrade Jest

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

* Fix unit tests falling over

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

* Back out jest config change

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

* Remove console log

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

* Update snapshot

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

* Fix tests by matching equality instead of snapshots

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

* Fix tests by forcing specific snapshot style

- Ubuntu CI seems to format arrays in snapshots differently than macOS locally

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-28 17:54:25 +03:00
..
__tests__ Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
app-event-bus Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
app-paths Electron 22.3.3 (#7389) 2023-03-21 11:07:27 -04:00
catalog Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
catalog-entities Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
certificate Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
cluster Add behavioural tests for Cluster Menu K8s Resources in Sidebar menu not being shown (#7280) 2023-03-21 22:00:12 -04:00
directory-for-lens-local-storage Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
error-reporting Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
fetch Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
front-end-routing Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
fs Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
get-configuration-file-model Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
helm Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
initializable-state Simplify test setup by removing option for global overrides (#7302) 2023-03-07 12:23:57 -05:00
ipc Move deactivating a cluster into injectable IPC (#7356) 2023-03-15 08:31:38 -04:00
k8s Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
k8s-api Support using Eviction API where applicable (#7372) 2023-03-23 12:16:50 -04:00
kube-helpers Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
logger Revert "Renderer file logging through IPC" (#7393) 2023-03-21 16:13:27 -04:00
os Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
path Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
persistent-storage Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
protocol-handler Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
root-frame Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
terminal Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
utils Fix behaviour of auto generated CRD KubeApis and KubeObjectStores (#7384) 2023-03-22 17:51:26 +02:00
vars Remove BaseStore<T> and replace with composition of dependencies (#7002) 2023-03-28 17:54:25 +03:00
.gitkeep Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
cluster-frames.injectable.ts Move deactivating a cluster into injectable IPC (#7356) 2023-03-15 08:31:38 -04:00
cluster-types.ts Cleanup 'Cluster' to remove environment specific details (#6951) 2023-03-10 09:37:39 +02:00
event-emitter.ts Fix building docs and verify:docs workflow (#7013) 2023-01-25 13:59:21 -05:00
item.store.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
kube-helpers.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
log-error.global-override-for-injectable.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
log-error.injectable.ts White-listing of telemetry params (#7262) 2023-03-06 13:14:27 +02:00
logger.global-override-for-injectable.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
logger.injectable.ts Revert "Renderer file logging through IPC" (#7393) 2023-03-21 16:13:27 -04:00
logger.ts Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
rbac.ts Replication Controllers (new resource view) (#7154) 2023-02-16 07:48:24 -05:00
vars.ts Remove all references to slack (#7233) 2023-02-24 17:04:15 -05:00