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

Introduce optional filter capabilities when restoring default values #24

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

rutgerrademaker
Copy link

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
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
Author

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

Copy link
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.

README.md Show resolved Hide resolved
Console/Command/RestoreUseDefaultValueCommand.php Outdated Show resolved Hide resolved
Console/Command/RestoreUseDefaultValueCommand.php Outdated Show resolved Hide resolved
Console/Command/RestoreUseDefaultValueCommand.php Outdated Show resolved Hide resolved
Console/Command/RestoreUseDefaultValueCommand.php Outdated Show resolved Hide resolved
Console/Command/RestoreUseDefaultValueCommand.php Outdated Show resolved Hide resolved
Filter/AttributeFilter.php Outdated Show resolved Hide resolved
Filter/AttributeFilter.php Outdated Show resolved Hide resolved
Filter/StoreFilter.php Outdated Show resolved Hide resolved
Copy link
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 :)

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