-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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/check the flows of toggling logs timestamp and body columns #6992
Merged
YounixM
merged 4 commits into
main
from
fix/check-the-flows-of-toggling-logs-timestamp-and-body-columns
Jan 31, 2025
Merged
Fix/check the flows of toggling logs timestamp and body columns #6992
YounixM
merged 4 commits into
main
from
fix/check-the-flows-of-toggling-logs-timestamp-and-body-columns
Jan 31, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 to me! Reviewed everything up to ba5c27f in 1 minute and 29 seconds
More details
- Looked at
196
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. frontend/src/container/LiveLogs/LiveLogsList/index.tsx:57
- Draft comment:
Consider refactoring the repeated pattern of mergingdefaultLogsSelectedColumns
withoptions.selectColumns
usingconvertKeysToColumnFields
into a utility function to avoid redundancy. This pattern is also present inContextLogRenderer.tsx
. - Reason this comment was not posted:
Confidence changes required:50%
The code inLiveLogsList
andContextLogRenderer
usesconvertKeysToColumnFields
withdefaultLogsSelectedColumns
andoptions.selectColumns
. This pattern is repeated in multiple files, indicating a potential for refactoring to avoid redundancy.
2. frontend/src/container/LogDetailedView/ContextView/ContextLogRenderer.tsx:114
- Draft comment:
Consider refactoring the repeated pattern of usingconvertKeysToColumnFields
withdefaultLogsSelectedColumns
into a utility function to avoid redundancy. This pattern is also present inLiveLogsList/index.tsx
. - Reason this comment was not posted:
Confidence changes required:50%
TheContextLogRenderer
component usesconvertKeysToColumnFields
withdefaultLogsSelectedColumns
, which is a pattern repeated in other files. This indicates a potential for refactoring to avoid redundancy.
3. frontend/src/pages/LogsExplorer/index.tsx:130
- Draft comment:
Good use ofmergeWithRequiredColumns
to ensure required columns are present in the query. This utility function helps maintain code clarity and reuse. - Reason this comment was not posted:
Confidence changes required:10%
ThemigrateOptionsQuery
function inLogsExplorer
is responsible for ensuring the query has the required columns. It uses a utility functionmergeWithRequiredColumns
to handle this, which is a good practice for code reuse and clarity.
4. frontend/src/pages/LogsExplorer/index.tsx:142
- Draft comment:
Avoid using inline styles. Move the styles to an external stylesheet or use styled components. This is also applicable at line 138. - Reason this comment was not posted:
Comment was not on a valid diff hunk.
Workflow ID: wflow_C4S7bVOKuiXha1y9
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
ba5c27f
to
be4ec10
Compare
YounixM
approved these changes
Jan 31, 2025
YounixM
approved these changes
Jan 31, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Related Issues / PR's
Screenshots
NA
Affected Areas and Manually Tested Areas
Important
Fix and enhance logs explorer by ensuring default columns are visible and preserved across sessions and views.
body
andtimestamp
in live logs by ensuringdefaultLogsSelectedColumns
are always included inLiveLogsList
andContextLogRenderer
.LogsExplorer
by migrating options query to includedefaultLogsSelectedColumns
if missing.ExplorerOptions
by resetting todefaultLogsSelectedColumns
ordefaultTraceSelectedColumns
.migrateOptionsQuery
inLogsExplorer
ensures required columns are present in the query.handleClearSelect
inExplorerOptions
resets columns to defaults based onsourcepage
.hasRequiredColumns
andmergeWithRequiredColumns
inLogsExplorer
to manage column defaults.ContextLogRenderer
to usedefaultLogsSelectedColumns
for selected fields.This description was created by
for ba5c27f. It will automatically update as commits are pushed.