fxbox / deprecated-taxonomy

This repository has moved.
https://github.com/fxbox/foxbox/
Mozilla Public License 2.0
0 stars 9 forks source link

Prerequisites for adding Thinkerbell as an adapter. #35

Closed mcav closed 8 years ago

mcav commented 8 years ago

@Yoric Updated with the following changes:

I have not changed the GenericError object, as it seems like that could be reasonably addressed in a followup.

Yoric commented 8 years ago

RemoveRule was deleted, turns out it wasn't used

Weird. How do you handle rule removal?

I have not changed the GenericError object, as it seems like that could be reasonably addressed in a followup.

Makes sense.

Yoric commented 8 years ago

Looks good to me, with the remarks above.

mcav commented 8 years ago

How do you handle rule removal?

The 'remove' setter is currently of type ChannelKind::Ready. It doesn't need any associated data, because every setter maps to exactly one Rule. We could add another ChannelKind, I guess, but the other ChannelKind values are quite generic so I wasn't sure which route we wanted to take.

Yoric commented 8 years ago

I'd go for something more specific. When the client wishes to remove a rule, they'll look for all the getters of ChannelKind::RemoveThinkerbellRule.

Of course, we still need a good story for determining which rule they are removing. I don't know how we can handle that properly yet.