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

Start publishing AssociationChange events #413

Open
wants to merge 1 commit into
base: 12-30-implement_subscriptions
Choose a base branch
from

Conversation

neekolas
Copy link
Collaborator

@neekolas neekolas commented Dec 31, 2024

TL;DR

Added Waku relay publishing for identity association changes.

What changed?

  • Added functionality to publish identity association changes to Waku relay
  • Created new PublishIdentityUpdateResult type to track changes in addresses and installations
  • Modified PublishIdentityUpdate to return detailed results about changes
  • Added tests to verify Waku relay publishing behavior
  • Added mock for IdentityApi_SubscribeAssociationChangesServer

How to test?

  1. Run the test suite, particularly TestPublishAssociationChanges
  2. Verify that identity updates trigger Waku relay messages
  3. Confirm that association changes are properly published with correct inbox IDs and addresses

Why make this change?

To enable real-time notifications of identity association changes through the Waku network, allowing clients to stay synchronized with updates to account addresses and installations.

Issues

#410

@neekolas neekolas changed the title Start publishing events Start publishing Dec 31, 2024
Copy link
Collaborator Author

neekolas commented Dec 31, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@neekolas neekolas changed the title Start publishing Start publishing AssociationChange events Dec 31, 2024
@neekolas neekolas marked this pull request as ready for review December 31, 2024 17:01
@neekolas neekolas requested a review from a team as a code owner December 31, 2024 17:01
@neekolas neekolas force-pushed the 12-30-implement_subscriptions branch from 4231933 to 909ce38 Compare December 31, 2024 17:04
@neekolas neekolas force-pushed the 12-31-start_publishing_events branch from 8c36a8b to 8af3e83 Compare December 31, 2024 17:04
Comment on lines +207 to +208
[][]byte{}, // TODO: Handle installations added
[][]byte{}, // TODO: Handle installations revoked
Copy link
Contributor

Choose a reason for hiding this comment

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

What doesn't work without these pieces? Just that they aren't stored?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No one is asking for a stream of all the installations added, but I started to stub it out so that we can at least choose to add it later.

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