Closed JPow closed 6 years ago
@projectmushroom @miltontony can you guys check on the refresh stuff you added in https://github.com/rapidpro/casepro/pull/220 ?
@projectmushroom @miltontony any updates please? We have a 3 hour live chat approaching.
@rowanseymour this bug is still an ongoing issue.
@JPow is this effecting all workspaces or is there one in particular I can look at to see this problem happening?
@JPow n/m I think I'm seeing it on Nigeria. Appears that the AJAX request to refresh the inbox sometimes times out so I'll see what we need to do to fix that.
@rowanseymour tx. Re ur earlier query, you should be able to see it on all partner pages. I've been looking at https://global.upartners.org/ and https://sierraleone.upartners.org/
I've pushed changes for two problems I've identified with the refresh functionality: 1) the query for fetching messages with new actions and locks wasn't efficient on a large message table, and 2) the poll function in the inbox controller was setting before==after so it never returned any messages.
@JPow this is deployed to rapidpro.io so please confirm that it's working as expected
@rowanseymour just tested on global.upartners and its not working.
@JPow noted - I'll look into that in next few days
Have investigated and this appears to be due to message fetching being based on created_on
, but messages not becoming fetchable until is_handled
is set. Maybe we can add a Msg.handled_on
field and use that for message searching (before and after filters)
Alternatively maybe we can fetch messages based on before/after other message ids, rather than using a time windows.
Fixed in #239
@JPow can you check if this is fixed for you now on upartners.org?
@rowanseymour confirmed as fixed. Tx.
Hey, I noticed in U-Partners, our message inbox no longer refreshes as it used too. Looks like something is broken - perhaps someone working on it can take a look.