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

[API] Registering shop users #11356

Merged
merged 3 commits into from
Apr 16, 2020

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Apr 14, 2020

We need to customise the test API client to not force admin prefix in further PRs.

@pamil pamil added Feature New feature proposals. API APIs related issues and PRs. labels Apr 14, 2020
@pamil pamil requested a review from a team as a code owner April 14, 2020 18:16
# 'App\Message\YourMessage': async

buses:
messenger.bus.default:
Copy link
Member

Choose a reason for hiding this comment

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

WDYT about prefixing this bus with some sylius keyword?

Also, WDYT about defining a default bus? This way, all of the plugins could use the same main bus.

Plus, this file should be part of Api/CoreBundle, so we can share this configuration with third party users.

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'm not sure if I should tackle this issue in this PR - what about creating an issue about that to keep track of it, not to grow this PR even bigger.

src/Sylius/Bundle/ApiBundle/Command/RegisterShopUser.php Outdated Show resolved Hide resolved
@pamil pamil force-pushed the new-api/registering-shop-user branch from 5b71d57 to ee7fd51 Compare April 15, 2020 10:43
@pamil pamil force-pushed the new-api/registering-shop-user branch from ee7fd51 to adcf83a Compare April 15, 2020 15:09
@pamil pamil force-pushed the new-api/registering-shop-user branch from 0a10cbf to 7b11178 Compare April 15, 2020 16:13
@@ -5,6 +5,7 @@ source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../bash/common.lib.s
print_header "Customizing the environment" "Sylius"
run_command "git fetch origin $TRAVIS_BRANCH:refs/remotes/origin/$TRAVIS_BRANCH" || exit $? # Make origin/master available for is_suitable steps
run_command "phpenv config-rm xdebug.ini" # Disable XDebug
run_command "echo \"memory_limit=4096M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 4GB
run_command "echo \"memory_limit=6144M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 4GB
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
run_command "echo \"memory_limit=6144M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 4GB
run_command "echo \"memory_limit=6144M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 6GB

@@ -13,4 +13,4 @@ reset_cache() {

install_package="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/install-package"

locate_packages | parallel -j "$(get_number_of_jobs_for_parallel)" --gnu "${install_package} {} $* $(reset_cache)"
locate_packages | parallel -j1 --gnu "${install_package} {} $* $(reset_cache)"
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this change?

use Sylius\Component\User\Canonicalizer\CanonicalizerInterface;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;

class RegisterShopUserHandler implements MessageHandlerInterface
Copy link
Member

Choose a reason for hiding this comment

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

I thought about opening RegisterShopUser only. Imho, this class could be finalized

@lchrusciel lchrusciel merged commit 0f53b1c into Sylius:master Apr 16, 2020
@lchrusciel
Copy link
Member

Thank you, Kamil! 🥇

lchrusciel added a commit that referenced this pull request Apr 16, 2020
…iding customer to a separate service (GSadee)

This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes for review from #11356 
| License         | MIT


Commits
-------

501c2ab Move messenger config to bundles
e5f9696 Extract providing customer to separate service
a6e2f53 [Travis] Fix comment
@pamil pamil deleted the new-api/registering-shop-user branch April 16, 2020 12:15
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. Feature New feature proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants