Add default value on default local#11150
Conversation
lchrusciel
left a comment
There was a problem hiding this comment.
Hello Jean-Baptiste,
thanks a lot for your contribution! Do you think you can test this behaviour somehow?
|
Hello @lchrusciel, I have tested on my Sylius project before send this PR. I dont know how you want test a Symfony FormType : Behat, PHPSpec, PHP Unit ? |
|
We already have a few form type tests, like this one: https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/AddressingBundle/Tests/Form/Type/ZoneChoiceTypeTest.php Could you try to reproduce and perhaps cover this issue, so we will not have a regression in the future? |
|
@lchrusciel I have added the test. |
lchrusciel
left a comment
There was a problem hiding this comment.
I would need to ask you to rebase this PR to the newest changes on branch 1.6
I have rebase on branch 1.6 |
|
It's something wrong with the branch. We need to wait for #11179 to merge this PR |
|
Can you rebase again? Build should be green now |
|
@lchrusciel Sorry, after many rebase, the tests does not pass |
|
Hi @lchrusciel, I have rebase to Sylius 1.7. But tests fail. Why ? |
|
Related #11149 |
lchrusciel
left a comment
There was a problem hiding this comment.
It seems you spotted another window with the broken build (see #11542).
lchrusciel
left a comment
There was a problem hiding this comment.
I would say, that it is good to go. I've left a few CS-related comments, however the main problem there is placing of methods, according to Symfony Coding Standards
|
Hey Jean-Baptiste 👋 could you rebase your PR to the newest master? The build should be green then. |
I need rebase to merge in 1.7 branch or master ? Actually the origin branch is 1.7 to merge into 1.7 branch. |
|
ping @lchrusciel |
|
My mistake, of course, it should be rebased to 1.7. |
|
The base of this pull-request was changed, you need fetch and reset your local branch Unless you added new commits (to this branch) locally that you did not push yet, Feel free to ask for assistance when you get stuck 👍 |
Co-authored-by: Łukasz Chruściel <[email protected]>
|
@lchrusciel I have rebase my branch... The test error is not caused by this PR changes. How to relaunch to attempt to pass the test ? |
|
Tests at the bottom are rerun and passes. The problem is with static analysis: https://travis-ci.org/github/Sylius/Sylius/jobs/707744459#L2451 |
|
I have fix the Psalm error (locally checked). I'm horrified by the need to add specific comment in code to pass static analysis. |
|
Enjoy! All check is done and no conflict! My PR can be merged @lchrusciel! |
lchrusciel
left a comment
There was a problem hiding this comment.
Awesome! Thanks a lot for your contribution, Jean-Baptiste!
It took us some time, but finally, I'm able to welcome you among Sylius contributor :)
|
Thanks, Jean-Baptiste! 🎉 |
Add default value if no translation exist on default local