Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Adding content about the catalog sync CLI #8125

Merged
merged 13 commits into from
Nov 3, 2020
Merged

Conversation

erikmarr
Copy link
Contributor

Purpose of this pull request

This pull request (PR) adds information about the CLI commands you can use to sync your catalog.

Affected DevDocs pages

@erikmarr erikmarr self-assigned this Oct 26, 2020
@erikmarr erikmarr marked this pull request as draft October 26, 2020 15:04
@erikmarr erikmarr added 2.4.x Magento 2.4.x related changes Internal Dev Differentiates work between community and Magento staff labels Oct 26, 2020
@erikmarr erikmarr changed the title Adding content on catalog sync CLI Adding content about the catalog sync CLI Oct 26, 2020
@keharper
Copy link
Contributor

Sorry (not sorry) for jumping in while this PR is still in draft state, but I have to ask these questions:

  • Is the saascatalog:resync a bin/magento subcommand, or something completely new? If it is a subcommand, then make sure your examples include bin/magento. If it's something new, then we might need to consider placing this info in the P-rex guide.

  • Does this command live in the main EE repo? If yes, then this bullet point is moot. If you have to install P-rex, then @dshevtsov might have to update his build procedure so that the command appears in the Command Reference.

@erikmarr erikmarr marked this pull request as ready for review November 2, 2020 20:41
adding bin/magento to commands.
@erikmarr
Copy link
Contributor Author

erikmarr commented Nov 2, 2020

@keharper these commands are part of bin/magento. I've updated the PR. @dshevtsov these commands are available when you install the composer require magento/saas-export module.

@dshevtsov
Copy link
Collaborator

dshevtsov commented Nov 2, 2020

@erikmarr, it looks like this is an extension. This functionality is not part of a clean instance and requires extra-installation. The command should not be expected otherwise.

It is not clear how to install it. It fails, when I try to install it on 2.4.1 Commerce with composer require magento/saas-export

$ composer require magento/saas-export
Using version ^42.4 for magento/saas-export
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed

@misha-kotov
Copy link
Contributor

$ composer require magento/saas-export
Using version ^42.4 for magento/saas-export
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed

Could be that composer is running out of memory. Maybe try with
php -d memory_limit=4G `which composer` require magento/saas-export

@dshevtsov
Copy link
Collaborator

@misha-kotov it didn't help.
@eriksmarr please add a note that the commands are provided by the magento/saas-export package, which is not part of default OpenSource or Commerce installation, with a link to documentation on how to install it and set it up.

@erikmarr
Copy link
Contributor Author

erikmarr commented Nov 3, 2020

running tests


Magento compiles catalog data into tables using indexers. This process is automatically [triggered by several events](https://docs.magento.com/user-guide/system/index-management-events.html), such as changes to a product's price or inventory levels. To allow some Magento services to use that catalog data, a catalog sync process runs hourly. The catalog sync process exports product data from the Magento server to SaaS services on an ongoing basis. For example, the [Product Recommendations](https://docs.magento.com/user-guide/marketing/product-recommendations.html) feature needs up-to-date catalog information so that it can accurately return recommendations with correct names, pricing, and availability. Use the command-line interface to trigger the catalog sync and reindex product data for consumption by SaaS services.

The commands used to sync catalog data are part of the `magento/saas-export` module. See [Install and configure Product Recommendations]({{ page.baseurl }}/recommendations/install-configure.html) for more information.
Copy link
Collaborator

Choose a reason for hiding this comment

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

magento/saas-export looks like a package, which is a set of modules.

@erikmarr
Copy link
Contributor Author

erikmarr commented Nov 3, 2020

running tests

@erikmarr
Copy link
Contributor Author

erikmarr commented Nov 3, 2020

@dshevtsov thanks for the review. I think I have resolved all your feedback.

@erikmarr
Copy link
Contributor Author

erikmarr commented Nov 3, 2020

running tests

@erikmarr erikmarr merged commit ba1c4d5 into master Nov 3, 2020
@ghost
Copy link

ghost commented Nov 3, 2020

Hi @erikmarr, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@erikmarr erikmarr deleted the em_prex-catsyncapi branch November 3, 2020 23:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.4.x Magento 2.4.x related changes hacktoberfest-accepted Internal Dev Differentiates work between community and Magento staff Progress: done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants