-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Fix wrong display of multiline messages in the log after filtering #44457
Fix wrong display of multiline messages in the log after filtering #44457
Conversation
Hi @Lee-W, I think this issue should be back ported to |
We do not backport to released versions. (unless critical security fixes but I haven't seen that happen before). This will most likely be in the next patch release of |
Thanks @pierrejeambrun ! @jason810496 To create a "backport" PR to 2.10.x, you'll need to branch out from |
Actually we now have cherry-picker - and we marked it with "backport" label, so the backport PR should be created automatically and if it is not possible, instructions what to do will be posted automatically here as comment :D |
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.
Tested, working as expected.
Just a few questions.
I think we should also consider applying the colors to those lines. (only certain lines appear red.)
airflow/www/static/js/dag/details/taskInstance/Logs/utils.test.tsx
Outdated
Show resolved
Hide resolved
I think yes, but - we need to make sure this one will be forward-ported (for lack of a better word) or determined not to be needed in main :D |
bdb3141
to
ad17f6d
Compare
- Added red color styling to lines based on the `currentLevel` - Added comments for new regExp
ad17f6d
to
b22961a
Compare
Rebased to the latest |
Thanks for the update @jason810496 I was really busy today, I'll do a review tomorrow. (but last time I checked it was looking nice :)) |
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.
Looks good thanks.
Some of the questions of the previous review are left un answered. Just for my comprehension, if do you mind giving me a few hints.
Sure!
|
Great thanks @jason810496 for the details. |
…44457) * Fix Logs/utils * Fix test for Logs/utils * Fix by Review Comment - Added red color styling to lines based on the `currentLevel` - Added comments for new regExp * Refactor Logs/utils test cases
…44457) * Fix Logs/utils * Fix test for Logs/utils * Fix by Review Comment - Added red color styling to lines based on the `currentLevel` - Added comments for new regExp * Refactor Logs/utils test cases
closes: #41265
Issue Context
After research, the issue is caused by
airflow/www/static/js/dag/details/taskInstance/Logs/utils.ts
, the API just return the full raw logs.Additionally, incorrect display behavior also occurs when filtering by file source.
Main Fix Idea
The
currentLogLevel
andcurrentFileSource
should remain same until a newlogLevel
orfileSource
is encountered.Screenshot After Fix
Without any filters
Filter with level
Filter with file source
Filter with level and file source