Skip to content

Pages publish/unpublish action triggers live event#35

Open
braysch wants to merge 13 commits intomasterfrom
bs/pages-publish-trigger-live-event_AS-647
Open

Pages publish/unpublish action triggers live event#35
braysch wants to merge 13 commits intomasterfrom
bs/pages-publish-trigger-live-event_AS-647

Conversation

@braysch
Copy link
Copy Markdown

@braysch braysch commented Feb 20, 2026

In response to Atomic Search Issue 647.

Defined two new methods in lib/canvas/live_events.rb, wiki_page_published and wiki_page_unpublished.

In lib/canvas/live_events_callbacks.rb, the workflow_state of WikiPage is monitored and calls one of the two methods above when the state is changed to active or unpublished.

Bradan Schwanke and others added 3 commits February 19, 2026 09:12
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Wire up workflow_state change detection in the
after_update observer callback so publishing or
unpublishing a wiki page fires the appropriate
wiki_page_published/wiki_page_unpublished events.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@braysch braysch changed the title Bs/pages publish trigger live event as 647 Pages publish/unpublish action triggers live event Feb 20, 2026
Bradan Schwanke added 5 commits February 20, 2026 17:01
…iki page workflow_state is detected, wiki_page_updated is called instead.
…ng wiki_page_updated due to workflow state change (publish/unpublish) as these values do not change.
@braysch
Copy link
Copy Markdown
Author

braysch commented Feb 21, 2026

Removed wiki_page_publish and wiki_page_unpublish method. Any change to workflow_state (including publishing/unpublishing) calls the already-established wiki_page_update method. Unnecessary parameters in this call are replaced with nil.

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.

1 participant