Picolab / pico-engine

An implementation of the pico-engine hosted on node.js
http://picolabs.io/
MIT License
43 stars 8 forks source link

Add wrangler-initated event `wrangler:ruleset_flushed` with attribute "rids" #534

Open b1conrad opened 3 years ago

b1conrad commented 3 years ago

So that a clever ruleset could keep track of its version in an entity variable. Then, when a flush happens that upgrades the version, a rule could migrate the other entity variables in some way.

b1conrad commented 3 years ago

Hm. Not as easy as I first thought. We know which pico requested the flush, but all picos with that same URL installed would need to receive the event. Probably we'll need to have the event percolate up to the root pico and then down through the children recursively.