-
Notifications
You must be signed in to change notification settings - Fork 715
fix: removed duplicated table columns #4429
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
Conversation
WalkthroughThe changes involve updates to three components: Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SearchBar
participant useLogs
participant DateTime
User->>SearchBar: Apply saved view
SearchBar->>useLogs: Check selectedFields
useLogs->>useLogs: Remove duplicates using Set
useLogs->>SearchBar: Return unique selectedFields
SearchBar->>DateTime: Render with updated fields
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- web/src/components/DateTime.vue (1 hunks)
- web/src/composables/useLogs.ts (7 hunks)
- web/src/plugins/logs/SearchBar.vue (1 hunks)
Files skipped from review due to trivial changes (1)
- web/src/components/DateTime.vue
Additional comments not posted (3)
web/src/plugins/logs/SearchBar.vue (1)
1746-1752: LGTM!The code changes to remove duplicates from
selectedFieldsarray using aSetlook good. The check for existence and length ofselectedFieldsbefore removing duplicates is also correct.web/src/composables/useLogs.ts (2)
Line range hint
2931-2944: LGTM!The code changes to remove duplicates from
selectedFieldsusing aSetbefore applying saved views are approved. This will prevent issues with duplicate fields.
Line range hint
2954-2965: LGTM!The code changes to include the timestamp column in the result grid columns if it is present in
selectedFieldsare approved. This improves consistency and ensures the timestamp is displayed when explicitly selected by the user.
#4426 #4427 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Improved styling for "Start time" and "End time" labels in the DateTime component. - Enhanced field selection process in the SearchBar component to prevent duplication of fields. - **Bug Fixes** - Resolved issues with duplicate entries in the selected fields, improving data integrity. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
#4426
#4427
Summary by CodeRabbit