Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[API] Registering shop users#11356

Merged
lchrusciel merged 3 commits into
Sylius:masterfrom
pamil:new-api/registering-shop-user
Apr 16, 2020
Merged

[API] Registering shop users#11356
lchrusciel merged 3 commits into
Sylius:masterfrom
pamil:new-api/registering-shop-user

Conversation

@pamil
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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.

Comment thread src/Sylius/Bundle/ApiBundle/Command/RegisterShopUser.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/spec/CommandHandler/RegisterShopUserHandlerSpec.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/spec/CommandHandler/RegisterShopUserHandlerSpec.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/RegisterShopUserHandler.php Outdated
@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
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
Copy Markdown
Contributor

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

Comment thread bin/install-packages
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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