-
Notifications
You must be signed in to change notification settings - Fork 22
CatalogExportApi auto-generation #16
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
CatalogExportApi auto-generation #16
Conversation
-Added a Setup/Recurring class to autogenerate the CatalogExportApi files upon se:up -Removed the cliCommand -Removed the manually added files from CatalogExportApi/Api/Data
@magento run all tests |
-Added php generator requirement
@magento run all tests |
- Static fixes
@magento run WebAPI Tests |
- Added comments to README describing DTO generation and necessity for nette/php-generator
@magento run all tests |
@magento run WebAPI Tests |
-docblock fix -added return type
@magento run all tests |
@magento run WebAPI Tests |
Build fails while installation @bricht
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please take a look into build logs
@magento run WebAPI Tests |
1 similar comment
@magento run WebAPI Tests |
-Fixed namespace
@magento run all tests |
@magento run WebAPI Tests |
*/ | ||
protected function execute(InputInterface $input, OutputInterface $output): ?int | ||
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, create a separate class with "generation" logic - so we can use it inside Recurring/di compile ...
You can use following plugin to intercept the GenerateApplicationCode operation:
|
-Moved export api generator code from CatalogExportApi to CatalogExport module -Added plugin which generates dtos during setup:di:compile
@magento run all tests |
-Static fix
-Improved generation class and fixed docblock bugs in generated classes
@magento run all tests |
-Test fixes
@magento run all tests |
-Static fix
@magento run all tests |
This reverts commit a80dc6f.
The WebAPI test failure has been fixed in magento/catalog-storefront#436 . Test is failing because the order of variants is not consistent, so it was using wrong variant to match. The Static test failure doesnt make a whole lot of sense. It is saying that the generated getter/setter return type is invalid, which I expect is because the returned class might not exist at the time the test is run on the class, however it does exist by the end of generation. For example:
|
The rest of the failures are unrelated to my changes from what I can tell |
@magento run all tests |
@magento run Static Tests |
@magento run Static Tests |
@magento run Static Tests, Magento Health Index |
@magento run Static Tests, Magento Health Index |
@magento import pr to magento-commerce/commerce-data-export |
@RuslanKostiv1 the pull request successfully imported. |
…e-data-export-2 [Imported] Support for ratings & reviews in Storefront App
MDEE-40: fix key issue
-Added a Setup/Recurring class to autogenerate the CatalogExportApi files upon se:up
-Removed the cliCommand
-Removed the manually added files from CatalogExportApi/Api/Data
Description (*)
Related Pull Requests
https://github.com/magento-commerce/commerce-data-export-ee/pull/3
Fixed Issues (if relevant)
Questions or comments
Code Review Checklist (*)