-
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
Bugfix/2918 #3156
Bugfix/2918 #3156
Conversation
…price` being used for catalog rules (#3099)
…on chanes in the UI
I've fixed the unit tests + merged the develop in |
|
…ation given) + removed the `state` dependency in the configureProductAsync
|
QA: In order to test this feature please do update In this PR I've changed the price fields naming + changed the way localStorage got operated. I've also added the support for the
|
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. Is it still WIP?
I have points only for storage-manager.ts
i'd like you to address to:
- I'd change
register
method toset
oradd
- To what is
currentStoreCode
used for inside? - We should have some kind of storage map inside which holds the keys, otherwise someone could register
get
collection and override out get - What about second registration? I'm afraid of potential memory leaks - maybe for safety check if is already registered and delete it before or not register new one?
- Why is
get
registering new storage if not exists? Shouldn't just return null? Why we needexists
function then ifget
always returns collection? I believe there are reasons for that so this is a question to clarify :)
Done!
It's for discovering the changes (https://github.com/DivanteLtd/vue-storefront/blob/3d1d81c0e1aebfcdeda97ea7fec58b6d3ab8ef29/core/lib/multistore.ts#L103) as UniversalStorage's are related to the currentStoreView by the prefix
Well, the object itself is kind of hash -
I think it's safe - as the
It's for those who miss the point storage needs to be registered :) There was no risk of having sucha a safe fallbsack |
Related issues
closes #2918, #3050, #3099
Short description and why it's useful
I've fixed the naming convention of the prices field, got
final_price
to be used in price calculations + removed all theVue.prototype.*
references introducing the new objectStorageManager
Which environment this relates to
Check your case. In case of any doubts please read about Release Cycle
develop
branch and want to merge it back todevelop
release
branch and want to merge it back torelease
hotfix
ormaster
branch and want to merge it back tohotfix
Upgrade Notes and Changelog
IMPORTANT NOTICE - Remember to update
CHANGELOG.md
with description of your changeContribution and currently important rules acceptance