Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make BaseStore abstract #1431

Merged
merged 2 commits into from Nov 19, 2020
Merged

Make BaseStore abstract #1431

merged 2 commits into from Nov 19, 2020

Conversation

Nokel81
Copy link
Collaborator

@Nokel81 Nokel81 commented Nov 18, 2020

I believe that this should be the type signature for BaseStore, it is rather confusing that these methods are almost always overloaded (and in the single case where it wasn't it really should have been).

I believe that this is a better structure for our code. This also raises the question as to if LensExtension should be abstract as well, so that developers know that they should and need to use/implement onActivate and onDeactivate. That would be a very good afforance in the design.

@Nokel81 Nokel81 added the area/extension Something to related to the extension api label Nov 18, 2020
@Nokel81 Nokel81 requested review from nevalla and a team November 18, 2020 14:13
@Nokel81 Nokel81 self-assigned this Nov 18, 2020
Copy link
Contributor

@panuhorsmalahti panuhorsmalahti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jakolehm jakolehm added this to the 4.0.0 milestone Nov 19, 2020
… to store data

Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
@Nokel81 Nokel81 merged commit 0f3f561 into master Nov 19, 2020
@Nokel81 Nokel81 deleted the make-BaseStore-abstract branch November 19, 2020 14:24
aleksfront pushed a commit that referenced this pull request Nov 20, 2020
* make BaseStore abstract so that implementers are forced to decide how to store data

Signed-off-by: Sebastian Malton <sebastian@malton.name>
aleksfront added a commit that referenced this pull request Nov 20, 2020
@jakolehm jakolehm mentioned this pull request Nov 20, 2020
aleksfront added a commit that referenced this pull request Nov 20, 2020
* Save and restore lastActiveClusterId

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

* Activate clusters from workspaces page

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

* Fix saving last cluster while jumping from tray

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

* Adding workspace switch tests

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

* Remove console.log()

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

* Cleaning up

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

* Clean duplicated ClusterId definition

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

* Moving lastActiveClusterId field into WorkspaceModel

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

* fix extensionLoader error on dev environments where renderer might start early (#1447)

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

* Add Search by Ip to Pod View (#1445)

Signed-off-by: Pavel Ashevskii <pashevskii@mirantis.com>

* Make BaseStore abstract (#1431)

* make BaseStore abstract so that implementers are forced to decide how to store data

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

* Enforce semicolons in eslint

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Add a few missing folders to be linted.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Use @typescript-eslint/semi.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Allow extension cluster menus to have a parent (#1452)

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

* fix SwitchCase indent rule in eslint (#1454)

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

* Revert "fix SwitchCase indent rule in eslint (#1454)"

This reverts commit 082774f.

* Revert "Allow extension cluster menus to have a parent (#1452)"

This reverts commit 622c45c.

* Revert "Use @typescript-eslint/semi."

This reverts commit 890fa5d.

* Revert "Add a few missing folders to be linted."

This reverts commit c7b24c2.

* Revert "Enforce semicolons in eslint"

This reverts commit ca67cae.

* Revert "Make BaseStore abstract (#1431)"

This reverts commit 4b56ab7.

* Revert "Add Search by Ip to Pod View (#1445)"

This reverts commit 4079214.

* Revert "fix extensionLoader error on dev environments where renderer might start early (#1447)"

This reverts commit 8a3613a.

* Split workspace tests to smaller ones

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

* Missing semicolons

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

* Split workspace tests a bit more

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

* Adding extra click in Add Cluster button

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

* Adding more awaits to check running cluster

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

* Wait for minikube before running tests

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

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Co-authored-by: pashevskii <53330707+pashevskii@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extension Something to related to the extension api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants