Skip to content

[2.x] chore(audit): move third-party integrations out to their own extensions#4807

Merged
imorland merged 2 commits into
2.xfrom
im/audit-move-thirdparty
Jul 8, 2026
Merged

[2.x] chore(audit): move third-party integrations out to their own extensions#4807
imorland merged 2 commits into
2.xfrom
im/audit-move-thirdparty

Conversation

@imorland

@imorland imorland commented Jul 8, 2026

Copy link
Copy Markdown
Member

Follows #4806 (which removed the clarkwinkelmann-author-change integration). This moves the remaining bundled third-party audit integrations out of flarum/audit and into the extensions that own the events, using the public Flarum\Audit\Extend\Audit extender behind a Conditional on flarum-audit — the same pattern flarum/suspend already uses.

Moved to their own extensions (companion PRs)

Each FoF extension now ships its own integration, locale strings (under the flarum-audit.lib.browser.* namespace) and AuditTest:

Changes here

  • Delete extend.thirdparty.php (now empty) and return the extenders directly from extend.php (no more array_merge).
  • Remove the six FoF blocks, their locale action strings, their tests/integration/thirdparty/* tests, and src/Integration/FoFUsernameRequestIntegration.php.
  • Drop the stale thirdparty exclude from phpunit.integration.xml and the fof username request case from IntegrationActionRegistrationTest.

Coordination

The integration is duplicated (audit + extension) until the FoF releases land, and there's a brief coverage gap if this merges before them — so these should be released together with the companion FoF PRs above.

Note: the large extend.php diff is just the one-level de-indent from removing the array_merge wrapper.

The bundled FoF integrations (ban-ips, impersonate, merge-discussions, split,
user-bio, username-request) now declare their own audit integration via the
public Flarum\Audit\Extend\Audit extender, gated behind a Conditional on
flarum-audit — the same pattern flarum/suspend uses.

Removes their blocks, locale strings, tests and the username-request
integration class from flarum/audit. With no third-party integrations left,
extend.thirdparty.php is deleted and extend.php returns its extenders directly.
@imorland
imorland merged commit 2c45083 into 2.x Jul 8, 2026
25 checks passed
@imorland
imorland deleted the im/audit-move-thirdparty branch July 8, 2026 13:54
imorland added a commit that referenced this pull request Jul 8, 2026
imorland added a commit that referenced this pull request Jul 8, 2026
* docs: add changelog for 2.0.0-rc.5

* docs: add #4806 to rc.5 changelog

* docs: add #4807 to rc.5 changelog

* chore: bump version and dependency constraints to 2.0.0-rc.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant