- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 --severity-min parameter to watchdog commands #5298
Conversation
No test coverage yet obviously. Will add when the approach is agreed. |
dbb3ee0
to
09aed35
Compare
09aed35
to
12465d3
Compare
At @weitzman's request I re-worked this to be a |
The test failure is only on the D10 test build. This looks to be unrelated to my change, but I'm not really sure.
|
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.
LGTM. One minor adjustment needed.
I think you canadd a few lines to WatchdogTest and get decent test coverage for the new option. Thanks.
The additional part of the watchdog test passes on mysql and postgres but fails on sqlite. The |
I could remove that |
In the mysql deletion test, after removing all messsges and adding the new, we have
But in the postgres and sqlite tests the ids continue from the previous test (even though those messages have been deleted). We see
So I think testing 'delete by id' is not going to be worth the effort. |
3155b3c
to
829dd20
Compare
The test build has not been triggered. Maybe it was because I did a force-push? I thought I had done that before and it was all OK. |
The new integration tests pass in all builds. The failing section (same as before, rw for dev/tty) is the functional test in D10, which runs phpunit 9.5.26, whereas the others are all 9.5.25, I don't know if that is significant. |
Test failure is unrelated. Thank you! |
Thanks. That's my first committed contribution to drush :-) |
Initial version of new
--severity-min
parameter.Some tests failed locally, but I think that was an unrelated problem.
This feature came out of a discussion on slack