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

Banners endpoint does not respond as expected for certain banner values #20152

Open
3 tasks
timcosgrove opened this issue Dec 20, 2024 · 2 comments
Open
3 tasks
Assignees
Labels
Accelerated Publishing CMS Team CMS Product team that manages both editor exp and devops Defect Something isn't working (issue type) Events product maintained by Public Websites team next-build FE Repository that will replace content-build. Uses NextJS, builds static pages. VA.gov frontend CMS team practice area

Comments

@timcosgrove
Copy link
Contributor

timcosgrove commented Dec 20, 2024

What is the problem?

When a VAMC real time banners is implemented with certain active paths, the Banners API endpoint does not return data correctly.

When a Full Width Banner is implemented with certain active paths, the Banners API endpoint does not return data return correctly.

Who is affected?

End users, as banners may be prevented from showing up on the site.

How urgent is the issue?

Critical / Major / Minor
Major

Tasks

Preview Give feedback

How can we see the problem? (repro steps)

  1. Set up a VAMC Banner with situation update on a given Drupal instance. Make sure the banner is published, and that it has the following values for path matching: /, /*
  2. Visit the banners API endpoint on this same Drupal instance, with the following path: /api/v1/banner-alerts?path=/pittsburgh-health-care/events

Expected result: Data should be returned that contains the banner created in 1.

Actual result: The data is empty.

Is there any additional information?

Interestingly, /pittsburgh-health-care/events/ works fine.

Why is the problem happening and how do we fix it?

@timcosgrove timcosgrove added Accelerated Publishing Defect Something isn't working (issue type) labels Dec 20, 2024
@timcosgrove timcosgrove self-assigned this Dec 20, 2024
@jilladams jilladams added VA.gov frontend CMS team practice area Events product maintained by Public Websites team sitewide VAMC real-time banners VAMC banners (without situation updates so far) that publish via vets-website rather than content bu next-build FE Repository that will replace content-build. Uses NextJS, builds static pages. labels Dec 23, 2024
@jilladams
Copy link
Contributor

jilladams commented Jan 3, 2025

@timcosgrove We ran into confusion when trying to refine this ticket for action. Context:

  1. Full width banners proper don't use the banners API. Right now, only VAMC Banner Alerts with Situation Updates are handled through that API.
  2. VAMC BAwSUs don't use regex path definition to determine what pages they should show on. They use a checklist that gives the option of selecting any VAMC System, which will show the banner on every VAMC system page, OR only the landing page / operating status page of the System.

Image

Given that you're talking about the banners API, that implies we are not dealing with "full width banners" on Events pages, but actually dealing with "VAMC Banner Alert with Situation Updates". I updated that in ticket body, but that may be incorrect?

I did not update the reference to path definition of /* or /. However: that does not apply to VAMC BAwSUs.

So: in order to work the ticket, we need to figure out:

  • Which content type was not appearing correctly? Was it:
    • A) Full width banners that are configured via / or /* to appear on VAMC Event pages, (and are built via content-build on every other page) OR
    • B) VAMC BAwSUs (aka real-time banners now), which rely on the banners API and are now a vets-website application
  • If it was A, why do we think the banners API is implicated?

@timcosgrove timcosgrove added CMS Team CMS Product team that manages both editor exp and devops and removed sitewide labels Jan 9, 2025
@jilladams
Copy link
Contributor

Per a slack convo with Tim:
This is not about realtime banners and is only a problem for 'Full Width Banners', not for the Facility situation updates.

This is not about the real-time banners API in vets-api; it's about the banners API in the CMS
There's a JSON:API endpoint that provides banners data to Next Build. That's what this ticket was about.

This came up when Michelle was publishing the banner for the shutdown, which was a Full Width Banner; and it wasn't showing up correctly for Events because of a Next Build internal problem.

I'm removing this from the real-time banners epic / the SItewide board. Thanks for clarifying, Tim!

@jilladams jilladams removed the VAMC real-time banners VAMC banners (without situation updates so far) that publish via vets-website rather than content bu label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accelerated Publishing CMS Team CMS Product team that manages both editor exp and devops Defect Something isn't working (issue type) Events product maintained by Public Websites team next-build FE Repository that will replace content-build. Uses NextJS, builds static pages. VA.gov frontend CMS team practice area
Projects
None yet
Development

No branches or pull requests

2 participants