-
-
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
[Locale]Available locales in channel by api #12766
[Locale]Available locales in channel by api #12766
Conversation
AdamKasp
commented
Jul 1, 2021
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
License | MIT |
bd53e4d
to
c6807b4
Compare
c6807b4
to
d516bf1
Compare
features/locale/getting_available_locales_in_current_channel.feature
Outdated
Show resolved
Hide resolved
public function theLocaleWithCodeShouldBeAvailable(string $name, string $code): void | ||
{ | ||
Assert::true( | ||
$this->isLocaleWithName($name, $this->responseChecker->getCollection($this->client->getLastResponse())) |
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.
$this->isLocaleWithName($name, $this->responseChecker->getCollection($this->client->getLastResponse())) | |
$this->isLocaleWithName($this->responseChecker->getCollection($this->client->getLastResponse()), $name) |
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.
And what is more, I guess that you can use here getCollectionItemsWithValue
method from ResponseChecker
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.
I've replaced this method in the next PR :)
src/Sylius/Bundle/ApiBundle/DataProvider/LocaleCollectionDataProvider.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/DataProvider/LocaleCollectionDataProvider.php
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/Resources/config/services/data_providers.xml
Outdated
Show resolved
Hide resolved
85c0318
to
981b4a2
Compare
9e0b889
to
fcd51d2
Compare
fcd51d2
to
90ceff6
Compare
src/Sylius/Bundle/ApiBundle/DataProvider/LocaleCollectionDataProvider.php
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/DataProvider/LocaleCollectionDataProvider.php
Show resolved
Hide resolved
Thanks, Adam! 🥇 |
This PR was merged into the 1.11-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no/ | Related tickets | based #12766 | License | MIT Commits ------- 5e7663e [Locales] Create ADR for locales exposing 4699cf1 [Locales] Create ADR for locales exposing 996343d [Locale] refactor get locale responses bc2d6e8 [Locales][API] disable pagination for locale and minor fixes
…ng the approach (GSadee) This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.11 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | #12766 and #13333 | License | MIT <!-- - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits ------- 4e82e09 [ADR][API] Update ADR for providing locales after changing the approach ff3d798 [ADR][API] Reject the old one and add the new ADR for providing locales after changing the approach