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

fix: updates extension state if installed/uninstalled from CLI #5060

Merged

Conversation

scures
Copy link
Contributor

@scures scures commented Jun 27, 2023

Fixes #4951

Updates the extension state using ipcRenderer

@scures scures force-pushed the ops/rdx-refresh-list-uninstall branch from 99d3cf1 to 5a1629e Compare June 27, 2023 08:51
@scures scures requested a review from rak-phillip June 27, 2023 08:52
@scures scures self-assigned this Jun 27, 2023
@scures scures modified the milestone: 1.10 Jun 27, 2023
Copy link
Contributor

@rak-phillip rak-phillip left a comment

Choose a reason for hiding this comment

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

This change appears to introduce some unwanted side effects in determining which extensions are installed via the UI

2023-06-27.07-38-45.mp4

@scures
Copy link
Contributor Author

scures commented Jun 29, 2023

@rak-phillip I think it's ready for another quick pick, I did some refactor moving the part where we check for the state (installed/uninstalled) to the catalog.

@scures scures requested a review from rak-phillip June 29, 2023 15:34
Copy link
Contributor

@rak-phillip rak-phillip left a comment

Choose a reason for hiding this comment

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

This change is looking great, but there's a few things we can clean up before moving forward.

@@ -46,7 +46,7 @@ import { Banner } from '@rancher/components';

import LoadingIndicator from '@pkg/components/LoadingIndicator.vue';
import demoMetadata from '@pkg/utils/_demo_metadata.js';
import { ipcRenderer } from '@pkg/utils/ipcRenderer';
// import { ipcRenderer } from '@pkg/utils/ipcRenderer';
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove commented imports

pkg/rancher-desktop/components/MarketplaceCatalog.vue Outdated Show resolved Hide resolved
pkg/rancher-desktop/components/MarketplaceCatalog.vue Outdated Show resolved Hide resolved
pkg/rancher-desktop/components/MarketplaceCatalog.vue Outdated Show resolved Hide resolved
pkg/rancher-desktop/components/MarketplaceCatalog.vue Outdated Show resolved Hide resolved
@rak-phillip
Copy link
Contributor

rak-phillip commented Jun 30, 2023

We merged #5073 to add spell check to CI, so a rebase on top of main might be in order

Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
@scures scures force-pushed the ops/rdx-refresh-list-uninstall branch from bacefb6 to bd2eaad Compare June 30, 2023 14:59
@scures scures requested a review from rak-phillip July 4, 2023 09:08
Copy link
Contributor

@rak-phillip rak-phillip left a comment

Choose a reason for hiding this comment

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

One more change and we should be good to merge 🙂

pkg/rancher-desktop/components/MarketplaceCard.vue Outdated Show resolved Hide resolved
Signed-off-by: scures <scurescu@suse.com>
@scures scures requested a review from rak-phillip July 6, 2023 11:48
Copy link
Contributor

@rak-phillip rak-phillip left a comment

Choose a reason for hiding this comment

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

LGTM

@rak-phillip rak-phillip merged commit 4bf7145 into rancher-sandbox:main Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RDX: Extension uninstall does not update catalog
2 participants