BIDMCDigitalPsychiatry / LAMP-platform

The LAMP Platform (issues and documentation).
https://docs.lamp.digital/
Other
13 stars 10 forks source link

Cannot schedule activities for 4/1 #585

Closed dcurrey88 closed 2 years ago

dcurrey88 commented 2 years ago

Describe the bug Activities cannot be scheduled for today (4/1).

To Reproduce If I try to programmatically schedule the activities, they will not show up in the feed. If I try to add a schedule on the dashboard, it will change the date to 5/1. This does not seem to be an issue for other days (4/2 etc).

Screen Shot 2022-04-01 at 8 49 07 AM Screen Shot 2022-04-01 at 8 49 21 AM
tlakhtak commented 2 years ago

Also cannot schedule activities for November 1, changes date to December 1

lukeoftheshire commented 2 years ago

Also cannot schedule for February, June, September 1st

As we all know, "30 days hath September, April, June, and November...except for February, which has 28" so I'm guessing the error has something to do with validation checking for months w/ less than 31 days. No error is being thrown in the console, by the way.

divyav2020 commented 2 years ago

We have updated in Staging LAMP_Admin Website_Activity schedule on apr 1st.xls @avaidyam

dcurrey88 commented 2 years ago

This appears to be fixed in staging. However, if I try to create a schedule without specifying a repeat interval nothing will happen. The schedule will show in Activity data from the API (with repeat interval set to None) but will not show up in the dashboard or in the feed. It seems that there should be some sort of notification to the user that this information is required.

evinkalengaden commented 2 years ago

We have updated the issue in the dashboard-staging. In such way that, User will not be allowed to save a schedule until the (Repeated Interval, Start Date and Time) are added. On editing schedule also same condition is validated. Please find the validation screenshot attached. Repeat_interval_validate

@dcurrey88 @avaidyam

dcurrey88 commented 2 years ago

This appears to be working in staging.