Skip to content

[wip] Azure support #645

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

Closed
wants to merge 5 commits into from
Closed

[wip] Azure support #645

wants to merge 5 commits into from

Conversation

sylfabre
Copy link
Contributor

No description provided.

@makasim
Copy link
Member

makasim commented Nov 20, 2018

@sylfabre there are some conflicts. could you fix them, please?

@sylfabre
Copy link
Contributor Author

@makasim my colleague @PaulRouss3l is working on it now. He'll do it tomorrow.

@makasim
Copy link
Member

makasim commented Nov 21, 2018

@makasim
Copy link
Member

makasim commented Nov 21, 2018

It needs more tests, at least spec tests should be implemented

{
InvalidMessageException::assertMessageInstanceOf($message, AzureStorageMessage::class);

if(false === $requeue) {
Copy link
Member

Choose a reason for hiding this comment

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

it should publish a message on requeue == true

*/
public function setDeliveryDelay(int $deliveryDelay = null): Producer
{
throw new DeliveryDelayNotSupportedException();
Copy link
Member

Choose a reason for hiding this comment

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

Do not throw exception if null is passed

*/
public function setPriority(int $priority = null): Producer
{
throw new PriorityNotSupportedException();
Copy link
Member

Choose a reason for hiding this comment

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

Do not throw exception if null is passed

@makasim
Copy link
Member

makasim commented Nov 21, 2018

Code styles should be fixed, you could run php-cs-fixer to auto-fix them.

@makasim
Copy link
Member

makasim commented Nov 21, 2018

root phpunit.xml.dist file should be updated too, so tests are executed by travis.

@PaulRouss3l
Copy link

I'm currently implementing the tests, and will update with the comment you made above =)

@PaulRouss3l
Copy link

still wip

@@ -91,8 +91,7 @@ public function reject(Message $message, bool $requeue = false): void
InvalidMessageException::assertMessageInstanceOf($message, AzureStorageMessage::class);

if (true === $requeue) {
$factory = new AzureStorageConnectionFactory($this->client);
$context = $factory->getContext();
$context = new AzureStorageContext($this->client);
Copy link
Member

Choose a reason for hiding this comment

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

I think context should be passed in consumer constructor. The context should have a getClient public method

@makasim
Copy link
Member

makasim commented Nov 22, 2018

That was decided to release it as a stand-alone package https://github.com/assoconnect/enqueue-azure

Closing PR. Thank you guys for your effort!

@makasim makasim closed this Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants