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

Introduced first-class Permissions protocol #713

Merged
merged 6 commits into from
Mar 27, 2024

Conversation

thehenrytsai
Copy link
Member

@thehenrytsai thehenrytsai commented Mar 25, 2024

This will replace the entire Permissions interface.

This PR only contains the support of permission life-cycle management through Request, Grant, and Revocation records.

The actual replacing/swapping out the existing logic that depends on Permissions messages will come in the next PR.

@codecov-commenter
Copy link

codecov-commenter commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.50%. Comparing base (1e9cd85) to head (a1409e2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #713      +/-   ##
==========================================
+ Coverage   98.46%   98.50%   +0.03%     
==========================================
  Files          74       75       +1     
  Lines       10195    10459     +264     
  Branches     1511     1517       +6     
==========================================
+ Hits        10039    10303     +264     
  Misses        150      150              
  Partials        6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@LiranCohen LiranCohen left a comment

Choose a reason for hiding this comment

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

🐐 🐐 🐐

This is great! Really shows how powerful protocol definitions are, with just a small amount of code we have the permissioned CRUD capabilities. 🔥 🔥

src/protocols/permissions.ts Outdated Show resolved Hide resolved
tests/features/permissions.spec.ts Outdated Show resolved Hide resolved
@thehenrytsai thehenrytsai merged commit ee68791 into main Mar 27, 2024
4 checks passed
@thehenrytsai thehenrytsai deleted the henrytsai/permissions-protocol branch March 27, 2024 18:39
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.

None yet

3 participants