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

It is possible to upload a CSV with an invalid month and year format M/DD/YY #1770

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. Open the "General calendar" button on any applet with at least one user (vbn123)
  3. Click the "Import schedule" button, and click "Yes"
  4. Upload the CSV schedule which contains event with incorrect month format: M/DD/YY (7/18/22), repeats "No" and empty frequency
  5. Submit the table
  6. Pay attention to the calendar

Actual result: It is possible to upload a CSV with an invalid date format M/DD/YYYY. CSV table is parsed but events won't be created after submitting the table.

Expected result: Only one date format is allowed: MM/DD/YYYY, as per the template in the "Import schedule" modal.

Video: https://www.screencast.com/t/A68hEWyHKG

Environment: https://admin-staging.mindlogger.org/ v0.17.18 Win 10 / Chrome 103 jeligi9407@zneep.com / 123456 applets: vbn123 Applet password: Qwe123!!!

natalia-muzyka commented 2 years ago

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

Environment: https://admin-staging.mindlogger.org/ v0.17.18 Win 10 / Chrome 103 jeligi9407@zneep.com / 123456 applets: vbn123 Applet password: Qwe123!!!