Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Bugfix/remove fallback handler #2588

Merged
merged 2 commits into from
May 19, 2020

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented May 18, 2020

Description

Allow removal of a fallback handler without knowing the wrapper. Fixes #2586

  • Additionally adds basic setup/teardown tests for the fallback skills.

How to test

Check that the new tests pass and make sure fallback query can be reloaded correctly.

Contributor license agreement signed?

CLA [ Yes ]

@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label May 18, 2020
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

remove_fallback() was mainly created for use internally during shutdown
and required the wrapped callable to be able to remove a handler. This
makes it general, using a mapping to find the wrapper from a handler if
needed. The method now also returns the success/failure status
@forslund forslund force-pushed the bugfix/remove-fallback-handler branch from 6cc712d to 010562f Compare May 19, 2020 08:52
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

Copy link
Contributor

@krisgesling krisgesling left a comment

Choose a reason for hiding this comment

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

Looks good to me :)

@forslund forslund merged commit c056aaa into MycroftAI:dev May 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

self.remove_fallback(handler) it does not work
4 participants