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

Fix settings changed check after skill handler #2652

Merged
merged 1 commit into from
Aug 10, 2020

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Aug 8, 2020

Description

This issue was reported by @emphasize here MycroftAI/skill-reminder#37. Mycroft doesn't detect changes because after the initial change the _initial_settings reference is refering to the same memory as the settings member. This was earlier fixed for the initial setup of _initial_settings but the check at the end of intent handler was overlooked.

How to test

Use the reminder skill to set a couple of reminders, make sure they're all stored in the settings.json and not just the first.

Contributor license agreement signed?

CLA [ Yes ]

@devops-mycroft devops-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Aug 8, 2020
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

Make self._initial_settings have an unique copy of the settings and not
a reference to the original ones.
@forslund forslund force-pushed the bugfix/save-settings branch from 05bc46a to 6abfca6 Compare August 9, 2020 06:51
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

@krisgesling
Copy link
Contributor

Looks good, and fixes the issue in Reminders.

Thanks!

@krisgesling krisgesling merged commit a901b90 into MycroftAI:dev Aug 10, 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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants