Check for ongoing recurring events when making date-based event calculations. #795
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This corrects an error where a recurring event that is in progress would show the following event's date while the event was still in progress. A recurring event that is currently in progress should show the current date until the event window has passed.
Ticket
department-of-veterans-affairs/va.gov-cms#19470
Developer Task
Tasks
Testing Steps
Testing existing recurring events
We are looking at this event: https://main-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/outreach-and-events/events/73053
This event runs daily through Oct 30, from 9:00 am - 5:00 pm ET, which makes it a good candidate for testing of ongoing recurring events.
Compare this to Dev currently, which will incorrectly show the following day once the current day's event starts at 9:00 am ET: https://dev.va.gov/outreach-and-events/events/73053/
Testing new ongoing events that are not recurring
Note: this test is optional, in the event that you want to use custom test events in addition to examining existing events.
In all cases, you can create new content at this CMS instance: https://main-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/
This CMS is the data source for the Next Build Tugboat instance we are currently testing. Publish the events to the National Outreach & events calendar, so that you know where to look for them.
a. For the non-recurring event, the event should show in the 'All upcoming' filter.
b. For the recurring event, the event should show in the 'All upcoming' filter, and the date & time shown should be today's date.
a. For the non-recurring event, the event should show in the 'Past events' filter.
b. For the recurring event, the event should show in the 'All upcoming' filter, and the date & time shown should be tomorrow's date.
QA steps
What needs to be checked to prove this works?
What needs to be checked to prove it didn't break any related things?
What variations of circumstances (users, actions, values) need to be checked?
Screenshots
Before is on the right, after is on the left. The difference can be observed in the 'When' time.
Reviewer
Reviewing a PR
This section lists items that need to be checked or updated when making changes to this repository.
Standard Checks
Tasks