Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VAGOV-CMS- 9474: Remove old recurring events from View Other Times for this event dropdown #849

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

chriskim2311
Copy link
Contributor

@chriskim2311 chriskim2311 commented Dec 17, 2024

Description

We are removing any recurring events that are in the past so the add to calendar links are relevant with current or future events only. Unit tests were updated as well to accompany this change. We also fixed a playwright test that was failing.

Ticket

#9474

Developer Task

Tasks

Preview Give feedback

Testing Steps

Tested this against recurring events locally. Check and see if any old dates are being shown for those type of events.
URL for testing: /outreach-and-events/events/64661/

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:
757_Military_Community_Education___DoD_Skillbridge_Connect__Peninsula__-_Newport_News__VA___Outreach_and_events___Veterans_Affairs

After:
Outreach_and_events___757_Military_Community_Education___DoD_Skillbridge_Connect__Peninsula__-_Newport_News__VA___Veterans_Affairs

Is this PR blocked by another PR?

  • Add the DO NOT MERGE label
  • Add links to additional PRs here:

Reviewer

Reviewing a PR

This section lists items that need to be checked or updated when making changes to this repository.

Standard Checks

Tasks

Preview Give feedback

Merging an Approved Layout

When merging a layout, you must ensure that the content type has been turned on for next-build inside the CMS. This CMS flag must be turned on for editors to preview their work using the next build preview server.

Resource types (layouts) that have not been approved by design should NOT be pushed to production. Ensure that slug.tsx does not include your resource type if it is not approved.

The status of layouts should be kept up to date inside templates.md. This includes QA progress, development progress, etc. A link should be provided for where testing can occur.

Merging a Non-Approved Layout

Your new resource type should not be included inside slug.tsx. Items added here will go into production once merged into the main branch. It is imperative that we do not push anything live that has not been approved.

Ensure that this layout has been added to the templates.md file with the current status of the work.

@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 17, 2024 00:45 Destroyed
@chriskim2311 chriskim2311 marked this pull request as ready for review December 17, 2024 18:03
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 18, 2024 16:45 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 18, 2024 16:53 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 18, 2024 20:10 Destroyed
@randimays
Copy link
Contributor

I spun this up locally at http://localhost:3999/central-western-massachusetts-health-care/events/73034/ and I'm seeing the below. @chriskim2311 are there correct times/dates on your end?

Screenshot 2024-12-18 at 2 36 42 PM

@chriskim2311
Copy link
Contributor Author

chriskim2311 commented Dec 19, 2024

@randimays Thanks for looking into that there was a formatting issue but the dates were being filtered properly. Also I was looking at the dates for a bit and realized the times for that event are around 2 months in length. I found a better example to test the changes against here. /outreach-and-events/events/75572/

Before:
Secretary_Denis_McDonough_Veteran_Townhall_-_Online___Outreach_and_events___Veterans_Affairs

After:
Cursor_and_Secretary_Denis_McDonough_Veteran_Townhall_-_Online___Outreach_and_events___Veterans_Affairs

@randimays
Copy link
Contributor

I checked your example and all the other events that are available and I found this one is still showing past events: /central-western-massachusetts-health-care/events/73034/ even though the accordion should not be there.

@chriskim2311
Copy link
Contributor Author

chriskim2311 commented Dec 19, 2024

Hey @randimays! Sorry if my comment wasn't clear before but this specific event has start times in October and end times in December. We are currently filtering based on end time which is why these are still showing. So the most recent date for this event is actually still ongoing. I would say this is bad data and does not align with other use cases of the recurring event dates.
Veteran_Walk-in_Flu_Clinics___VA_Central_Western_Massachusetts_health_care___Veterans_Affairs

Copy link
Contributor

@randimays randimays left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification! LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants