Review main Merged

76539[FEATURE] Add two PSR-14 events around auto create redirects

Stefan Bürk CR +2 V +2 Hard +576 −9 updated 03/07/23, 12:34

Commit message

With #91776 auto-created redirects have been stored with a
pid of the page, which the slug has been changed. This was
streamlined and changed to use the site rootPageId instead
with #99044, which reverted the original use-case.

This change implements two new PSR-14 events around each
auto-create-redirect:

* `ModifyAutoCreateRedirectRecordBeforePersistingEvent`:
   can be used to modify the redirect record before it is
   persisted

* `AfterAutoCreateRedirectHasBeenPersistedEvent`:
   can be used to chain further task after the redirect
   has been persisted to the database. It's kind of a
   plain notification event.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 4

Files 10