ChildMindInstitute / mindlogger-app

MindLogger (React Native) data collection app
Other
15 stars 6 forks source link

BUG: Applets are not showing up on user phones after invites go through #2840

Closed hotavocado closed 1 year ago

hotavocado commented 1 year ago

URGENT: Affects a number of HBN study participants

Steps to replicate:

  1. invite an account to an applet as USER
  2. accept invite under that account in web.mindlogger.org
  3. the invite goes through and the user shows up under the USER table on the admin panel
  4. log in under the account on mobile device, the applet does not show up

Here's a video that shows me running into this issue 3 times with 3 different applets and 2 accounts. For context, this video follows from #2839

Watch Loom video here

My phone is a OnePlus 8 Pro running Android 11 and MindLogger version 0.21.48

natalia-muzyka commented 1 year ago

@karser it looks like the issue that I faced before on some staging and prod accounts. It was resolved for my accounts in the scope of this ticket (maybe here you can find some additional info that can help): https://app.zenhub.com/workspaces/mindlogger-5e11094d0c26311588da9626/issues/childmindinstitute/mindlogger-backend/1283

We also had a similar issue with one particular applet on staging: when users accepted the invitation all the applets disappeared from the account. I want to highlight, that my staging account is an admin with a specific role, who can create Welcome applets (the applet, that is shown to all users without an invitation). I assume Arno's account is also having the same specific role, so maybe here can be the reason. Here is a resolved ticket: https://app.zenhub.com/workspaces/mindlogger-5e11094d0c26311588da9626/issues/childmindinstitute/mindlogger-backend/1256

cc: @WorldImpex

WorldImpex commented 1 year ago

@karser Here is the PR that resolved that issue as well https://github.com/ChildMindInstitute/mindlogger-backend/pull/1294

karser commented 1 year ago

@WorldImpex looks like that's different. From what I see so far the problem is in "'EMA Assessment (Mid Day)'" activity of "Healthy Brain Network (NIMH content) v0.30" applet. Probably some fields are missing. Looking into that.

WorldImpex commented 1 year ago

Resolved for EMA type applets