Repository navigation
feat(auth): preserve installer attribution through signup - #129
Conversation
|
Warning Polylane could not verify the production impact of this pull request. Checked the change against the deployed API: the new Also considered · 3 refuted
Analysed against 8 cloud accounts and 1 repository
Polylane could not find the cloud resources this repository manages, so this review looked at the entire cloud account. Connect this repository to its resources and the next review will focus on exactly what this code deploys to. Polylane analysed Did this help? React 👍 or 👎 so the next review is sharper. |
There was a problem hiding this comment.
LGTM: 1 issue
- ⚪ Nit ·
src/commands/auth/signup.ts:309
End-to-end attribution depends on the still-unmerged backend and installer changes.
Reviewed at 4b85388.
For agents
Rationale: No consequential code defects found; end-to-end attribution requires the documented companion rollout.
| Severity | Finding | Where |
|---|---|---|
| nit | F1 End-to-end attribution depends on the still-unmerged backend and installer changes. | src/commands/auth/signup.ts:309 |
Full review
F1 (high confidence): Backend/console PR coreplanelabs/nominal#4513 and installer PR coreplanelabs/polylanedotcom#573 are still open, and the deployed signup schema does not expose attribution. This is non-blocking given the documented rollout order, but deploy the backend/console support and release this CLI before enabling the website handoff.
|
F1 acknowledged: the rollout order is documented in this PR and both companion PR descriptions. Deploy backend/console support from coreplanelabs/nominal#4513, release this CLI, then enable the website installer handoff from coreplanelabs/polylanedotcom#573. The optional attribution field is ignored by the current server and the record is only introduced by the companion website change. No additional code change is needed for this coordinated rollout; none of these PRs will be merged automatically. |
There was a problem hiding this comment.
LGTM: no issues found
Reviewed at 4b85388.
For agents
Rationale: No actionable defects remain; F1 is closed as an intentional, documented coordinated-rollout requirement.
| Prior finding | Resolution | Evidence at this head |
|---|---|---|
| review:5475686156:F1 | declined | Verified at the same pinned head: src/auth/signup-attribution.ts returns null for missing or invalid installer records; src/commands/auth/signup.ts and src/auth/oauth.ts conditionally forward validated attribution without changing the no-record paths. Current backend main packages/db/zod/users.ts declares attribution as an optional JSON string bounded at 4096 characters, compatible with this CLI's sanitized output. All three PR descriptions explicitly require backend deployment and CLI release before enabling the website handoff; nominal#4513 is now merged and website#573 remains open. F1 identifies that intentional release prerequisite, not an unresolved CLI defect. This disposition does not assert production deployment or completion of live signup checks. |
Full review
F1 is closed as an intentional, documented coordinated-rollout requirement; no CLI code change is needed.
Preserve acquisition attribution from the website installer through CLI email and browser signup. The installer record is validated and only the allowed source, campaign, landing page, blog and signup page fields are forwarded.
Also supply the required Better Stack team name during integration connection, fixing the existing typecheck mismatch with the current API schema.
Validation: typecheck, lint and the CLI test suite pass. New attribution tests are offline. Live browser/email signup remains a human check.
Companion PRs: https://github.com/coreplanelabs/nominal/pull/4513 and https://github.com/coreplanelabs/polylanedotcom/pull/573. Release the backend and CLI before the website installer handoff.