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

RecordsSubscribe #667

Merged
merged 19 commits into from
Jan 24, 2024
Merged

RecordsSubscribe #667

merged 19 commits into from
Jan 24, 2024

Conversation

LiranCohen
Copy link
Member

@LiranCohen LiranCohen commented Jan 19, 2024

This PR builds on top of the existing EventStream and adds a subscription specifically for the Records interface which follows similar rules as those for RecordsQuery.

Currently the subscription does not evict or re-authorize subscriptions after the initial processing of the message. So if a revocation of permissions happens after the subscription is live, the user will continue getting notified until they close the connection.

This will be addressed in a separate PR to keep things more concise and easier to follow. #668

Copy link

codesandbox bot commented Jan 19, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@LiranCohen LiranCohen force-pushed the lirancohen/records-subscribe branch 2 times, most recently from a482c6c to 5ef8e8e Compare January 19, 2024 22:27
@codecov-commenter
Copy link

codecov-commenter commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4e89df6) 98.86% compared to head (fd453c7) 98.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #667      +/-   ##
==========================================
+ Coverage   98.86%   98.90%   +0.03%     
==========================================
  Files          75       77       +2     
  Lines        9678    10015     +337     
  Branches     1423     1468      +45     
==========================================
+ Hits         9568     9905     +337     
  Misses        102      102              
  Partials        8        8              

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

@LiranCohen LiranCohen marked this pull request as ready for review January 22, 2024 18:30
Q_AND_A.md Outdated Show resolved Hide resolved
@LiranCohen
Copy link
Member Author

@thehenrytsai I've updated the PR based on comments and discussions.

Copy link
Member

@thehenrytsai thehenrytsai left a comment

Choose a reason for hiding this comment

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

💯

@LiranCohen LiranCohen merged commit 8f6e01e into main Jan 24, 2024
4 checks passed
@LiranCohen LiranCohen deleted the lirancohen/records-subscribe branch January 24, 2024 23:48
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