- 
                Notifications
    You must be signed in to change notification settings 
- Fork 171
MAGE-1319 Refactor for backend search client support #1850
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! 👏
I have a few comments, let me know what you think about it :)
| * | ||
| * @throws NoSuchEntityException | ||
| */ | ||
| protected function safeBuildWithComputedIndex(string $indexSuffix, int $storeId, bool $isTmp = false): IndexOptionsInterface | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there a particular reason not to simply replace buildWithComputedIndex by this implementation on the parent class ?
The Index Options management begins to be quite complex and I'm wondering if it's necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree! The only reason I didn't do this was because we made the API allow for an optional $indexSuffix. If any one has customized the connector it might break their code. But it's a fairly new class and we didn't provide an API interface contract for it so we could just pull the trigger there. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be really surprised if anyone has already customized this indeed  😆
I'm not sure what you mean by "pull the trigger there" 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pardonne-moi mon expression idiomatique anglaise!
It means to "commit to something" / "go through with it" - or in this case like a pulling the trigger on a firearm I'm going to kill this unnecessary abstract class. 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahah thanks for the clarification 😆
Summary
The PR provides support for extension via the search adapter:
IndexOptionsBuilderwith improved error handlingAlgoliaConnectorAlgoliaHelperhas been removedResult
Updated logging:

Fixed integration test:

IndexOptionsBuilder unit tests:
