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

Category Import fixes #121

Merged
merged 7 commits into from
Oct 24, 2022
Merged

Category Import fixes #121

merged 7 commits into from
Oct 24, 2022

Conversation

rbrown
Copy link
Contributor

@rbrown rbrown commented Apr 25, 2022

This has the compatibility fixes I commented on, sets a default category_path_seperator "/", and reverses the parameters for explodeEscaped because having the first parameter optional is deprecated.

@sprankhub
Copy link
Member

@avstudnitz, do you think we can merge this?

@sprankhub
Copy link
Member

@rbrown, would you mind updating your PR and sending it to the current develop branch?

Without this explodeEsacped can be called without glue.
The refactor changed this code to use  Magento\Framework\Stdlib\DateTime,
but it's constructor isn't the same as \DateTime, so I reverted it.

\DateTime->new accepting null is deprecated, so I also fixed that warning
Import/Category->indexValueAttributes holds a list of attributes that
use the value of a select, rather than the label to update the
database. This doesn't match with the validation code, which uses
Magento\ImportExport\Model\Import::getAttributeType to
@rbrown rbrown changed the base branch from refactoring-2022 to develop October 21, 2022 13:11
@rbrown
Copy link
Contributor Author

rbrown commented Oct 21, 2022

Hi @sprankhub I'm not sure I've done this right now. There should be three commits, 1 to add a default category separator, with this I didn't need to reorder the method parameters, 2. Use the right DateTime class and 3. A fix for importing boolean attributes.

Model/Import/Category.php Outdated Show resolved Hide resolved
Model/Import/Category.php Outdated Show resolved Hide resolved
Model/Import/Category.php Show resolved Hide resolved
etc/config.xml Outdated Show resolved Hide resolved
@sprankhub
Copy link
Member

Thanks a lot, @rbrown! I hope my comments make sense to you :)

@sprankhub sprankhub merged commit f10f882 into firegento:develop Oct 24, 2022
@sprankhub
Copy link
Member

Thanks, @rbrown!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants