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: remove suggested registries on deactivation #4183

Merged
merged 1 commit into from Oct 3, 2023
Merged

Conversation

deboer-tim
Copy link
Collaborator

What does this PR do?

The suggested registries extension adds registries but never adds the disposable subscription, so registries stay around even if you disable the extension. This just adds the subscription.

There's a good argument to be made that suggested registries should be registered more like commands or menu contributions, and since they'd be handled once by the extension loader this bug could never happen again. That would require a breaking API change and a much bigger PR though, so not sure it's worth it; either way I think it's best for this change to go ahead and fix the immediate bug.

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

Fixes #3909.

How to test this PR?

Check that there are suggested registries in Settings > Registries, then disable the Registries extension in Settings > Extensions > Registries and go back to confirm they're gone.

The suggested registries extension adds registries but never adds the disposable
subscription, so registries stay around even if you disable the extension. This
just adds the subscription.

There's a good argument to be made that suggested registries should be registered
more like commands or menu contributions, and since they'd be handled once by the
extension loader this bug could never happen again. That would require a breaking
API change and a much bigger PR though, so not sure it's worth it; either way I
think it's best for this change to go ahead and fix the immediate bug.

Fixes #3909.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@deboer-tim deboer-tim requested review from benoitf and a team as code owners October 2, 2023 22:31
@deboer-tim deboer-tim requested review from dgolovin and lstocchi and removed request for a team October 2, 2023 22:31
@deboer-tim deboer-tim merged commit bad2c5a into main Oct 3, 2023
8 checks passed
@deboer-tim deboer-tim deleted the registry branch October 3, 2023 12:14
@podman-desktop-bot podman-desktop-bot added this to the 1.5.0 milestone Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disabling Registry Extension does nothing
3 participants