Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!!!][TASK] Rework frontend indexing helpers #3674

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

bmack
Copy link
Collaborator

@bmack bmack commented Jun 2, 2023

This change cleans up a few parts within the FrontendHelper logic when indexing a page in the frontend:

  • The PageIndexerInitialization and PageIndexerFinisher middleware are now merged.

  • The PageIndexerRequestHandler contains no state

  • The PageIndexerRequest is added to the PSR-7 Request as attribute "solr.pageIndexingInstructions" so it can be retrieved in various places.

  • The AbstractFrontendHelper is removed, as the FrontendHelper middleware is thinned out. Activation and Deactivation rather works as initialization and flushing

This allows us to use DI in various places we hadn't had a chance before.

In addition, the AuthorizationService getGroupsFE is removed as it has been already replaced by a PSR-14 event.

@bmack bmack marked this pull request as draft June 2, 2023 15:16
@bmack bmack marked this pull request as ready for review June 2, 2023 21:34
Copy link
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
I'll squash and merge now.

bmack added 3 commits June 5, 2023 16:04
This change cleans up a few parts within the FrontendHelper
logic when indexing a page in the frontend:

- The PageIndexerInitialization and PageIndexerFinisher middleware
  are now merged.

- The PageIndexerRequestHandler contains no state

- The PageIndexerRequest is added to the PSR-7 Request as attribute
  "solr.pageIndexingInstructions" so it
  can be retrieved in various places.

- The AbstractFrontendHelper is removed, as the FrontendHelper
  middleware is thinned out. Activation and Deactivation rather
  works as initialization and flushing

This allows us to use DI in various places we hadn't had a chance
before.

In addition, the AuthorizationService getGroupsFE is removed
as it has been already replaced by a PSR-14 event.
AuthorizationService is now registered at any time
and now listens properly to the request object.
@dkd-kaehm dkd-kaehm merged commit 1a926ce into TYPO3-Solr:main Jun 5, 2023
1 of 5 checks passed
@dkd-kaehm dkd-kaehm mentioned this pull request Oct 13, 2023
1 task
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.

None yet

2 participants