Skip to content

Conversation

@cammonro
Copy link
Contributor

Summary

The PR provides support for extension via the search adapter:

  • Refactored IndexOptionsBuilder with improved error handling
  • Algolia logger now accepts context for debugging data
  • Support added for overrides of timeout configuration in AlgoliaConnector
  • Fixed integration test and added unit tests for index options
  • The unused legacy class AlgoliaHelper has been removed
  • Added comment model link utilities via abstract class for config admin notices (maintains selected scope)
  • Monolog v2 deprecation observed but maintaining compatibility with Magento 2.4.7 until v2.4.9 release

Result

Updated logging:
image

Fixed integration test:
image

IndexOptionsBuilder unit tests:
image

Copy link
Contributor

@damcou damcou left a 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
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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" 🤔

Copy link
Contributor Author

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. 😂

Copy link
Contributor

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 😆

@cammonro cammonro merged commit 9f006c0 into release/3.18.0-dev Oct 29, 2025
4 checks passed
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.

3 participants