-
-
Notifications
You must be signed in to change notification settings - Fork 8
Pass gift through the page hit pipeline #742
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ export const pageHitRawPayloadFromRequest = (request: PageHitRequestType): PageH | |
| member_status: request.body.payload.member_status, | ||
| post_uuid: request.body.payload.post_uuid, | ||
| post_type: request.body.payload.post_type, | ||
| gift_link: request.body.payload.gift_link ?? null, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Ghost sends the new gift-link dimension as Useful? React with 👍 / 👎. |
||
| locale: request.body.payload.locale, | ||
| location: request.body.payload.location, | ||
| referrer: request.body.payload.referrer ?? null, | ||
|
|
||
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.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Normalize missing raw
gift_linktonullhere too.PageHitRaw.payload.gift_linkis optional upstream, so the batch/raw path can still hand youundefined. Copying it through directly breaks the PR’s “absent => null” contract for processed payloads. Use the same fallback as the request→raw transform.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents