mycroft-core/mycroft
Åke ab242a2c82
Handle multiple intents with the same name (#2921)
* Add check for duplicate adapt intents

There are two cases, duplicated named intent and duplicated anonymous intent.

A named intent will cause a ValueError exception notifying the skill
author that there is a collision.

An anonymous intent will silently derive a new name and use that
instead of the default generated one.

* Add tests for intent collisions

* Make enable/disable intent handle the new exception

The enable/disable intent did not mark an intent as detached, instead it
remained in the list of intents after disabling in the IntentServiceInterface
to be retrieved when the intent should be re-enabled.

This moves detached intents into a list of detached intents to so they
won't cause the double enable exception.

* Add move logic to find if intent is detached

MycroftSkill.enable_intent() will now check if the intent is detached
before trying to re-enable it.

* Lock updates of intents

This should avoid some race conditions that may occur if multiple
threads tries to enable / disable intents
2022-11-23 15:52:56 +09:30
..
api Use XDG Base directories for settings, cache and runtime data 2021-08-05 10:04:45 +02:00
audio Remove the chromecast audio backend (#3097) 2022-04-20 07:01:30 +09:30
client Issue-3006 replaced hot_words with hotwords to correctly lookup configuration (#3088) 2022-03-23 11:24:38 +09:30
configuration Don't overwrite invalid json in config (#2881) 2022-03-07 10:03:10 +09:30
dialog docstring cleanup 2021-05-11 15:10:32 +09:30
enclosure Release GUI on Skill shutdown or reload 2021-08-17 16:40:05 +09:30
filesystem WIP Review comments 2021-08-05 10:04:45 +02:00
identity Add log if an exception loading identity occurs 2021-12-05 16:47:00 +01:00
lock Rename to get_temp_path and add docstring 2021-04-30 16:49:59 +09:30
messagebus Use XDG Base directories for settings, cache and runtime data 2021-08-05 10:04:45 +02:00
metrics docstring cleanup 2021-05-11 15:10:32 +09:30
res add german nose-word-list 2022-09-21 15:54:50 +09:30
session Remove inheritance from object 2019-01-11 09:24:21 +01:00
skills Handle multiple intents with the same name (#2921) 2022-11-23 15:52:56 +09:30
stt Add `supported_languages` parameter to STT and TTS base classes (#3059) 2022-02-28 15:36:48 +09:30
tts TTS playback queue singleton (#3055) 2022-03-02 09:59:57 +09:30
util Make log settings not cache local only config 2021-11-09 21:04:58 +01:00
version Version bump from 21.2.1 to 21.2.2 2021-12-10 04:51:54 +00:00
__init__.py fix cyclic imports with LOG 2021-08-05 10:04:45 +02:00