Repository navigation
WH: Exclude timestamp from redshift reserved words - #224
Merged
Merged
Conversation
gane5hvarma
approved these changes
Jul 31, 2020
arpl
added a commit
that referenced
this pull request
Oct 20, 2026
…ework (ACT2-1194) (#5680) ## feat(pinterest_audience): router destination on the batching framework - **Integration:** `DestinationIntegration`, router only, registered as `PINTEREST_AUDIENCE: { routerTransform, batching }`. The proxy is on by default. - **Routing:** connection config is read **per row**, so a single router call can hold several lists. Requests go to `PATCH /v5/ad_accounts/{ad}/customer_lists/{list}`, with `operation_type` ADD (insert/update) or REMOVE (delete) and the body format set by `RECORD_FORMAT` in `config.ts` (classic `records` string; `records_v2` rows are kept for later, see Record format below). - **Hashing:** emails are lowercased and trimmed, and MAIDs are lowercased and checked against the UUID pattern. Phones are only normalised and sent under `records_v2`; the classic body drops PHONE. Then SHA-256, controlled by the connection's `isHashRequired`. - **DeliverySpec:** - Every 401 triggers a token refresh, then a retry. - 403, 404 (codes 1001/1018) and 400 abort, with remediation text. - 429 is throttled and 5xx is retried. - **Secret paths:** masks `headers.Authorization`. The CI check passes against integrations-config `main`. - **Batch size (P1, settled):** `MAX_RECORDS_PER_REQUEST=1000` stays. The 2026-10-16 probe accepted ≥10,000 identifiers in one request. - **401:** every 401 returns `authExpired` (REFRESH_TOKEN), so it refreshes and retries. A same-token retry can't succeed (review feedback, b6b8f3c), so no auth-body pattern is needed. - **Not in this PR:** `live.ts`, which follows with the CI secret. - **Tests:** unit 79/79 (`--testPathPattern=pinterest_audience`) and component 16/16, including mixed connections, a hashing mismatch, and both record formats. --- **Spec:** [rudder-specs #224](rudderlabs/rudder-specs#224), at `lookout-audiences-initiative/activations/pinterest-audience/spec.md`. Tickets: [ACT2-1194](https://linear.app/rudderstack/issue/ACT2-1194) and [ACT2-1195](https://linear.app/rudderstack/issue/ACT2-1195). Customer: Crate & Barrel. **Review:** this went through a pre-PR review panel (security, correctness, product, ops, coherence, plus 4 adversarial checks). The verdict was Approve with follow-ups, with nothing blocking, and all fixes have been applied and re-reviewed. The record is `verify/2026-10-15-review-panel.md` in the spec PR. **Second panel (2026-10-19, D15 delta):** Approve with follow-ups, nothing blocking. See the review comment on this PR. **Verified on mini against a real Pinterest account:** - Web app OAuth consent works, and so does Lookout Connect through the relay (caller `state`). - The ad-account and customer-list audience pickers work, and so does `/setup` for an existing audience. - A manual sync sent all 150 rows through the transformer proxy to Pinterest. - Writes (2026-10-19 full pass on these heads, `verify/2026-10-19-full-pass.md`): a web-app create sent 150/150 adds as classic `records` (EMAIL + MAID), and removing 5 members sent 5/5 removes. - `403 · 29` was never the Trial tier. Standard access was granted on 2026-10-16 and the error stayed. Pinterest enables the multi-field `records_v2` body per app, and ours isn't enabled yet (request filed). That's why v1 sends the classic format (D15). - Format switch, live (2026-10-19, while it was still a definition property): `records_v2` was refused 0/145 with `403 · 29`, and `records` delivered 145/145. The switch is now the transformer constant `RECORD_FORMAT` (review on config #2839). **Merge order** (spec §10): 1. auth-service creds + rudder-auth 2. integrations-config (ships `hidden: true`) 3. integrations-info + transformer 4. rudder-icons mapping release (done: `@rudderlabs/icons` 0.6.0) 5. web app + Lookout (icons bump) 6. operator values 7. Lookout `RS_ACCOUNTS_OAUTH_DEFINITIONS` 8. `hidden: false` (Standard was granted 2026-10-16) **Record format (D15):** the body is the classic `records` string (SHA-256 values joined by commas, one identifier per record, PHONE dropped). `RECORD_FORMAT` in `config.ts` selects it, and the `records_v2` multi-field path stays for when Pinterest enables it for our app. Why: on 2026-10-16 Pinterest returned 403 code 29 for `records_v2` and 200 for `records` on the same list for app 1624584 on Standard. An earlier revision read the format from the definition's `config.recordFormat`; integrations review on config #2839 moved it into code, so the shared definition schema stays Pinterest-free. A `recordFormat` on the definition is ignored (test D19). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.