Uh oh!
There was an error while loading. Please reload this page.
Fix wrong display of multiline messages in the log after filtering - #44457
Conversation
jason810496
commented
Nov 28, 2024
Hi @Lee-W, I think this issue should be back ported to |
pierrejeambrun
commented
Nov 28, 2024
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 |
Lee-W
commented
Nov 29, 2024
Thanks @pierrejeambrun ! @jason810496 To create a "backport" PR to 2.10.x, you'll need to branch out from |
potiuk
commented
Nov 29, 2024
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 |
pierrejeambrun
commented
Nov 29, 2024
pierrejeambrun
left a comment
There was a problem hiding this comment.
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.)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 |
jason810496
commented
Nov 30, 2024
bdb3141 to
ad17f6dCompare- Added red color styling to lines based on the `currentLevel` - Added comments for new regExp
ad17f6d to
b22961aCompareRebased 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 :)) |
pierrejeambrun
left a comment
There was a problem hiding this comment.
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.
jason810496
commented
Dec 3, 2024
Sure!
|
pierrejeambrun
commented
Dec 3, 2024
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
currentLogLevelandcurrentFileSourceshould remain same until a newlogLevelorfileSourceis encountered.Screenshot After Fix
Without any filters




Filter with level
Filter with file source
Filter with level and file source