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

[Events] FE Events templates not loading header/footer / all event data when VA Location > Location information is missing #17424

Closed
4 tasks
jilladams opened this issue Mar 5, 2024 · 7 comments
Labels
Defect Something isn't working (issue type) Events product maintained by Public Websites team Needs refining Issue status Public Websites Scrum team in the Sitewide crew sitewide VA.gov frontend CMS team practice area

Comments

@jilladams
Copy link
Contributor

jilladams commented Mar 5, 2024

Description

When the user opens the event for VA ECHCS Colorado Springs Walk-in Flu Shot Clinic on the websites it does not display all of the information that has been entered in Drupal. It looks like the same error is happening to some other events as well, not all events.

Reported by Support / VAMC editor: https://dsva.slack.com/archives/C52CL1PKQ/p1709679995868159

Event node: https://prod.cms.va.gov/eastern-colorado-health-care/events/66168/
FE Event page: https://www.va.gov/eastern-colorado-health-care/events/66168/

FE page is missing header, footer, event metadata after "When"/date info.

Other affected Event(s)

VA ECHCS Patient Tele-Town Hall- April - https://www.va.gov/eastern-colorado-health-care/events/65547
Event Node: https://prod.cms.va.gov/node/65547/edit

Acceptance Criteria

  • All event information entered in Drupal should display to users when they're viewing the event(s)
  • Header and footer load on events pages
  • Requires design review
  • Requires accessibility review
@jilladams jilladams added Needs refining Issue status VA.gov frontend CMS team practice area Public Websites Scrum team in the Sitewide crew Events product maintained by Public Websites team Defect Something isn't working (issue type) labels Mar 5, 2024
@jilladams
Copy link
Contributor Author

Noting that on both the listed nodes, the Event says it's at a VA Location, but a location wasn't entered. Not clear yet if that's the problem, or needs to be a separate ticket. If that's not the root cause here once we know, will need to ticket it.

@chriskim2311
Copy link
Contributor

FE needs to update logic to account for the footerNav div not being present when trying to render the VAFooter content(vets-website). When this event in the CMS was created with bad data we most likely failed in the event.drupal.liquid template and did not render the footer.html(content-build) at the end of the template.

When the startVAFooter function tried to populate the footer div that was not rendered we saw the undefined error on prod.
VA_Eastern_Colorado_Health_Care___VA_ECHCS_Colorado_Springs_Walk-In_Flu_Shot_Clinic___Veterans_Affairs

Main fix would be to not allow for the bad data to be released on prod. But we can account for the missing footer div in the startVAFooter function in vets-website.

@chriskim2311 chriskim2311 removed the Needs refining Issue status label Mar 6, 2024
@jilladams
Copy link
Contributor Author

Dave made the judgment call: Public Websites will work on fixing #17426, but will leave this issue for later. Moving to "transfer to other teams" pipeline, assuming that will end up with IIR.

@FranECross FranECross changed the title FE Events templates not loading header/footer / all event data [Events] FE Events templates not loading header/footer / all event data Apr 19, 2024
@FranECross
Copy link

Moved back to our pipelines because of the decision that the PW team will retain Events management.

@jilladams jilladams changed the title [Events] FE Events templates not loading header/footer / all event data [Events] FE Events templates not loading header/footer / all event data when VA Location > Location information is missing Apr 25, 2024
@randimays
Copy link
Contributor

If we make it to vets-website code with a broken content-build template (due to missing Drupal data), the problem exists in content-build and/or Drupal. Most likely, we don't need to make changes in vets-website.

We have a ton of null checks in the events template (CB), but it's hard to tell where the events template broke exactly because the original issue is fixed and I'm not sure we can reproduce it (@dsasser?). Because the events template broke part of the way through executing the code, it skipped over the bottom of the template where the footer is inserted. But the show must go on: vets-website code started executing and tripped when the footer div was missing.

In my opinion, we should carefully consider where we implement error handling / fallbacks. For instance, if we're missing Drupal data that breaks the header or footer, we can't simply prevent those from rendering as a fail-safe as this is not an acceptable Veteran experience. We need to fix the problem where it originates (as code to the offending code as possible).

I could be missing some nuance in this ticket about expectations and requirements, but it doesn't seem to me like there is any front end action to be taken here.

@FranECross FranECross added the Needs refining Issue status label May 28, 2024
@FranECross
Copy link

Closing per Randi's comment above.

@FranECross FranECross closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2024
@jilladams
Copy link
Contributor Author

Noting: Drupal work was done to prevent us from being able to end up in this state again, under #17426.

However, that Drupal change won't work until the CMS Team is able to resolve #17896

So: this might happen again in the meantime. The fix is to have the Editor add the missing Location data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Something isn't working (issue type) Events product maintained by Public Websites team Needs refining Issue status Public Websites Scrum team in the Sitewide crew sitewide VA.gov frontend CMS team practice area
Projects
None yet
Development

No branches or pull requests

4 participants