Skip to content

[Messenger] Doctrine Connection find and findAll now correctly decode headers #31966

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

Merged
merged 1 commit into from
Jun 26, 2019
Merged

[Messenger] Doctrine Connection find and findAll now correctly decode headers #31966

merged 1 commit into from
Jun 26, 2019

Conversation

TimoBakx
Copy link
Member

@TimoBakx TimoBakx commented Jun 9, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #31916
License MIT
Doc PR N/A

The Doctrine transport Connection class methods find and findAll did not JSON-decode the headers of the envelope after retrieving it from Doctrine. The get method, however, did this correctly.

I added two tests to verify the results of find and findAll and then added the JSON-decoding to the Connection class. I moved the JSON-decoding to a separate method to avoid duplicate code.

@fabpot
Copy link
Member

fabpot commented Jun 26, 2019

Thank you @TimoBakx.

@fabpot fabpot merged commit 3aec2ac into symfony:4.3 Jun 26, 2019
fabpot added a commit that referenced this pull request Jun 26, 2019
…ctly decode headers (TimoBakx)

This PR was merged into the 4.3 branch.

Discussion
----------

[Messenger] Doctrine Connection find and findAll now correctly decode headers

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31916
| License       | MIT
| Doc PR        | N/A

The Doctrine transport `Connection` class methods `find` and `findAll` did not JSON-decode the headers of the envelope after retrieving it from Doctrine. The `get` method, however, did this correctly.

I added two tests to verify the results of `find` and `findAll` and then added the JSON-decoding to the `Connection` class. I moved the JSON-decoding to a separate method to avoid duplicate code.

Commits
-------

3aec2ac [Messenger] Doctrine Connection find and findAll now correctly decode headers
@TimoBakx
Copy link
Member Author

Thanks for merging my first ever PR to the Symfony code. And thank you @sroze for your review.

@fabpot
Copy link
Member

fabpot commented Jun 26, 2019

Congrats on your first PR! I did not realize it was your first.

@fabpot fabpot mentioned this pull request Jun 26, 2019
@TimoBakx TimoBakx deleted the messenger-doctrine-find branch June 28, 2019 09:51
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.

5 participants