-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Hash Parsing for DSMNY #328
Conversation
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.
First pass to get my bearings, I'll make the changes, then remove [WIP]
status when I'm done
This commit addresses the following PR changes - Variant calculation is moved to the correct location (_monitorSpecial) - findHashProperty has been integrated into parseProductPageForHash - parseProductPageForHash has been completed and debug logs are added - dsmParser run method has been implemented to store the hash - addToCart form parameters have been adjusted to just accept an optional hash - addToCart checkout method now passes the hash along to form method
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.
Looks good to me!
This commit fixes a bug that prevented DSM US from performing the hash property calculation. Cheerio Parsing bugs have also been fixed to get the script text properly.
The current method works well for DSM US, I think I'll go ahead and merge this, then make a separate PR for DSML. Since the drop is coming soon, I'll experiment and find a fix, but at least we can release beta 6 knowing DSM US is patched |
merging... |
* started working on dsm hash parsing * reverted funko change until we do more research * added in backup hashes * moved variant below special parsing type * small changes * Address PR Changes This commit addresses the following PR changes - Variant calculation is moved to the correct location (_monitorSpecial) - findHashProperty has been integrated into parseProductPageForHash - parseProductPageForHash has been completed and debug logs are added - dsmParser run method has been implemented to store the hash - addToCart form parameters have been adjusted to just accept an optional hash - addToCart checkout method now passes the hash along to form method * Fix Cheerio Parsing This commit fixes a bug that prevented DSM US from performing the hash property calculation. Cheerio Parsing bugs have also been fixed to get the script text properly.
Changes
Checks
interactive-mock-server
to setup a mock endpoint structure for DSMDsmParser
when mock server is used#314 is partially addressed, DSM US works properly