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

Bugfix/mage 792 - categoryPageId serialization fix #1436

Merged
merged 5 commits into from
Nov 8, 2023

Conversation

cammonro
Copy link
Contributor

@cammonro cammonro commented Nov 2, 2023

This provides a critical fix for serialization of arrays that have been deduplicated leaving gaps in the key sequence. json_encode will serialize an array as a JSON object when the array keys are not consecutive.

Because the scenario does not happen for every product only certain objects in the Algolia index may manifest this behavior. This can create a problem for Algolia features such as visual merchandising which require a scalar array to function as a category page ID and not an object and mixed data types can result in the index.

Further details will be supplied in the corresponding Jira ticket.

mohitalgolia and others added 4 commits August 4, 2023 16:39
…e-duplication so that json_encode does not serialize to a keyed object in the Algolia index
@mohitalgolia mohitalgolia changed the base branch from develop to release/3.11.1 November 8, 2023 06:30
@mohitalgolia mohitalgolia merged commit f8d81d1 into release/3.11.1 Nov 8, 2023
3 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
3 participants