- Notifications
You must be signed in to change notification settings - Fork1.1k
chore: send workspace pubsub events by owner id#14964
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This stack of pull requests is managed by Graphite.Learn more about stacking. Join@ethanndickson and the rest of your teammates on |
c5c1316 toc320382Compare| // Optional: | ||
| // WorkspaceID avoids a future lookup to find the workspace ID by setting | ||
| // the cache in advance. | ||
| WorkspaceID uuid.UUID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This doesn't need to be optional anymore, presumably since we removed the v1 agent api.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
8544d74 tob7c333dCompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
31a3d36 tof6d811fCompare03379ee to9dfa2afCompare9dfa2af toea1ef09Compare31506e6 intomainUh oh!
There was an error while loading.Please reload this page.

Uh oh!
There was an error while loading.Please reload this page.
We currently send empty payloads to pubsub channels of the form
workspace:<workspace_id>to notify listeners of updates to workspaces (such as for refreshing the workspace dashboard).To support#14716, we'll instead send
WorkspaceEventpayloads to pubsub channels of the formworkspace_owner:<owner_id>. This enables a listener to receive events for all workspaces owned by a user.This PR replaces the usage of the old channels without modifying any existing behaviors.
We've defined
WorkspaceEventKinds based on how the old channel was used, but it's not yet necessary to inspect the types of any of the events, as the existing listeners are designed to fire off any of them.