Skip to content
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

Merged
merged 2 commits into from
Jul 7, 2021

Conversation

AdamKasp
Copy link
Contributor

@AdamKasp AdamKasp commented Jul 1, 2021

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
License MIT

@AdamKasp AdamKasp added the API APIs related issues and PRs. label Jul 1, 2021
@AdamKasp AdamKasp requested a review from a team as a code owner July 1, 2021 10:58
@AdamKasp AdamKasp force-pushed the available-locales-in-channel-by-api branch 9 times, most recently from bd53e4d to c6807b4 Compare July 1, 2021 13:11
@AdamKasp AdamKasp changed the title [WIP] [Locale]Available locales in channel by api [Locale]Available locales in channel by api Jul 2, 2021
@AdamKasp AdamKasp force-pushed the available-locales-in-channel-by-api branch from c6807b4 to d516bf1 Compare July 2, 2021 09:00
public function theLocaleWithCodeShouldBeAvailable(string $name, string $code): void
{
Assert::true(
$this->isLocaleWithName($name, $this->responseChecker->getCollection($this->client->getLastResponse()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$this->isLocaleWithName($name, $this->responseChecker->getCollection($this->client->getLastResponse()))
$this->isLocaleWithName($this->responseChecker->getCollection($this->client->getLastResponse()), $name)

Copy link
Member

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

Copy link
Contributor Author

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/Behat/Context/Api/Shop/LocaleContext.php Outdated Show resolved Hide resolved
@probot-autolabeler probot-autolabeler bot added the Maintenance CI configurations, READMEs, releases, etc. label Jul 5, 2021
@AdamKasp AdamKasp force-pushed the available-locales-in-channel-by-api branch 13 times, most recently from 85c0318 to 981b4a2 Compare July 5, 2021 11:34
@AdamKasp AdamKasp force-pushed the available-locales-in-channel-by-api branch 3 times, most recently from 9e0b889 to fcd51d2 Compare July 5, 2021 12:21
@AdamKasp AdamKasp force-pushed the available-locales-in-channel-by-api branch from fcd51d2 to 90ceff6 Compare July 6, 2021 07:04
@GSadee GSadee merged commit 366f10a into Sylius:master Jul 7, 2021
@GSadee
Copy link
Member

GSadee commented Jul 7, 2021

Thanks, Adam! 🥇

@AdamKasp AdamKasp deleted the available-locales-in-channel-by-api branch July 7, 2021 06:29
GSadee added a commit that referenced this pull request Jul 7, 2021
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
AdamKasp added a commit that referenced this pull request Mar 18, 2022
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs. Maintenance CI configurations, READMEs, releases, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants