-
Notifications
You must be signed in to change notification settings - Fork 5
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
Release 1.0.0 #2
Conversation
* added adapters for all Akeneo APIs
* implemented AkeneoPimService
* added AkeneoResourceCursor wrapper * added AkeneoResourcePage wrapper
[WIP] Eco-777 integration with Akeneo PIM
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.
I really liked it how the adapted client is wrapped everywhere, but it still feels a bit mixed in some places. The Akenea namespace is introduced in the middle of the module, it feels a bit wrong. I will try to come up with an actual alternative proposal if i can.
composer.json
Outdated
@@ -2,7 +2,8 @@ | |||
"name": "spryker-eco/akeneo-pim", | |||
"description": "Akeneo PIM Integration Module", | |||
"require": { | |||
"akeneo/api-php-client": "^1.0@beta" | |||
"akeneo/api-php-client": "^1.0@beta", | |||
"php-http/guzzle6-adapter": "*" |
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 clarify version
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.
kernel is also missing
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.
kernel is added
@@ -0,0 +1,10 @@ | |||
# IDEs |
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.
The config.dist.php
feels much more like an integration/migration guide. Why was it provided in the code base?
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.
Also jobs.dist.php
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.
I agree with this notice. Removed.
@@ -2,7 +2,8 @@ | |||
"name": "spryker-eco/akeneo-pim", | |||
"description": "Akeneo PIM Integration Module", | |||
"require": { |
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.
php >=7.1 is missing
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.
Done
@@ -13,11 +13,9 @@ | |||
*/ |
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.
Remove default class comment
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.
Done
@@ -13,11 +13,9 @@ | |||
*/ | |||
class AkeneoPimConstants | |||
{ | |||
|
|||
const HOST = 'akeneo.host'; |
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.
public
access modifier is missing from constants (php7.1>)
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.
Done
} | ||
|
||
/** | ||
* @inheritdoc |
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.
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.
Done
|
||
use Akeneo\Pim\ApiClient\AkeneoPimClient; | ||
|
||
abstract class AbstractApiAdapter implements ApiAdapterInterface |
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.
Shouldn't this class be implemented by the other classes in this directory? Currently there is no usage
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.
Looks like this abstract class is a redundant class here.
/** | ||
* @var \SprykerEco\Service\AkeneoPim\Api\Wrapper\WrapperFactoryInterface | ||
*/ | ||
private $wrapperFactory; |
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.
why private?
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.
Changed to protected
* @param int $pageSize The size of the page returned by the server. | ||
* @param array $queryParameters Additional query parameters to pass in the request | ||
* | ||
* @return \Akeneo\Pim\ApiClient\Pagination\ResourceCursorInterface |
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 fix the return types
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.
What is wrong here?
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.
Service returns a 3rd party class, and actually it doesn't :)
*.sublime-* | ||
*.AppleDouble | ||
*.AppleDB | ||
*.AppleDesktop |
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 add phpstan level 7 check (phpstan.json)
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.
Done
ECO-784 tests
/** | ||
* @return \SprykerEco\Service\AkeneoPim\Api\Adapter\AdapterFactoryInterface | ||
*/ | ||
public function createAkeneoPimAdapterFactory() |
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.
PHP7 Typehints please
} | ||
|
||
/** | ||
* @inheritdoc |
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.
Where are curved brackets?
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.
-
Injected namespaces should be in dependency folder.
Please move adapters to Modules/Dependency/External. -
Apply PHP7 convention
- const visibility
- typehints
build: | ||
dependencies: | ||
before: | ||
- composer config repositories.spryker composer https://code.spryker.com/repo/private |
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 remove outdated repo info.
@@ -0,0 +1,21 @@ | |||
MIT License | |||
|
|||
Copyright (c) 2018 SPRYKER SYSTEMS GMBH |
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.
This is not the right template.
Please see confluence!
Developer(s): @valerio8787 @vhrychenko
Peer Reviewer:
Tickets:
https://spryker.atlassian.net/browse/ECO-777
Academy PR:
Please confirm
Documentation
Release Table
Release Notes
Module AkeneoPim
Patch: Backwards-compatible bug fix
Def of done (by the responsible developer):
Change log