-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add input data to processed messages #46
base: 1.x
Are you sure you want to change the base?
Add input data to processed messages #46
Conversation
Thanks for the PR @SpartakusMd! I'm quite swamped at the moment so I'll give it a proper review (and start working on the other issues) when I have a chance. Curious about what you said in the issue:
Using |
<pre class="mb-0" style="white-space: pre; max-height: 340px; overflow: auto;">{{ value|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre> | ||
{% elseif value matches "\/\n/" %} | ||
<pre class="mb-0" style="white-space: pre; max-height: 340px; overflow: auto;">{{ value }}</pre> | ||
{% else %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test enums? Enum-Support could be added later (If not supported yet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added enum support
Thanks for the PR. Look already promising. |
05ae1d4
to
5fd1238
Compare
@@ -13,8 +13,9 @@ | |||
], | |||
"require": { | |||
"php": ">=8.1", | |||
"symfony/framework-bundle": "^6.4|^7.0", | |||
"symfony/framework-bundle": "^6.4.1|^7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To include the following fix symfony/symfony#52852 for symfony serializer
@kbond what do you think about the implementation? We're using the fork now in production and improves a lot the debugging life. |
Looks good, I'm going to be adding this bundle to an ap so I'll be able to test this out locally soon. |
@kbond I found an issue related to emails. If the email is sent via Messenger, it will also be captured and save to the database. The problem comes when the message contains attachments, they will also be serialized and saved to the database. I propose to clone the message before serializing and remove attachments from it. What do you think? |
In the end, I have added a new stamp |
Hello @kbond, did you have time to check the changes? |
Hey @SpartakusMd! Sorry for the delay - I haven't forgotten about this! I'm pretty sure the next pre-release is going to require a migration because of #105 so feels like a good time to add this feature. I think I'm going to add a global config to disable/enable the result storage by default, then add Also, for the Thoughts? |
Hello @kbond, sounds good the config and stamps. Regarding email attachment, I didn't find a way to eliminate binary fields from being saved in the DB. |
d913392
to
cc9cde9
Compare
cc9cde9
to
c95802a
Compare
awesome feature! |
f3a1b6a
to
ac39231
Compare
@kbond could we move forward with this PR? I would like to add some extra functionality on top of it and avoid piling all the changes in a single PR, which would make the review harder. |
Fixes #17
symfony/serializer
to normalize the message from the envelope.input
field