Skip to content

Introduce optional filter capabilities when restoring default values#24

Open
rutgerrademaker wants to merge 9 commits intomagento-hackathon:mainfrom
rutgerrademaker:main
Open

Introduce optional filter capabilities when restoring default values#24
rutgerrademaker wants to merge 9 commits intomagento-hackathon:mainfrom
rutgerrademaker:main

Conversation

@rutgerrademaker
Copy link
Copy Markdown

The idea here is that we needed

  • More fine-grained options in order to delete values for certain attributes.
  • The option to delete values also if they are NOT the same is the global values (this happens e.g when some integration was changed, and only the global value was updated)

N.B. I'm still in the phase of testing this, for now I'm only working with products, but I don't see why it would not also work for categories.

Just wanted to get this out there before the weekend started

@rutgerrademaker rutgerrademaker marked this pull request as draft February 23, 2024 15:25
Rename remove to restore to be consistent with task name
Introduce exceptions instead trying to solve this with a null value
@peterjaap
Copy link
Copy Markdown
Contributor

Cool!!

…ed correctly (when multiple stores are used)
@rutgerrademaker rutgerrademaker marked this pull request as ready for review February 26, 2024 18:17
@rutgerrademaker
Copy link
Copy Markdown
Author

@peterjaap We're not done testing, but from a coding perspective I think I'm done by now

Copy link
Copy Markdown
Member

@sprankhub sprankhub left a comment

Choose a reason for hiding this comment

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

Nice one, thanks, @rutgerrademaker! I didn't test it just checked the code.

Comment thread README.md
Comment thread Console/Command/RestoreUseDefaultValueCommand.php
Comment thread Console/Command/RestoreUseDefaultValueCommand.php Outdated
Comment thread Console/Command/RestoreUseDefaultValueCommand.php Outdated
Comment thread Console/Command/RestoreUseDefaultValueCommand.php Outdated
Comment thread Console/Command/RestoreUseDefaultValueCommand.php Outdated
Comment thread Console/Command/RestoreUseDefaultValueCommand.php Outdated
Comment thread Filter/AttributeFilter.php Outdated
Comment thread Filter/AttributeFilter.php Outdated
Comment thread Filter/StoreFilter.php Outdated
Copy link
Copy Markdown
Member

@sprankhub sprankhub left a comment

Choose a reason for hiding this comment

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

@rutgerrademaker, happy to merge this when you are happy with your testing :)

@peterjaap
Copy link
Copy Markdown
Contributor

@rutgerrademaker due to refactoring of hard-coded queries to Magento's query builder, there are merge conflicts. If you want to have this merged, could you maybe solve the merge conflicts? Otherwise I'll close this PR.

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.

3 participants