Skip to content

test: add ProjectAccess and ProjectPolicyGuard coverage - #38

Merged
Rafael-er-byte merged 2 commits into
developfrom
feature/project-policy-guard-tests
Jun 30, 2026
Merged

Rafael-er-byte merged 2 commits into
developfrom
feature/project-policy-guard-tests

Conversation

@Rafael-er-byte

Copy link
Copy Markdown
Owner

Define ProjectAcces object and ProjectPolicyGuard

Why
Both objects are used for authorization access, ProjectAccess represents an access attempt with the id of project, id of member that want to access and project configuration to know how to act according to project policies, this encapsulate the authorization logic to allow or not the access. The ProjectPolicyGuard is an object that intercepts the request before it reach the application layer, this gets a ProjectAccess object from repository, the repository may thorw erros in case that the member project doesnt contain the member, project inactive or deleted

What was made

  1. Create ProjectAccess object
  2. Create ProjectPolicyGuard
  3. Testing both classes
  4. Define ActionTypes

@Rafael-er-byte
Rafael-er-byte merged commit a00b78b into develop Jun 30, 2026
1 check passed
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.

2 participants