Add support for viewing search results in context for text logs (clp-text).#489
Add support for viewing search results in context for text logs (clp-text).#489junhaoliao merged 31 commits intoy-scope:mainfrom
Conversation
|
|
||
| const config = { | ||
| devServer: { | ||
| proxy: [ |
There was a problem hiding this comment.
Proxy added to avoid CORS issues during development.
|
|
||
| const handleSearchResultClick = (ev) => { | ||
| const {orig_file_id: origFileId, log_event_ix: logEventIx} = ev.currentTarget.dataset; | ||
| window.open(`${Meteor.settings.public.LogViewerWebuiClientUrl |
There was a problem hiding this comment.
In the future, we can open the Log Viewer in a split pane so users can see both the CLP search results and the log context at the same time. For the MVP, we can open the Log Viewer WebUI client in a new tab. Feel free to object.
|
hey @haiqi96 , could you help triage this review? |
The change looks reasonable to me, didn't notice any obvious issue |
| }, | ||
| "public": { | ||
| "ClpStorageEngine": clp_config.package.storage_engine, | ||
| "LogViewerWebuiClientUrl": f"http://{clp_config.log_viewer_webui.host}:{clp_config.log_viewer_webui.port}", |
There was a problem hiding this comment.
maybe just LogViewerWebuiUrl?
| const App = () => { | ||
| return ( | ||
| <h1>Hello world!</h1> | ||
| <CssVarsProvider modeStorageKey={"uiTheme"}> |
There was a problem hiding this comment.
create a const for string "uiTheme"
components/webui/settings.json
Outdated
| "AggregationResultsCollectionName": "aggregation-results", | ||
| "ClpStorageEngine": "clp", | ||
| "CompressionJobsCollectionName": "compression-jobs", | ||
| "LogViewerWebuiClientUrl": "http://localhost:8080", |
There was a problem hiding this comment.
There was a problem hiding this comment.
How about QueryStatus.jsx?
| * | ||
| * @return {React.ReactElement} | ||
| */ | ||
| const Query = () => { |
There was a problem hiding this comment.
Can we name this the same as the file?
components/webui/imports/ui/SearchView/SearchResults/SearchResultsTable/index.jsx
Show resolved
Hide resolved
Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
…ever applicable.
…_LOAD_STATE` as indices.
Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
…yperlinked log message text approach.
…o React components.
kirkrodrigues
left a comment
There was a problem hiding this comment.
A few more suggestions.
components/clp-package-utils/clp_package_utils/scripts/start_clp.py
Outdated
Show resolved
Hide resolved
| * | ||
| * @enum {QueryLoadState} | ||
| */ | ||
| const QUERY_LOAD_STATE = Object.freeze({ |
| /** | ||
| * Descriptions for query states. | ||
| */ | ||
| const QUERY_STATE_DESCRIPTIONS = Object.freeze({ |
There was a problem hiding this comment.
QUERY_LOADING_STATE_DESCRIPTIONS?
| /** | ||
| * @typedef {number} QueryLoadState | ||
| */ | ||
| let enumQueryLoadState; |
components/webui/imports/ui/SearchView/SearchResults/SearchResultsTable/index.jsx
Outdated
Show resolved
Hide resolved
Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
…ggestions from code review Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
kirkrodrigues
left a comment
There was a problem hiding this comment.
For the PR title, how about:
Add support for viewing search results in context for text logs (clp-text).
Description
These hyperlinks redirect users to the Log Viewer WebUI, which will:
This integration streamlines the workflow, making it easier for users to navigate from search results to detailed log analysis.
Validation performed