-
Notifications
You must be signed in to change notification settings - Fork 368
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
http.route
tag causes exception when interacting with engine route path helpers
#3526
Comments
Sorry to hear that! Thanks for the minimal repro, that's super helpful. I will take a look today. @agrobbin just in case, can you give me the motor-admin version in use so that I can zero in as quickly as possible on it? |
Oh right, I should've included that! We're on the latest version, motor-admin v0.4.26. |
Here's the result of my analysis. The issue comes from Inside
Which goes through all routes and produces a result:
This result is iterated upon via the
This returns, while located inside the block, applies to Since Rails 7.1 changed that
Now, instead of returning an enumerable of
This makes the (slightly modified but essentially identical)
Since
|
AIUI in the provided repro it seems that In any case for Rails 7.1:
We are working on a fix and will attempt a hotfix release early next week (current plan is Tue). |
@lloeki thanks so much for your detailed walkthrough of the issue! For what it's worth, we do have a matching route in our routing table here:
|
ℹ️ same problem here - rubygems/rubygems.org#4537 |
(We've merged a fix for this, and we're in the final validation steps before publishing a 1.21.1 release with the fix. Because a lot of folks seem to be bitten by this, I'll go ahead and reopen the issue until we actually put the release out so folks can easily find this ticket) |
@TonyCTHsu thanks for the info, fix seems super effective! |
Current behaviour
Starting in v1.21 (I believe due to #3345), we've started seeing errors from ddtrace when using a route helper from an engine (in our case, Motor Admin) in our tests:
In our test suite, we started getting this exception:
I hope this is enough to go on, but if there's additional info I can provide, definitely let me know!
Expected behaviour
Tests pass without exception from ddtrace.
Environment
Datadog.configure ...
):The text was updated successfully, but these errors were encountered: