Skip to content

[WIP] [RuleEngine] Attribute Locator interface#3836

Open
vahonc wants to merge 4 commits intoSmile-SA:2.10.xfrom
vahonc:feat-rule-engine-attribute-locator-interface
Open

[WIP] [RuleEngine] Attribute Locator interface#3836
vahonc wants to merge 4 commits intoSmile-SA:2.10.xfrom
vahonc:feat-rule-engine-attribute-locator-interface

Conversation

@vahonc
Copy link
Copy Markdown
Collaborator

@vahonc vahonc commented Apr 24, 2026

No description provided.

/**
* Optimizer table name.
*/
private const TABLE_NAME = 'smile_elasticsuite_optimizer';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please rely instead on \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface::TABLE_NAME

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

/**
* Attribute code storing virtual category rules.
*/
private const ATTRIBUTE_CODE = 'virtual_rule';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please provide the attribute_code in the constructor so it could be altered through DI if needed in the future

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

/**
* Entity type code for categories.
*/
private const ENTITY_TYPE = 'catalog_category';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please rely instead on \Magento\Catalog\Api\Data\CategoryAttributeInterface::ENTITY_TYPE_CODE

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

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.

2 participants