-
Notifications
You must be signed in to change notification settings - Fork 5
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
Notifications subsystem #192
Comments
When using the NodesManager, this is just making a call to send a message. The |
You do need to use the |
Some previous work on the notifications was done in these two MRs: |
That means there may be old code src-old you should check in case there are parts to lift to src. But make sure our new notifications are using all the latest patterns of transactions, Async start and stop... Etc.
…On 12 July 2021 10:55:27 am AEST, emmacasolin ***@***.***> wrote:
Some previous work on the notifications was done in these two MRs:
https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/146
- discussion of capabilities/potential implementations + a bit of code
https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/161
- copy of above but actually merged
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#192 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
A merge request has been created for this issue: https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/204 |
You can store the count of the number of messages you have received in the domain-level DB. Then you create a sub level to store the actual messages. Example see how ACL does it:
Use the The messages need to be ordered with respect to time. So you'll need a Then if the messages exceeds the max limit, you can garbage collect old messages by dropping them (deleting them) from the message sub level. |
Also denial of service is reduced because you must trust the other gestalt which relies on the |
@CMCDragonkai should this be installed as a dependency or a devdependency? |
It should be a dependency. |
@emmacasolin hit some difficulties with the iteration of the database. @DrFacepalm is looking into this by Friday and try to get as much done over the weekend as well. |
@emmacasolin @DrFacepalm how is this going? What's the final remaining set of tasks? |
Schedule this for merging (even if not entirely clean) for Monday. New things can be assigned on top of this based on review of issues generated from Nodes CLI. |
Any follow-up issues regarding this issue since merging?
…On 8/11/21 8:59 AM, emmacasolin wrote:
Closed #192 <#192>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#192 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE4OHONWFUU5C7C7BBLGATT4GVNTANCNFSM47X5P5IQ>.
|
Nothing that I'm aware of, although I haven't been working on the code base since merging so others may be more likely to have run into issues if they're there |
Yea I haven't got around to reviewing the notifications yet. But since
you'll be heading into #213, that will basically lead us to fully
reviewing nodes, sigchain and notifications together.
…On 8/11/21 2:20 PM, emmacasolin wrote:
Any follow-up issues regarding this issue since merging?
Nothing that I'm aware of, although I haven't been working on the code
base since merging so others may be more likely to have run into
issues if they're there
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#192 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE4OHI6GMX4TQA6JEF6T6LT4H3CVANCNFSM47X5P5IQ>.
|
The notifications subsystem allows nodes from different gestalts to send messages to each other.
This is the way that users can tell other gestalts that they have shared a vault with them.
See https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/204
Specification (from node notifications MR!161 in js-polykey):
Note: gPRC calls should follow style outlined in #218
TODO
notifications
Notification
classACL
,DB
,NodeManager
as dependenciesNodeManager
to send out messagesNotification
classpk notifications
sub commands to introspect notificationspk notifications
The text was updated successfully, but these errors were encountered: