-
Notifications
You must be signed in to change notification settings - Fork 359
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: Log search feedbacks #10088
fix: Log search feedbacks #10088
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10088 +/- ##
==========================================
- Coverage 54.39% 50.39% -4.01%
==========================================
Files 1267 957 -310
Lines 159323 130590 -28733
Branches 3632 3631 -1
==========================================
- Hits 86670 65815 -20855
+ Misses 72519 64641 -7878
Partials 134 134
Flags with carried forward coverage won't be shown. Click here to find out more.
|
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Nice, work as expected!
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!
onClick={() => { | ||
setSearchOn((prev) => !prev); | ||
searchOn && setLogViewerOn(true); | ||
searchOn && | ||
selectedLog && | ||
setScrollToIndex(logs.findIndex((l) => l.id === selectedLog.id)); | ||
}}> |
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.
nit: this should be extracted out into a named function
@@ -92,6 +93,9 @@ const TrialDetailsLogs: React.FC<Props> = ({ experiment, trial }: Props) => { | |||
|
|||
useEffect(() => { | |||
settings.searchText?.length && setSearchOn(true); | |||
setSearchInput((prev) => | |||
prev === (settings.searchText || '') ? prev : settings.searchText || '', |
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.
super nit: I think this could be slightly simplified to (prev === settings.searchText ? prev : settings.searchText) ?? ''
Ticket
MD-529
Description
Address comments from log search bug bash.
Test Plan
Checklist
docs/release-notes/
See Release Note for details.