Improve address save flow to allow to use custom validators#7552
Improve address save flow to allow to use custom validators#7552vovayatsyuk wants to merge 1 commit into
Conversation
|
Hi @vovayatsyuk. Your contribution looks good but would you please also fix failed Travis Builds as well as cover changed functionality with tests? |
|
Just to clarify before fixing test with failed messages assertion. How do you think, what is the best way to accomplish it?
I'd like to change public validate method (option 2) in order to keep standard phrases for all fields. Additionally, |
|
Hi @slavvka. I'm really stuck with following error: The problem is Sorry, but I don't have any experience with test writing, so if it could be fixed easily, can you guide me on how to :) ? For now I'm really think that the save method should be rewritten to make it possible to write a test for it. |
|
Hi "2.Change messages returned by public validate method:
Thanks. |
801c121 to
621f055
Compare
|
Sorry, I've just screw up something 😕. I will create another one PR for this issue. |
|
@vovayatsyuk, you didn't need to close it since it is already merged and fixed and will be delivered anyway. Please reopen it and don't create another PR. |
[SOUTH] Bugs: - MAGETWO-52925 Simple child product without a special price still shown as "was (original price)" #4442 #5097 #6645 - for mainline - MAGETWO-60098 Configurable product option price is displayed incorrectly per website - MAGETWO-56793 [GITHUB][PR] Fix Magento\Review\Model\ResourceModel\Rating\Option not instantiable in setup scripts #5465 - MAGETWO-58078 [FT] CreateProductAttributeEntityFromProductPageTest fails - MAGETWO-61725 [GITHUB] Improve address save flow to allow to use custom validators #7552
…asticsearch-6-module [Pyrrans] AC-2649: Remove elasticsearch 6 module
I'm facing an issue, that I cannot make some fields optional because of hardcoded
validation of address fields. Moreover, validation is made in private method, so I can't use plugin for it.
Hopefully, there is a public validation method analogue, available in address class, that can be extended with plugins.