ChildMindInstitute / mindlogger-admin-OLD-Vue

Browser-based interface for administering the MindLogger platform
https://admin-prod.mindlogger.org
Other
4 stars 4 forks source link

After saving the General schedule from CSV with a specified Secret UID the General calendar is duplicated to the Individual calendar #1714

Closed natalia-muzyka closed 2 years ago

natalia-muzyka commented 2 years ago

Preconditions The user is logged in on the admin panel https://admin-staging.mindlogger.org/ jeligi9407@zneep.com / 123456

Steps to reproduce

  1. Open a site https://admin-staging.mindlogger.org/
  2. Click the "General calendar" button on any applet with at least one user (vbn123, tokenlogger anita)
  3. Click the "Import schedule" button, and click "Yes"
  4. Upload the CSV schedule which contains: at least two events 1- one with a non-specified Secret UID, 2- one with a specified Secret UID
  5. Submit the schedule and Save
  6. Pay attention to the applied events in the General calendar
  7. Move to the "View users" tab and open an Individual calendar of the user whose secret UID was specified in a CSV
  8. Pay attention to the Individual calendar events

Actual result: After saving the General schedule from CSV with a specified Secret UID the General calendar is duplicated to the Individual calendar. The user whose UID was specified in CSV schedule has general events + own events in the Individual calendar.

Expected result: After saving the General schedule which contains the event for a specific Secret UID:

As it worked before fixing (removing) the Secret UID from the Individual calendar (according to ticket https://app.zenhub.com/workspaces/mindlogger-webapp-5e11094d0c26311588da9626/issues/childmindinstitute/mindlogger-admin/1697) Video (correct behavior): https://www.screencast.com/t/RB7597XoENG

Video (issue): https://www.screencast.com/t/6mbEsqIjWI

Environment: https://admin-staging.mindlogger.org/ v0.17.11 Win 10 / Chrome 103 jeligi9407@zneep.com / 123456 applets: vbn123 , TokenLogger applet (Anita) Applet password: Qwe123!!! CSV files: https://drive.google.com/drive/folders/18OcV3ryUd6-jriDQjhms4Q74OSryYaMr?usp=sharing

natalia-muzyka commented 2 years ago

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

Environment: https://admin-staging.mindlogger.org/ v0.17.11 Win 10 / Chrome 103 jeligi9407@zneep.com / 123456