zenstruck / messenger-monitor-bundle

Batteries included UI to monitor your Messenger workers, transports, schedules, and messages.
MIT License
152 stars 16 forks source link

Add links to open Message and MessageHandler in IDE #45

Open Chris53897 opened 10 months ago

Chris53897 commented 10 months ago

I think it could be helpful for developers to have Links, in the Detail-View of a Message, to open the Message and MessageHandler in the IDE. Same behaviour as in error messages in dev-mode. https://symfony.com/doc/current/reference/configuration/framework.html#ide

I guess code can be used from here (Code changed a bit, between 6.3 and 6.4) https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php#L54

Maybe only add this in env = dev?

WDYT?

kbond commented 10 months ago

Maybe only add this in env = dev?

Do you think this package is useful in dev? I always figured this bundle would be most useful in production.

Chris53897 commented 10 months ago

I use it mostly in dev ;)

Today was the first deploy on live with symfony messenger and your bundle. Useful here as well.

kbond commented 10 months ago

I use it mostly in dev ;)

Ok, fair enough. Then yeah, this would be a cool feature. Could it be possible to use in production? If you're a dev and browsing in production, could you click to open the file in your ide (assuming the project is open)?

bobvandevijver commented 6 months ago

If you have the ide option populated in production, I believe this bundle is allowed to assume it is going to work when clicked.

Chris53897 commented 6 months ago

It is harder in production. Every developer has probably checked out the project in a different folder. But every developer could have a agreement about a symylink in there local environment that points to there private folder. Maybe IDE's have a better/dynamic handling. Another problem is the checkout branch vs the branch in production. (Same as in dev, but maybe less obviously). But this is a general problem and out of scope of this issue.