Skip to content

docs: Describe generic entity events for API client and Company saves and deletes (8.0) - #991

Draft
promptless-for-oss wants to merge 1 commit into
mautic:8.0from
Promptless:promptless/pr-18405-client-company-entity-events-8.0
Draft

promptless-for-oss wants to merge 1 commit into
mautic:8.0from
Promptless:promptless/pr-18405-client-company-entity-events-8.0

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open in Promptless

Description

Updates the 8.0 developer docs for mautic/mautic#18405, which moves API client and Company saves and deletes to the generic entity events and removes ClientEvent, ClientPostSaveEvent, ClientPostDeleteEvent, and the four CompanyPre/Post Save/Delete event classes.

  • plugin_extensions/api.rst: API client lifecycle events now says Mautic dispatches EntityPreSave, EntityPostSave, EntityPreDelete, and EntityPostDelete for API clients, and links to the generic entity events section. The existing ApiEvents constants table now points CLIENT_POST_SAVE and CLIENT_POST_DELETE to EntityPostSave and EntityPostDelete, and ClientEvent no longer appears in the list of abstract base classes.
  • plugins/event_listeners.rst: The generic entity events list now includes Client and Company. The LeadBundle section explains how to listen for Company saves and deletes, says COMPANY_POST_SAVE and COMPANY_POST_DELETE remain only as Webhook event type identifiers, and drops the rows that mapped Company constants to the removed classes.

CompanyEvent stays in the list of abstract classes because CompanySoftDeleteEvent still extends it. Company Webhook payloads don't change. This branch adds no migration content beyond correcting existing rows. UPGRADE-8.0.md in the source PR already lists the removed classes.

Note: open suggestions for #18346 and #18347 also edit the same entity list in event_listeners.rst, so whichever merges later needs a small merge. The #18347 branch names CompanyModel as a model with its own events. That stops being true once #18405 merges.

Validation 2 passed 1 not run
  • ✓ Vale (collection config): 0 new findings in both changed files
  • ✓ Vale (Promptless defaults): 0 new findings
  • Sphinx build / checklinks: not run locally; left to PR CI

Linked issue

Related to mautic/mautic#18405

Trigger Events

Comment thread docs/plugin_extensions/api.rst Resolved
Comment thread docs/plugins/event_listeners.rst Resolved
@promptless-for-oss

promptless-for-oss commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

The build check on commit 69ac77a failed in its Check links step, and this suggestion didn't cause it. The link checker reported two broken links on docs/index.rst line 48, which this PR doesn't change:

Both returned 500 Internal Server Error because the Mautic Community Portal is down. Its homepage returns 500 too. PRs #992 and #993 failed on the same two links.

No docs change is needed. Re-run the check once community.mautic.org is back up, and it should pass.

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