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

Task 290 import export source code #307

Merged
merged 45 commits into from
Dec 27, 2017
Merged

Conversation

deadlexus
Copy link
Contributor

System User added 2 commits December 14, 2017 15:05
- Adapted SourceItem Import/Export to use Source Code instead of SourceId;
- Fixed issue when in Stock Sources export process all fields ware excluded;
- Fixed type of return value for SourceItem->getSourceId method to int(was string);
- Adapted integrational test to the new Export/Import system(with source code).
…ask-290-import-export-source-code

Conflicts:
	app/code/Magento/InventoryApi/Test/_files/source.php
	app/code/Magento/InventoryApi/Test/_files/sources.php
System User and others added 2 commits December 14, 2017 19:42
- Fixed integration test.
- Fixed DependencyTest error.
@@ -48,7 +48,7 @@ public function setSku($sku)
*/
public function getSourceId()
{
return $this->getData(self::SOURCE_ID);
return (int)$this->getData(self::SOURCE_ID);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not correct to cast to int here,
because when the factory creates SourceId there is no guarantee that factory will set something to SourceId

that's why PHP Doc says (@return int|null)

deadlexus and others added 15 commits December 16, 2017 00:27
- Changed SourceItem->getSourceId method.
- MEQP2 fixes;
- modified Source Item database structure(source_id changed to source_code);
- SourceId was replaced by SourceCode in MSI Extensions;
- source_id field usings ware replaced by source_code field - part;
- fixed foreign key issue with source_item_configuration setup schema;
- tests fixes - part;
- Fixed setup schema script for creatind default source;
- Tests fexes - part;
- fixed install schema/data issues;
- fixed issues on Source grid;
- identity field returned to source_id on Source mode;
…port-source-code

Conflicts:
	app/code/Magento/Inventory/Controller/Adminhtml/Stock/StockSourceLinkProcessor.php
- Fixed issue with with incorrect query on product edit page;
- Fixed issue with source item UIcomponent on product edit page
…port-source-code

Conflicts:
	app/code/Magento/InventoryApi/Test/_files/products.php
- Fixed issued with UI Components on stock edit page;
- Integration test fixes - part;
- Integration tests fixes - part;
@deadlexus deadlexus self-assigned this Dec 22, 2017
@naydav
Copy link

naydav commented Dec 27, 2017

Failed functional tests are related to
#333

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.

5 participants