-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Ruby: Model various ActionController methods #11058
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
Conversation
9f29317
to
4bea04b
Compare
c0c6c3a
to
8ccce80
Compare
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.
Changes LGTM. I've started another DCA run, since the last one had some (presumably transient) failures.
That run shows a stage timing (?) slowdown for |
That is a fluke that you shouldn't worry about. But you have merge conflicts beyond the test-files that GitHub is complaining about (e.g. |
This test shows that we correctly identify redirect_to and render calls inside respond_to blocks.
The behaviour of `Object#inspect` depends on whether it has been overridden by a subclass, but it will typically produce output on a single line. Calling `inspect` on a String will replace newlines with `\n`, which is then safe for interpolation into a log line.
8ccce80
to
ed3270f
Compare
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.
A new evaluation still looks good.
👍
ActionController
methods have access to alogger
method which returns an instance ofActiveSupport::Logger
.The first commit moves the existing
ActionController.ql
test to be inside theaction_controller
directory, so that is no longer affected by changes to other test fixtures. I think we should probably do this for the remaining tests (ActionDispatch, ActionView, Core, GraphQL, PosixSpawn) at some point.Later commits model
send_data
andbody_stream
.Evaluation shows new TPs for log injection, with one FP due to us not considering
Object#inspect
to be a sanitizer. I've added a commit to fix this FP.