-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: ensure contentBusId is loaded properly #342
Conversation
This PR will trigger a patch release when merged. |
Codecov Report
@@ Coverage Diff @@
## main #342 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 52 52
Lines 4308 4329 +21
=========================================
+ Hits 4308 4329 +21
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -98,7 +98,6 @@ async function computeSurrogateKeys(path, contentBusId) { | |||
export async function jsonPipe(state, req) { | |||
const { log } = state; | |||
state.type = 'json'; | |||
const { contentBusId } = state; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stefan-guggisberg this was the cause of the wrong surrogate key
await fetchConfigAll(state, request, response); | ||
await setCustomResponseHeaders(state, request, response); | ||
try { | ||
await fetchConfig(state, request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was completely missing! OPTIONS requests would have never worked properly
@@ -46,7 +46,6 @@ declare interface PipelineOptions { | |||
ref: string; | |||
partition: string; | |||
path: string; | |||
contentBusId: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it from options, so that it isn't set accidentally
## [3.11.18](v3.11.17...v3.11.18) (2023-07-04) ### Bug Fixes * ensure contentBusId is loaded properly ([#342](#342)) ([80e4552](80e4552))
🎉 This PR is included in version 3.11.18 🎉 The release is available on: Your semantic-release bot 📦🚀 |
contentBusId
from PipelineStateOptions (constructor)contentBusId
is loaded from helix-config in all pipes