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

Refactored favorites actions to use add and delete favorites pipelines instead of put #757

Merged
merged 38 commits into from
Jul 23, 2019

Conversation

aaron-martin
Copy link
Contributor

@aaron-martin aaron-martin commented Jul 5, 2019

Description

This change makes the PWA use the shopgate.user.addFavorites and shopgate.user.deleteFavorites pipelines instead of the shopgate.user.putFavorites. All uses of the putFavoirtes pipeline are discontinued. This is an important change for integrations with the magento user extension. Magento does not have the same 100 favorites limitation that the legacy backend has. When using the magento user extension magento shoppers risk deleting favorites when they have more than 100 in their favorites list because of the use of the putFavorites pipeline. Moving to the use of the add and remove pipeline removes this risk.

Type of change

Please add an "x" into the option that is relevant:

  • Bug Fix 🐛 (non-breaking change which fixes an issue)
  • Enhancement 🚀 (non-breaking change which adds functionality)
  • Breaking Change 💥 (fix or feature that would cause existing functionality to not work as expected)
  • Polish 💅 (Just some cleanups)
  • Internal 🏠 Only relates to internal processes.

How to test it

Add and remove items from the favorite list.

@aaron-martin aaron-martin changed the title Pwa 2094 engage refactor favorites pipeline Refactor favorites actions to use add and delete favorites pipelines rather than put Jul 5, 2019
@aaron-martin aaron-martin added the enhancement New feature or request label Jul 5, 2019
Aaron Martin added 4 commits July 8, 2019 13:44
…en because the net result of all buffered actions is to do nothing the request action is not dispatched. It goes directly to dispatch idle.
…d requestSync action. Added supporting action creator and stream
Copy link
Contributor

@SG-Noxoreos SG-Noxoreos left a comment

Choose a reason for hiding this comment

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

outdated

Copy link
Contributor

@SG-Noxoreos SG-Noxoreos left a comment

Choose a reason for hiding this comment

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

outdated

SG-Noxoreos and others added 10 commits July 12, 2019 13:35
…. Changed subscriptions to avoid unnecessary pipeline calls, when nothing would change. Removed manual backend error handling, because the PipelineManager handles them already.
…ription. Did some cleanup and also separated local limit error from the backend one to be clear about what actually happens.
…await instead of promises. Added unit tests for addFavorites pipeline call.
…emented subscription tests for the favorites feature.
SG-Noxoreos and others added 2 commits July 22, 2019 12:01
…actions. Also switched the `addFavorites` import in the themes to import from `@shopgate/engage` now.
@shopgate shopgate deleted a comment from coveralls Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@shopgate shopgate deleted a comment from aaron-martin Jul 22, 2019
@SG-Noxoreos
Copy link
Contributor

Cleaned up the PR by removing outdated comments.

@devbucket devbucket merged commit d71e973 into v6.7.0 Jul 23, 2019
@devbucket devbucket deleted the PWA-2094-engage-refactor-favorites-pipeline branch July 23, 2019 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants