-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
Voight Kampff Integration Test Failed (Results) |
1 similar comment
Voight Kampff Integration Test Failed (Results) |
Hey Jarbas, This seems like a good change to provide the option of not syncing settings if users want to handle everything locally. However I think the three dot points you raised probably need three separate responses.
I'm in two minds about the defaults too. Conceptually I like what you have, and any devices should have a default mycroft.conf to pull from. However I'm also wary of something that could cause a big spike in support requests saying that "skill settings aren't syncing". IMO defaulting both to True seems like a safer option and still allows any project or individual to disable the sync if they want to. |
Number 2 in that list was planned when Selene was first launched and the redesign of the skill settings handling started. @chrisveilleux may have some old spec for what was intended or if we just discussed it in general terms. Number 3 was prepared in the oauth service, basically requires a web interface and a minor fix in the db setup (broke in the move to selene) to get working. There was also a prototype for a more simple credentials gateway for simpler api keys that @MatthewScholefield created if I recall correctly (like the one in the cocktails skill) which is something that should be implemented as well imo. |
Not sure if this is what you're referring to but I had a prototype of a system for allowing skill developers to submit their apikeys for other users to use securely by using the backend as a proxy. It worked by wrapping |
@krisgesling this PR solves 2 things:
the other 3 points are different issues like you pointed out, but i have been complaining about this since i released the voip skill and there is no fix, it is a selene thing so i cant fix it myself either, what this does is allow us to workaround the issue, but it fixes None of those 1 - 2 way sync is the proper solution, and was there before, this was removed in the migration to selene and i don't think it was on purpose, i answered in that PR why it does not fix the issue, but it makes it slightly more manageable i dont think the team will prioritize any of this, so this PR for me is "urgent" since at least i can workaround the current limitations, but this PR has value by itself and those 3 issues dont really have anything to do with it, they just provide context and are their own issues |
I can understand your frustration with these issues not being addressed. Our development bandwidth is minimal right now and there are certain priority projects we need to complete.
I like the idea of allowing users to turn settings synchronization off if they want to manage all settings on device. I disagree that the default should be "false". As more devices make their ways into the hands of consumers, there will be very few who will want to (or even be able to) mange their settings on device. Maybe we could add the ability to set this option to the inital Picroft bootup? I do like the idea of exposing more of the configs for core and enclosures in the Selene UI for people who want more control, but may not be comfortable opening an SSH session into their device. |
Voight Kampff Integration Test Succeeded (Results) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I'll squash the commits.
Also Travis will be disregarded. It won't let me retrigger the build and it's soon to be obsolete.
Comments addressed
I was wrong about Travis, need to work out why the default config isn't been used in the unit tests - unless this is intended behaviour? |
I wonder if https://github.com/MycroftAI/mycroft-core/blob/dev/test/unittests/mycroft.conf is causing issues? or if there is some stray config mock not being cleared correctly somewhere. Edit: No it's likely the base_mock it only contain the skills section |
Voight Kampff Integration Test Succeeded (Results) |
Is it worth us adding the entire default config? Tests can then override values as needed but the tests would ensure that the default installation would work as described. |
Yes, but I want to do that in a separate PR. Currently the config is mocked in many different ways all in the various tests and I would like to pull them to together into a more coherent structure. |
3d7b157
to
5f88774
Compare
Did go ahead and make the mock_config generate a complete configuration, will revisit after this one is merged to use it more across the unittests. |
Voight Kampff Integration Test Succeeded (Results) |
This makes sure all config parameters are available.
5f88774
to
843de8b
Compare
Voight Kampff Integration Test Failed (Results) |
Voight Kampff Integration Test Succeeded (Results) |
adds a flag to .conf that allows disabling skill settings sync
some users just dont want/like it
why do i dislike skill settings?
while this stuff isnt fixed/implemented i essentially stopped using websettings at all. not an issue for me, but i would like other people to be able to use my skills.....
this was proposed before and further discussed in #2633
default flag is set to True for compatibility reasons, but IMHO it should be false by default since this is a privacy feature, i made the code default to False but the .conf defaults to True. My reasoning here is that disabled is the sane default and enabling it is up to the enclosure and not core