-
Notifications
You must be signed in to change notification settings - Fork 5.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
feat: Enhanced pod logs viewer. Fixes #6199 #11000 #10166 #11030
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #11030 +/- ##
==========================================
- Coverage 47.79% 47.78% -0.02%
==========================================
Files 246 246
Lines 41968 41921 -47
==========================================
- Hits 20058 20031 -27
+ Misses 19910 19891 -19
+ Partials 2000 1999 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
'Show the first 4 characters of the container name.' - what if 2 containers start with same prefix? current behavior of full name is handy |
@rbreeze bump! |
@rbreeze bump! |
@michael12312 how do I escalate this PR? It's a small(ish) change. It is isolated to one part of the code. It'll make a big improvement is allow you to debug problems using Argo CD. The current log viewer is nearly unusable. |
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
Don't merge. Need to figure out what to do with the performance issue when many log lines. |
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
@crenshaw-dev @rbreeze ready for review again. |
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
|
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
7 days from chatting with Jesse would be 4:30pm tomorrow. |
@jessesuen @rbreeze are y'all in alignment that this is the way to go? |
Signed-off-by: Alex Collins <[email protected]>
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, just one comment that can be addressed later: I miss the ability to quickly highlight a line copy it to the clipboard.
@@ -41,6 +41,7 @@ | |||
"react-router": "^4.3.1", | |||
"react-router-dom": "^4.2.2", | |||
"react-svg-piechart": "^2.4.2", | |||
"react-virtualized": "^9.22.3", |
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.
Where is this being used?
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.
Yep directionally when I spoke with @alexec, I liked how this is more in line with the kubectl experience, so I support the change. As for the UI implementation, 🤷♂️
Signed-off-by: Alex Collins <[email protected]>
🥳 |
These improvements look great & I can't wait to try them out! 🚀 Being able to search more than 100 lines will make the logs much more useful. I would've loved if my issue #11455 could have made the cut, but that'll keep for in future... |
@alexec I'm trying the enhanced log viewer in Argo 2.7.2 and it looks great. Thanks for doing this! One comment that I have is that the log viewer has a button to enable Dark Mode, but just for the log viewer. One suggestion that I have is that the default behavior of Dark Mode for the log viewer It is a bit weird to enable Dark Mode for the entire ArgoCD UI, but then have the Log Viewer be not in Dark Mode. |
@rodrigc that is strange! Historical. You wanna fix? |
@alexec I love ArgoCD, but don't have the bandwidth to fix this |
Signed-off-by: Alex Collins <[email protected]>
Fixes #6199
Fixes #11000
Fixes #10166
I've found the pod log viewer to be unusable. It's slow and works in a unintuitive manner. I can't sort my problems out with it.
This PR:
The changes use the
react-virtualization
module so you can now scroll through thousands of log lines without crashing or slowing your browser.