#ibgoldbergs

1 messages · Page 1 of 1 (latest)

open tinselBOT
twin ivy
#

You should get subscription.updated

#

No subscription schedule specific event

glacial mesa
#

so even though there are subscription schedule events, it won't fire to one of those, only to the subscription.updated

twin ivy
#

Right

#

Because the susbcription schedule is what's mutating the subscription object

#

Your subscription would have changed on phase transition

glacial mesa
#

Hmm but would the subscription.updated event provide any details that it finished a phase and was moving to the next phase?

I'm trying to key on a specific phase change and see if I can hook into it via metadata and its not clear to me that the data will be easily found.

twin ivy
#

What specifically are you looking at?

#

Like what data specifically is changing that you need to inspect

#

That'll be fired as well

glacial mesa
#

we have multiple phases on our subscription schedule with various metadata on each phase like

Phase1: metadata.type = a
Phase2 metadata.type = b
Phase3: metadata.type = c

When the subscription changes from a phase with type a to type b, we want to perform an action on our end.

twin ivy
#

yeah use above event then

glacial mesa
#

cool and since its an .updated event it should, theoretically, provide us with the previous_data which includes the previous phase -- right?

twin ivy
#

Yes that's correct

#

recommend testing this all out yourself in test mode

glacial mesa
#

of course

#

just trying to map it out first

#

thank you