8000 Fix watson config command by jmaupetit · Pull Request #161 · jazzband/Watson · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix watson config command #161

New issue
8000

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

Merged
merged 1 commit into from
Aug 2, 2017
Merged

Fix watson config command #161

merged 1 commit into from
Aug 2, 2017

Conversation

jmaupetit
Copy link
Contributor

New configuration was never saved on disk.

Follow up of #159 & #158

New configuration was never saved on disk.

Follow up of #159 & #158
@jmaupetit
Copy link
Contributor Author

We'll need to release a 1.5.2. As @SpotlightKid already said, we strongly need to test commands. I need to work on this.

Copy link
Contributor
@SpotlightKid SpotlightKid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I thought I tested that the watson config still works manually, but I've must have messed it up, sorry. I removed this line, because I didn't realize that the setter method for watson.config also sets watson._config_changed and watson.save() only saves the configuration if this attribute is True. So, theoretically, you could also replace this line with watson._config_changed = True (but it would violate encapsulation). I wonder whether it would be better to provide an explicit method on the Watson object to change a single config setting. Or even to get/set the configuration object. Using a property is a bit confusing.

@willdurand willdurand merged commit beb8bae into master Aug 2, 2017
@willdurand willdurand deleted the fix-watson-config branch August 2, 2017 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0