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

Removes deprecated usage of associate_user on OrdersController #3667

Conversation

carlosep
Copy link

@carlosep carlosep commented Jun 14, 2020

Description
This Pull Request solves the issue #3559

Based on this discussion this associate_user call is deprecated due to changes during the creation or building of an order via current_order where before the creation and association of an user were made in different places now it is done immediately. This seems to classify as refactoring, and for that reason I didn't add tests

There is also a call of associate_user in CheckoutController which is called after load_order that calls current_order but I didn't remove it here due to the discussion regarding the order of execution and its impacts on some stores. I would like @elia's comment regarding this, and maybe we could do it on this PR as well.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)
  • I have attached screenshots to this PR for visual changes (if needed)

@carlosep
Copy link
Author

This was closed due to the opening of another one:
#3677

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants