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

Reindex multistore correctly #70

Merged
merged 2 commits into from
May 27, 2019
Merged

Reindex multistore correctly #70

merged 2 commits into from
May 27, 2019

Conversation

PierreRambaud
Copy link
Contributor

@PierreRambaud PierreRambaud commented May 24, 2019

Tests:

  • Enable multistore context
  • Create a new shop
  • Create templates for each store
  • Reindex and clear caches.

This change is Reviewable

@@ -265,8 +265,6 @@ public function indexAttribute($idProduct = null)
' . ($idProduct === null ? '' : 'AND pa.id_product = ' . (int) $idProduct) . '
GROUP BY a.id_attribute, pa.id_product , product_attribute_shop.`id_shop`'
);

return 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should'nt we check the index operation went well (either the database execution return or even a READ SQL query to check data looks good) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hehe, I planned to refactor the installation / upgrade part in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Easy answer, "Yes I know, I'll do it in another PR" :trollface:

@PierreRambaud PierreRambaud merged commit 1a646ab into PrestaShop:master May 27, 2019
@PierreRambaud PierreRambaud deleted the multistore branch May 27, 2019 12:59
@PierreRambaud PierreRambaud restored the multistore branch May 31, 2019 13:27
This was referenced May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants