feat: send the sign-up source with the first requirements update - #255
Conversation
- The requirements call made after a sign-up includes signup_attribution naming the App and its platform (ios, android or web). The API records it once for a new account and ignores it afterwards, so sending it from the shared sign-in path is harmless for an existing account. - No identifier or device details are sent and nothing is stored locally.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds signup attribution types and platform metadata. Account requirement updates now include this metadata for email, MFA, Google, and Apple signup flows. Unit and route tests cover generation and request forwarding. ChangesSignup attribution reporting
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to New accounts now send app and platform signup attribution with their requirements update, while existing accounts are handled by the API as before. The request shape and covered signup flows are aligned, with no current merge-blocking risk identified. Sequence Diagram(s)sequenceDiagram
participant SettingsOnline
participant signupAttribution
participant OnlineAPI
participant AccountRequirements
SettingsOnline->>signupAttribution: Create app and platform attribution
signupAttribution-->>SettingsOnline: Return SignupAttribution
SettingsOnline->>OnlineAPI: Call updateRequirements
OnlineAPI->>AccountRequirements: POST /account/requirements
AccountRequirements-->>OnlineAPI: Process requirement update
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
signup_attribution, naming the App and its platform (ios,androidorweb). The API records it once for a new account and ignores it afterwards, so sending it from the shared sign-in path is harmless for an existing account.Summary by CodeRabbit