ChildMindInstitute / mindlogger-app

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

The user received an empty Report after passing the activity #2770

Closed MaksimYurys closed 2 years ago

MaksimYurys commented 2 years ago

Preconditions: The user is logged in at the mobile app The user has an applet with the configured report

Steps to reproduce:

  1. Pass the activity
  2. Go to the user mailbox
  3. Download the received report from MindLogger
  4. Open the received report from MindLogger

Actual result: The user received an empty Report after passing the activity

Expected result: The user received a filled Report with correct data after passing the activity

Video: https://images.zenhubusercontent.com/103405139/773324c2-e228-459b-9647-ac36cb18dafa/0bf1af1d_7d99_45c1_af18_3c7adc0dc9cf.mp4

Report: https://www.dropbox.com/s/jrxaywwy6aufpo0/REPORT_appletA1_activi_2022-07-12-104326.rar?dl=0

Environment: ML 0.21.36 staging iPhone 8 // iOS 14.0.7 Samsung Galaxy S8 // Android 8 qqtest.02@gmail.com // Qqww!123 applet - appletA1 // Qqww!123

WorldImpex commented 2 years ago

I also tried to send the PDF report using the same IP parameters and I did not receive an email @astef021

fullstackdev065 commented 2 years ago

@WorldImpex did you add your email to recipient list?

WorldImpex commented 2 years ago

Yes - I created a new applet today using the report feature and it works now. PDF emailed is still broken though

natalia-muzyka commented 2 years ago

after the latest deployment, it is still broken. I didn't receive email after the first completion, got it after the second completion and downloaded zip, which contains broken pdf. video: https://www.screencast.com/t/WSRvqcyo

checked with a newly created applet.

Environment: https://admin-staging.mindlogger.org/ Win 10 / Chrome 103 v0.17.10 user-stg@ml.com / 123456 config reports v5 / test A Applet password: Qwe123!!!

WorldImpex commented 2 years ago

Short Term approach is to put a hyperlink to the S3 bucket that contains the report. The user should download the encrypted PDF from there.

image.png

natalia-muzyka commented 2 years ago

Verified as fixed: https://www.screencast.com/t/HouZpNMH

Environment: ML v0.21.42 staging iPhone 7 // iOS 13.1.1 Google Pixel 5a // Android 11 https://admin-staging.mindlogger.org/ Win 10/ Chrome 103 user-stg@ml.com / 123456 config reprots v11 Applet password Qwe123!!!