1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

817 Commits

Author SHA1 Message Date
Sebastian Malton
69ce254b81 remove unneccessary shorter timeouts on before* handles in integration tests
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2021-02-09 11:12:45 -05:00
Sebastian Malton
42928a845f Merge branch 'master' of github.com:lensapp/lens into feature/protocol-handler
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-09 11:09:36 -05:00
Alex Andreev
2b22ec0aa3
Fix: saving apiManager store keys with string type (#2091)
* Saving apiManager store keys with string type

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Replacing stores key from "kind" to "apiBase"

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-02-09 17:52:33 +02:00
Sebastian Malton
a61425124f
Add auto-update notifications and confirmation (#1941)
* add auto-update notifications and confirmation

* Show single update notification (#1985)

* Moving notification icons to top (#1987)

* Switch to EventEmitter (producer&consumer) model

* Add `onCorrect` and `onceCorrect` to ipc module for typechecking ipc  messages

* move type enforced ipc methods to seperate file, add unit tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-09 10:47:24 -05:00
Roman
741973dd29
Fix: export Dialog to extensions-api (#2105)
Signed-off-by: Roman <ixrock@gmail.com>
2021-02-09 17:33:27 +02:00
Jari Kolehmainen
035dd470ef
Refactor watches to use native k8s api (#2095)
* fix lint

Signed-off-by: Roman <ixrock@gmail.com>

* fixes & refactoring

Signed-off-by: Roman <ixrock@gmail.com>

* fix lint, micro-refactoring

Signed-off-by: Roman <ixrock@gmail.com>

* more refactoring, clean up, responding to comments

Signed-off-by: Roman <ixrock@gmail.com>

* fix: remove extra check for cluster.allowedApi from processing buffered watch-api events

Signed-off-by: Roman <ixrock@gmail.com>

* refactoring, detaching NamespaceStore from KubeObjectStore

Signed-off-by: Roman <ixrock@gmail.com>

* fix: wait for contextReady in NamespaceStore

Signed-off-by: Roman <ixrock@gmail.com>

* refactoring & fixes

Signed-off-by: Roman <ixrock@gmail.com>

* fix lint

Signed-off-by: Roman <ixrock@gmail.com>

* fixes: reloading context stores on NamespaceSelect-change

Signed-off-by: Roman <ixrock@gmail.com>

* optimize loading all resources when "all namespaces" selected -> single request per resource (when have rights)

Signed-off-by: Roman <ixrock@gmail.com>

* use native k8s api watches

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* retry watch when it makes sense

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* workaround for browser connection limits

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* use always random subdomain for getResponse

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* resubscribe stores on contextNamespace change

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* modify watch event before calling callback

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Co-authored-by: Roman <ixrock@gmail.com>
2021-02-09 15:31:15 +02:00
Jari Kolehmainen
6ded5e73fa
Release v4.1.0-beta.1 (#2101)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-09 13:09:50 +02:00
Alex Andreev
06b61c3392
Make macOs app icon a bit smaller (#2094)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-02-08 20:02:05 +02:00
Violetta
b36d9ff418
Helm rollback window with more details (#2085)
Signed-off-by: vshakirova <vshakirova@mirantis.com>
2021-02-05 12:23:15 -05:00
Sebastian Malton
96e3c52ae2 Merge branch 'master' of github.com:lensapp/lens into feature/protocol-handler
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 14:13:44 -05:00
Sebastian Malton
bcbb335a7f remove linux based protocol handling setup for testing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 14:12:58 -05:00
Sebastian Malton
19c0e73760
add custom configuration for dependabot (#1973)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 13:16:06 -05:00
Lauri Nevala
e6c90c28cc
Return no metrics immediately if chartData.datasets are missing (#2082)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2021-02-04 19:44:28 +02:00
Roman
b514e5c833
proper select-all option for NamespaceSelect (#2084)
Signed-off-by: Roman <ixrock@gmail.com>
2021-02-04 19:24:39 +02:00
Lauri Nevala
ad6de71826
Add more log entries on start up (#1955)
* Add more log entries on start up

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* And log entry about shell sync

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Refactoring

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add new line

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Apply suggestions from code review

Co-authored-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 19:19:11 +02:00
Sebastian Malton
0727456aa1
Convert StatusBarRegistration to use components field (#1598)
* Convert StatusBarRegistration to use components field

- More similar to all other *Registration types for extensions

- Simpler fix for using the components.Icon type, now accepts functions
  that return component instance like all other *Registration types

- Kept old fix for backwards compatability

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

* fix docs

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 19:18:31 +02:00
Sebastian Malton
c8faded066 create dir if necessary (for testing)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 12:16:16 -05:00
Lauri Nevala
a0e24e0a4d
In-app survey extension (#1945)
* Initial in-app survey implementation

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add surveyId fetching and store integration

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add empty line

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Fix typos

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Use async version of machineId + refactoring

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Update preferences hint text

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-04 18:22:22 +02:00
Sebastian Malton
1c8aa2b4d2 fix bad merge
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 09:59:38 -05:00
Sebastian Malton
eb4c98efc7 remove killall from integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 08:57:21 -05:00
Sebastian Malton
4ad4e47006 Merge branch 'master' of github.com:lensapp/lens into feature/protocol-handler
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 08:29:24 -05:00
Sebastian Malton
76a8a47a4c improve docs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 08:27:57 -05:00
Roman
5287e7e528
KubeObjectStore & KubeWatchApi fixes and optimizations (#2063)
* Detach NamespaceStore from KubeWatchApi, proper KubeObjectStore.loadAll (rebase of #2033)

Signed-off-by: Roman <ixrock@gmail.com>

* Watch-api requests optimization (#2066)

* subscribe for watching resources in single request when has admin-like access rights

Signed-off-by: Roman <ixrock@gmail.com>

* responding to comments

Signed-off-by: Roman <ixrock@gmail.com>

* fix unit-tests

Signed-off-by: Roman <ixrock@gmail.com>

* fix: reloading stores when preloading enabled and waitUntilLoaded=false

Signed-off-by: Roman <ixrock@gmail.com>

* mark Cluster.canUseWatchApi() and Cluster.refreshAccessibility() as private

Signed-off-by: Roman <ixrock@gmail.com>

* fix unit test: make public Cluster.canUseWatchApi()

Signed-off-by: Roman <ixrock@gmail.com>

* responding to comments in #2066

Signed-off-by: Roman <ixrock@gmail.com>
2021-02-04 11:51:35 +02:00
Jari Kolehmainen
f56969a64b
Fix snap packaging (#2081)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-04 10:29:35 +02:00
Sebastian Malton
31534317d8 fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-03 13:39:45 -05:00
Roman
1b492f27ad
Allow to quick select/deselect all namespaces in NamespaceSelect (#2068)
* allow to quick select/deselect all namespaces in `NamespaceSelect`

Signed-off-by: Roman <ixrock@gmail.com>

* fixes & refactoring

Signed-off-by: Roman <ixrock@gmail.com>
2021-02-03 19:01:45 +02:00
Jari Kolehmainen
2c99cd0429
Release v4.1.0-alpha.2 (#2064)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-03 18:24:12 +02:00
Sebastian Malton
2bbdd168d6 add install docs for linux
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-03 10:15:13 -05:00
Sebastian Malton
f2df7c764e improve docs, export types for extensions, skip integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-03 10:03:37 -05:00
Sebastian Malton
437c75bd4a killall during teardown
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 17:10:22 -05:00
Sebastian Malton
d3f8ebcf76 revert bad rebase
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 17:03:41 -05:00
Sebastian Malton
8e9a0cc4b7 add waiting for renderer and extensions to load before broadcasting handlers
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 16:28:52 -05:00
Sebastian Malton
7ea0a7fa4b fix integration tests locally
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 14:49:00 -05:00
dependabot[bot]
068ab855c1
Bump @typescript-eslint/eslint-plugin from 4.12.0 to 4.14.2 (#2056)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.12.0 to 4.14.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.2/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 10:42:31 -05:00
Sebastian Malton
401908f4e5 stop getting logs on test timeout
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 10:37:16 -05:00
Arthur Lutz
e273bd71f2
Tray: change order of items, Open first (#2059)
Fixes #2032

Signed-off-by: Arthur Lutz <arthur.lutz@logilab.fr>
2021-02-02 16:07:13 +02:00
Sebastian Malton
624b7b50ee change open to be a dev dep
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:51:23 -05:00
Sebastian Malton
fed90f3de6 fix lint
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2021-02-02 08:51:22 -05:00
Sebastian Malton
aa5909bdd1 get protocol handling working for linux
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2021-02-02 08:51:05 -05:00
Sebastian Malton
bce07796b1 fix package.json
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:48 -05:00
Sebastian Malton
117c833e2c testing handling on linux
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:48 -05:00
Sebastian Malton
f8b36055f5 fix unit and integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:46 -05:00
Sebastian Malton
0062395550 resolve pr comment
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:35 -05:00
Sebastian Malton
f97002828f change internal hostname to app, revert spacing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:33 -05:00
Sebastian Malton
2ee1d3d794 fix integration tests and markdown
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:07 -05:00
Sebastian Malton
bfc335a43c fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:46 -05:00
Sebastian Malton
4a98d9717d reintroduce renderer routing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:45 -05:00
Sebastian Malton
6c4c2b714b Fix unit tests and update docs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:28 -05:00
Sebastian Malton
2544ba9e09 Convert the extension API to use an array for registering handlers
- switch design to execute both main and renderer handlers
  simaltaneously, without any overlap checking

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:26 -05:00
Sebastian Malton
e7ee7fe2b0 Auto-clean extension handlers on deactivation
- remove handlers when an extension is deactivated or removed

- make sure that the found extension when routing a request is currently
  enabled (as a backup)

- added documentation about the above behaviour to the guide

- tweaked the naming convension so that it is clearer that the router
  uses extension names as not IDs (which currently are folder paths)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:03 -05:00