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

filter allowed_types #71

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Conversation

emphasize
Copy link
Contributor

@emphasize emphasize commented Jun 21, 2023

Introduces allowed_types, a list of message types that get permitted to be sent to the master
Defaults to only "recognizer_loop:utterance" if no additional msg_type is added to the node client (db) configuration

new allowed types should be added per cli (not per config) to avoid overrides
Screenshot 2023-06-21 173531

changes

  • blacklist: this filter was brought up to the send block as defined

list of ovos message_type to never be sent to this client

  • revert the factory/type annotation clients: dict = field(default_factory=dict) in HiveMindListenerProtocol as this interferes with
    def clients(self) -> Dict[str, HiveMindClientConnection]:
    return HiveMindListenerProtocol.clients

    This should be handled differently

@JarbasAl JarbasAl merged commit f3f4648 into JarbasHiveMind:dev Jun 26, 2023
0 of 4 checks passed
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.

2 participants