/srv/irclogs.ubuntu.com/2020/03/11/#smooth-operator.txt

jlositotesting bot18:41
jlosito1 more test18:47
ChipacaDmitrii-Sh: welcome!18:54
Chipacaubuntulog3: also welcome18:54
Chipacajlosito: thanks18:54
jlositonp18:55
=== Chipaca changed the topic of #smooth-operator to: general discussion of canonical's operator framework || github.com/canonical/operator
Chipacaphew19:11
Chipacawoop, everything works ;-)19:12
* Chipaca goes to make dinner19:13
niemeyerI'd just say "on the operator framework"19:13
niemeyer:P19:13
=== Chipaca changed the topic of #smooth-operator to: general discussion of the operator framework || github.com/canonical/operator
Chipacaniemeyer: like so?19:13
niemeyerThanks19:13
Chipacai'm sure there's a way of just telling chanserv to do that19:14
Chipacainstead of op/topic/deop19:14
Chipacaanywhoo, dinner-making19:14
niemeyerHave fun!19:15
niemeyerIt's already beer o'clock here..19:15
niemeyerand debugging something.. but at this stage any findings are a bonus :)19:15
Chipacano beer here because it's a light pre-yoga dinner19:22
Chipacamight have a beer after yoga; can't be _too_ healthy19:22
niemeyerI'm sure your zeneth capabilities would be much improved19:22
niemeyerNot so sure about balance though19:23
Chipacai could pretend it's about that, but it's just trying to keep my back un-messed-up19:23
Facuniemeyer, did we think already about the following situation? 1. the event is deferred, it's `.snapshot` is called; 2. the charm is upgraded, the event code itself changes! 3. the event is restored, a new code needs to handle previous "format"20:16
FacuI mean, are we just leaving that consideration to the developer, providing any guide? any structure?20:16
niemeyerFacu: Yeah, we don't expect devs to be using snapshot directly very often20:19
niemeyerFacu: We have the StoredState mechanism for that20:19
niemeyerPeople can just do _stored = StoredState() at class level20:19
niemeyerAnd only store there the data they want to persist20:20
Facubut everytime you define an Event you need to provide its snapshot/restore pairs, right?20:20
niemeyerNaming is important precisely to highlight that this is persisted20:20
niemeyer(thus the choice of "_stored")20:20
niemeyerFacu: Every time you define an event *type* that needs parameters20:20
Facuperfect20:21
niemeyerFacu: We should probably make EventBase a child of Object, so StoredState would work there as well20:22
niemeyerBut I haven't thought through the consequences of that20:22

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!