Review main Merged

76854[FEATURE] Add event to modify backend search results

Andreas Kienast CR +2 V +2 Hard +298 −1 updated 12/23/22, 09:48

Commit message

A new event `ModifyResultItemInLiveSearchEvent` is added that allows to
modify search result items in a custom event handler, which may come in
handy for 3rd party integrations to add custom actions to search
results.

The `ResultItem` object received a new `internalData` attribute to be
used for data that is not meant to be exposed in responses, e.g.
database rows.

As a proof-of-concept, search results from the `be_users` table now
have a "switch user" action.

This feature is purposely not documented as such as behavior or API may
change in further iterations.

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 1

Files 11