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

Add simorgh to the req-svc-chain header #12236

Draft
wants to merge 10 commits into
base: latest
Choose a base branch
from

Conversation

karinathomasbbc
Copy link
Contributor

@karinathomasbbc karinathomasbbc commented Dec 11, 2024

Resolves JIRA [number]

Overall changes

Adds more information to the req-svc-chain header in Simorgh.

Currently the req-svc-chain for a request to Simorgh is just GTM,BELFRAGE. This PR updates this to GTM,BELFRAGE,SIMORGH for requests to the Express & NextJS app

Code changes

  • Adds addPlatformToRequestChain utility function
  • Applies function in Express server and NextJS middleware

Testing

Can check headers append locally by using ModHeader to set req-svc-chain header. E.g. setting it to GTM,BELFRAGE or GTM,BELFRAGE,SIMORGH. Can also check in preview/ on test/ on live

Go to an asset. E.g. https://www.bbc.com/afrique/articles/cx2p3273yzvo (Express) or https://www.bbc.com/hindi/live/c4gl10dnpppt (NextJS)

Open developer tools, go to the Network Tab, find the request for the document (may need to refresh)
See req-svc-chain under Response headers.

Helpful Links

Add Links to useful resources related to this PR if applicable.

Coding Standards

Repository use guidelines

@karinathomasbbc karinathomasbbc self-assigned this Dec 11, 2024
@karinathomasbbc karinathomasbbc changed the title WIP: Add simorgh to the req-svc-chain header Add simorgh to the req-svc-chain header Jan 13, 2025
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.

2 participants