Repository navigation
Feed the Choreography availability engine from GuestList - #131
Merged
Merged
Conversation
Contributor
Author
|
Reviewer notes for Cratis/Choreography#221 (epic Cratis/Screenplay#1296).
|
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GuestList can now feed the Cratis Choreography availability engine from the audiences a product recorded locally. It is a separate package, so hosts without Choreography are unaffected.
Added
Cratis.Showrunner.GuestList.Availability:AddGuestListAvailabilityregisters a ChoreographyIAudienceSourceover GuestList's local read models. The effective audiences are the union of the system's, the tenant's and the user's grants, each tagged with its level. Nothing is asked of the operator, so the last known state stays in force while the link is down. Grants for audiences the application does not declare are carried, never match a gate and are reported (a warning once per grant; theUndeclaredGrantquery lists them). Audience resolution from local state, reactive to change Choreography#221IAudienceSource.OnChangedis raised when a grant or withdrawal changes the product's read models, including for tenants added later.cratis.showrunner.guestlist.audience_lagmetric reports the seconds since the product last received a change to its audiences.