Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (members): Use new API to add user to project instead of creating policy directly #733

Merged
merged 8 commits into from
Aug 27, 2024

Conversation

paanSinghCoder
Copy link
Contributor

@paanSinghCoder paanSinghCoder commented Aug 22, 2024

ID-449

Problem statement:
Call an abstraction API for addTeam and addMember instead of calling the policy creation API directly as it could be a security issue.

Solution:
Using V1Beta1CreatePolicyForProjectBody instead of frontierServiceCreatePolicy.

New API https://frontier-raystack.vercel.app/apis/frontier-service-create-policy-for-project

Note:

frontierServiceCreatePolicy API is being used in many other places within functions like updateRole, addGroupTeamPolicy, addTeam.
Above PR only contains changes for addMember and addTeam.

Copy link

vercel bot commented Aug 22, 2024

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 Aug 27, 2024 10:28am

@coveralls
Copy link

coveralls commented Aug 22, 2024

Pull Request Test Coverage Report for Build 10576355263

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 9.493%

Totals Coverage Status
Change from base Build 10575045186: 0.0%
Covered Lines: 10463
Relevant Lines: 110216

💛 - Coveralls

Copy link
Contributor

@anujk14 anujk14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anujk14 anujk14 merged commit d20bf8c into main Aug 27, 2024
7 checks passed
@anujk14 anujk14 deleted the feat/IDE-449/add-member-api branch August 27, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants