Lightning.Projects.Events (Lightning v2.19.0-pre)

View Source

Events for Projects changes.

Summary

Functions

project_created(project)

project_deleted(project)

project_deletion_scheduled(project_id)

project_user_added(project_id, user_id)

project_user_removed(project_id, user_id)

project_user_role_changed(project_id, user_id)

subscribe()

subscribe(project_id)

Subscribes to events scoped to a single project.

Note that every project-scoped LiveView subscribes here via LightningWeb.Hooks.on_mount(:project_scope, ...), as do LightningWeb.WorkflowChannel, LightningWeb.AiAssistantChannel and LightningWeb.RunChannel at join. Anything broadcast on this topic reaches all of them, so new event types must be handled (or explicitly halted) in LightningWeb.Hooks.handle_project_user_event/2 and named in each channel's ignore clause.

Keep this topic quiet. It exists so that a session can be told its own standing changed, and every subscriber is woken for every message on it — a frequent event does not belong here.

support_access_updated(project_id, allowed)

workflow_deleted(workflow)