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
port of the resource file handling refactor from mk2 #130
port of the resource file handling refactor from mk2 #130
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #130 +/- ##
==========================================
+ Coverage 50.35% 52.88% +2.53%
==========================================
Files 119 150 +31
Lines 10077 9566 -511
==========================================
- Hits 5074 5059 -15
+ Misses 5003 4507 -496
Continue to review full report at Codecov.
|
a48d0e0
to
62666ac
Compare
cherry-picked commits: - add the logic for "template" resource files back in. - add the logic for "template" resource files back in. - add regex file loading for skill into resources code - added support for .word files and fixed a regex bug - fixes a bug where the dialog data is not passed to the renderer - removed spurious print statements - another iteration of improving the resource file handling - update dialog renderer in the translator after all dialogs are loaded - Move resource file location and translation logic into skill_data.py
62666ac
to
7e40ee1
Compare
increases compatibility with mark2 while remaining fully backwards compatible. More mark2 exclusive skills will be able to run squashed commits: - add CoreResources helper class - move find_resource logic to skill_data.py - cache resources per lang to avoid excessive file reads - adapt compat - move dialog_renderer to SkillResources - add back multi lang support - restore old methods for backwards compat
353f775
to
876f0c1
Compare
port of the resource file handling refactor https://github.com/MycroftAI/mycroft-core/blob/mark-ii/qa/mycroft/skills/skill_data.py
this PR increases compatibility with mark2 while remaining fully backwards compatible.
More mark2 exclusive skills will be able to run in ovos-core once this is merged
cherry picked commits from mark2:
credits of the original refactor go to @chrisveilleux
ovos improvements:
dialog_rendererto live in the newSkillResourcesclassself.find_resourceand move it to skill_data.py