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

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Dec 9, 2019

Description

  • Replace the DialogLoader class with a simple function.
  • move code from __init__.py to a dialog.py

Should this still exist as a mycroft.dialog module in the long term? It's quite a small but provides one of the core features of mycroft. With #2436 it's likely to grow in complexity so it may have some merit to keep it as it is.

How to test

Make sure tests pass and that skills can speak responses still.

Contributor license agreement signed?

CLA [ Yes ]

This function replaces the class since the class doesn't provide any
functionality
@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Dec 9, 2019
@forslund forslund force-pushed the refactor/dialog branch 3 times, most recently from bba6219 to 7b90e99 Compare December 9, 2019 13:01
@forslund
Copy link
Collaborator Author

forslund commented Feb 5, 2020

ping @chrisveilleux

@forslund forslund added the Type: Refactoring and other improvements Improvement of code and documentation that does not alter functionality. label Feb 5, 2020
- Move code out of __init__.py
- Correct spacing of docstrings
- Make use of ' uniform
- Add module level docstring
The DialogLoader class has been replaced by the simpler load_dialogs
function.
@forslund forslund merged commit d269a49 into MycroftAI:dev Feb 7, 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) Type: Refactoring and other improvements Improvement of code and documentation that does not alter functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants