Skip to content

Thinkerbell Adapter now expects rules as an object instead of a serialized string. #529

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

Merged
merged 1 commit into from
Jun 20, 2016

Conversation

Yoric
Copy link

@Yoric Yoric commented Jun 16, 2016

This should make things a bit more readable and a bit more robust.

In particular, this should fix 1) of #520 (comment) .

@Yoric
Copy link
Author

Yoric commented Jun 16, 2016

r? @mcav (only for the #519 patch)

@Yoric
Copy link
Author

Yoric commented Jun 16, 2016

Also, f? @azasypkin for the API changes. See changes in the tests for details.

@mcav
Copy link
Contributor

mcav commented Jun 16, 2016

lgtm

@azasypkin
Copy link
Member

f+, looks good to me, just one question: is it expected that source getter still returns string instead of plain object?

https://local.609aebe9f46a699f80d6e0284c3334ddf879e125.box.knilxof.org:3000/api/v1/channels/get' -X PUT -H ..... --data-binary '[{"id":"thinkerbell/Everyday in the morning, camera takes a picture./source"}]'

Response:
{"thinkerbell/Everyday in the morning, camera takes a picture./source":"{\"name\":\"Everyday in the morning, camera takes a picture.\",\"rules\":[{\"conditions\":[{\"feature\":\"clock/time-of-day-seconds\",\"source\":[{\"id\":\"getter:[email protected]\"}],\"when\":{\"Geq\":{\"Duration\":28800}}}],\"execute\":[{\"destination\":[{\"id\":\"channel:[email protected]\"}],\"feature\":\"camera/store-snapshot\",\"value\":null}]}]}"}

@Yoric
Copy link
Author

Yoric commented Jun 17, 2016

Good catch. I'll make both match.

@Yoric Yoric force-pushed the refactor-thinkerbell branch from 86f36e2 to 4c8e874 Compare June 17, 2016 09:26
@Yoric
Copy link
Author

Yoric commented Jun 17, 2016

Ok, fixed.

@mcav, if you have a chance to take a look at the revised version, that would be great.

@mcav
Copy link
Contributor

mcav commented Jun 17, 2016

Okay, still looks good to me

On Jun 17, 2016, at 10:26 AM, David Rajchenbach-Teller [email protected] wrote:

Ok, fixed.

@mcav, if you have a chance to take a look at the revised version, that would be great.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@Yoric Yoric force-pushed the refactor-thinkerbell branch from 4c8e874 to f04d91d Compare June 17, 2016 21:19
@coveralls
Copy link

coveralls commented Jun 17, 2016

Coverage Status

Coverage decreased (-0.05%) to 32.459% when pulling f04d91d on Yoric:refactor-thinkerbell into 7958cc3 on fxbox:master.

@Yoric Yoric merged commit 3fb392d into fxbox:master Jun 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants