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

Source Management API #26

Merged
merged 86 commits into from
Jun 19, 2017
Merged

Source Management API #26

merged 86 commits into from
Jun 19, 2017

Conversation

vadimjustus
Copy link
Contributor

@vadimjustus vadimjustus commented May 20, 2017

Description

Changes which were created during the 1st contribution day in Leipzig

Fixed Issues (if relevant)

  1. magento-engcom/magento2#24: Implementation differes to conception: Permissions PUT and POST permissions are both set to source_edit (approved by @maghamed)
  2. magento-engcom/magento2#25: Stub modules Magento_InventoryApi and Magento_Inventory. Implement interfaces, data models, resource models and repository.
  3. Update README.md magento-engcom/magento2#7: Defining of Source API

Manual testing scenarios

Currently code review only

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

Lars Röttig and others added 26 commits May 20, 2017 13:47
…rceExtensionInterface as it will be autogenerated
…part of the businessmodel for sourcecarrierlink, updated carrierlink-interface, implemented part of source-businessmodel
@@ -322,15 +322,16 @@ public function setPriority($priority)
*/
public function getCarrierLinks()
{
// TODO: Implement getCarrierLinks() method.
return $this->getData(SourceInterface::PRIORITY);

Choose a reason for hiding this comment

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

Should it be a SourceInterface::CARRIER_LINKS ?

@okorshenko okorshenko closed this May 20, 2017
@okorshenko okorshenko reopened this May 20, 2017
*/
public function setPriority($priority);

/**
* @param \Magento\InventoryApi\Api\Data\SourceCarrierLinkInterface[] $carrierLinks
* @return $this
* @return \Magento\InventoryApi\Api\Data\SourceCarrierLinkInterface[]
Copy link
Contributor

Choose a reason for hiding this comment

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

null may be returned as well

/**
* Collection constructor
*
* @param SourceCarrierLinkManagementInterface $sourceCarrierLinkManagement
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update phpdoc with all dependencies

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.

8 participants