spacekookie changed the topic of #qaul.net to: https://qaul.net - Internet independent, decentralised ad-hoc wireless communication application - Logs: https://freenode.irclog.whitequark.org/qaul.net
mahmudov has quit [Remote host closed the connection]
Degi has quit [Ping timeout: 260 seconds]
Degi has joined #qaul.net
multi has quit [Ping timeout: 240 seconds]
multi has joined #qaul.net
<mathju> spacekookie: I added an RPC tests with which you can trace the panicking error when creating a chat-room
<mathju> to run it: cd libqaul/rpc; cargo test
gkmngrgn has joined #qaul.net
mahmudov has joined #qaul.net
<spacekookie> Oh cool! I'll check it out today
<spacekookie> mathju: so I looked at the rpc test that was failing, and you got some of the parameters mixed up
<spacekookie> I fixed it and will push that in a second
<spacekookie> But it is making me think about making that failure in ratman less...fatal. Basically the problem was that you were including the local user in the "start_chat" parameter, which is implicit. So it tried to route to a user that was local, which it can't do
<mathju> Ahh, OK, this was the bug ... thanks!
<spacekookie> Now, the chat service still doesn't properly work, and I'm not really sure _why_. It seems like the receiving side of the chat message is never notified of new messages
<spacekookie> Even though the subscription feature does in general work
<mathju> is there a way to see the routing table?
<spacekookie> Sort of
<mathju> it would be interesting to get it as json, so we could visualize it easily in the browser :-)
<spacekookie> Ah, sure yea we can havu an api for it
<spacekookie> For testing just wrap the access here https://git.open-communication.net/qaul/qaul.net/-/blob/master/ratman/src/core/routes.rs#L89 in a dbg!()
<mathju> OK, thanks!
<mathju> An API would be great :-)
<mathju> I guess local "routing" would be needed to, when we have web users or other multiprofile nodes.
<spacekookie> Yea, and another issue is that if you send a message to someone before their announcement has made it to you
<spacekookie> It's only really something that happens in testing but it should just be journaled until it can be sent
<spacekookie> Or the user is known
<spacekookie> I've traced the chat room failure to the alexandria subscription being immediately dropped! That's really weird
<spacekookie> Okay so I figured out that the subscription is dropped because the chat worker's run condition check immediately returns false, which means it never listens for events
<mathju> ahh ...
<mathju> yea, I guess the sending of messages to contacts that have not been announced is really more of a testing then a real world issue :-)
<spacekookie> I just pushed some code that fixes the immediate issue we had, but some stuff still isn't working. Just to make sure I don't accidentally break the code again
<spacekookie> So now there's a bit of back and forth message wise before it panics. Getting there :P
<spacekookie> It works!!
<spacekookie> mathju: I pushed the working version to the MR branch. Feel free to merge it
<mathju> Congrats! Great! Happy to merge it :-)
<mathju> and thanks for the email!
<mathju> looking forward to play around and write some tests :-)
<spacekookie> Hopefully exposing the http api from qauld shouldn't be all that much work, so by the call tomorrow we should have a full stack to play with :)
<spacekookie> *fingers crossed*
<mathju> yeay!!! :-)
adam_free2air has joined #qaul.net
adam_free2air has quit [Ping timeout: 272 seconds]
gkmngrgn has quit [Ping timeout: 258 seconds]