Onboarding: enforce single project per user on onboard#805
Conversation
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 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. Review rate limit: 0/1 reviews remaining, refill in 15 minutes and 5 seconds.Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
| session.add(user) | ||
| session.flush() | ||
|
|
||
| _, mapping_status = add_user_to_project( |
There was a problem hiding this comment.
why user can't map to other project ?
There was a problem hiding this comment.
Because then we would have to build the entire flow where a user can switch between multiple projects using a single login. For example, if a user belongs to multiple projects, we would need to show a dropdown in the UI to let them switch projects, and the data would then load based on the selected project. This would require a lot of changes, so for now we are avoiding this.
Issue: ProjectTech4DevAI/kaapi-frontend#133
Summary
user_projectmapping in the same transaction.User '<email>' is already associated with another project.Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.