-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Remove the remaining soft deleteable code #4767
Remove the remaining soft deleteable code #4767
Conversation
@@ -46,10 +46,8 @@ public function indexByCustomerAction(Request $request, $id) | |||
|
|||
// Fetch and cache deleted orders | |||
$entityManager = $this->container->get('doctrine.orm.entity_manager'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$entityManager
is not needed anymore, as well as comment above.
Looks like TravisCI is having a lot of difficulties? |
@coudenysj yes, sadly it seems to fail with latest chrome version. All should be fixed after merging #4786. |
As far as I can tell, the soft deleteable magic is not tested in any Behat feature file. We have to wait on #4786 to see if anything breaks, I guess. |
@coudenysj #4786 was merged, please rebase. |
55b151e
to
8fe1dbf
Compare
@michalmarcinkowski Done! |
Great job! Thanks Jachim! 👍 |
Awesome work Jachim, thank you so much! |
Great! Thanks, the |
@rvanlaak I am not sure what you mean? Soft-deleteable behavior is gone from Sylius. |
@pjedrzejewski yes I know, but I'm still on Oh wait, I see |
The upgrade to |
@rvanlaak did you resolve this issue? |
@michalmarcinkowski no we postponed the upgrade for now, but will try again soon. Did hope that the documentation on the upgrade can be improved, given |
We updated from @michalmarcinkowski are there any plans to simulate the |
@rvanlaak I think a solution could be to use the ToggleableInterface. |
Btw. for coupons you can simply set "expiresAt" to make it archived :) |
Ah thanks for referencing #4140, I agree with the problem statement given there 👍 For now I was able to reuse the
After the first alpha is released we will migrate it to |
Not sure what do you mean? |
Yes that's correct, so I'd like to propose to make The second thing I'd like to mention (aside of making it toggleable itself), is that it would be great if /**
* @return Boolean
*/
public function isEnabled()
{
if (null !== $this->enabled) {
return $this->enabled <= (new \DateTime());
}
return false;
} |
That seems redundant. Why not simply use |
Okay thanks 👍 For our use-case the archiving has a different use-case than the |
TODO