raystack / frontier

Frontier is an all-in-one user management platform that provides identity, access and billing management to help organizations secure their systems and data. (Open source alternative to Clerk)
https://raystack-frontier.vercel.app/
Apache License 2.0
273 stars 34 forks source link

fix: http code if user already member in invite #783

Closed kushsharma closed 2 months ago

kushsharma commented 2 months ago

Service won't return 5xx if a user is already a member of organization while creating the invite.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontier ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 24, 2024 4:55am
coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 11007254020

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
core/invitation/service.go 1 2 50.0%
internal/api/v1beta1/invitations.go 2 4 50.0%
core/invitation/mocks/policy_service.go 0 46 0.0%
core/invitation/mocks/user_service.go 0 46 0.0%
core/invitation/mocks/preferences_service.go 0 47 0.0%
core/invitation/mocks/relation_service.go 0 74 0.0%
core/invitation/mocks/group_service.go 0 112 0.0%
core/invitation/mocks/organization_service.go 0 112 0.0%
core/invitation/mocks/repository.go 0 187 0.0%
<!-- Total: 3 630 0.48% -->
Totals Coverage Status
Change from base Build 10957009003: -0.003%
Covered Lines: 10935
Relevant Lines: 113132

💛 - Coveralls