metaphysics icon indicating copy to clipboard operation
metaphysics copied to clipboard

[Messaging] conversation.last_message should be nullable

Open l2succes opened this issue 8 years ago • 5 comments

l2succes avatar Jun 20 '17 14:06 l2succes

I'm gonna close this since it seems like it was b/c of some simultaneous data migrations around encryption happening.

We'll make new inquiries and can re-open or create new schema issues as needed (from a cleaner slate of fresh inquiries).

mzikherman avatar Jun 20 '17 17:06 mzikherman

Yup I've been noticing this- in the few seconds or so after placing an inquiry, I guess we can retrieve the conversation but last_message is null for a bit.

mzikherman avatar Jul 03 '17 13:07 mzikherman

Does it make sense for us to be able to retrieve the conversation while last_message is still null? Like, can we show anything yet? If not, maybe MP should return null for the conversation while last_message is still null?

alloy avatar Jul 03 '17 13:07 alloy

Looking at the code in Impulse/Radiation a bit more closely, it looks like the Conversation is created in Impulse -> Messages created in Radiation -> Webhook back to create messages in Impulse.

So, we have a whole other step in between the time that a conversation is available in Impulse, and when last_message is available in Impulse.

mzikherman avatar Jul 03 '17 13:07 mzikherman

Does it make sense for us to be able to retrieve the conversation while last_message is still null? Like, can we show anything yet? If not, maybe MP should return null for the conversation while last_message is still null?

Yea I think that's right. If last_message is null that means you just initiated the inquiry (and there isn't even any proper messages 'yet') so we should probably just skip those conversations altogether.

mzikherman avatar Jul 03 '17 13:07 mzikherman