+
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/TitleButton.css b/src/components/CentralContainer/Sidebar/SidebarTabs/TitleButton.css
deleted file mode 100644
index 33bfafd5..00000000
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/TitleButton.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.sidebar-tab-title-button {
- z-index: 0 !important;
- min-width: 0 !important;
- min-height: 0 !important;
-}
diff --git a/src/components/MenuBar/SmallIconButton.tsx b/src/components/MenuBar/SmallIconButton.tsx
index dc061cba..3fc3447e 100644
--- a/src/components/MenuBar/SmallIconButton.tsx
+++ b/src/components/MenuBar/SmallIconButton.tsx
@@ -1,5 +1,3 @@
-import React from "react";
-
import {IconButton} from "@mui/joy";
diff --git a/src/contexts/StateContextProvider.tsx b/src/contexts/StateContextProvider.tsx
index e1863999..09d5eda3 100644
--- a/src/contexts/StateContextProvider.tsx
+++ b/src/contexts/StateContextProvider.tsx
@@ -25,6 +25,7 @@ import {
EVENT_POSITION_ON_PAGE,
FileSrcType,
MainWorkerRespMessage,
+ QUERY_PROGRESS_INIT,
QueryResults,
WORKER_REQ_CODE,
WORKER_RESP_CODE,
@@ -86,7 +87,7 @@ const STATE_DEFAULT: Readonly = Object.freeze({
numPages: 0,
onDiskFileSizeInBytes: 0,
pageNum: 0,
- queryProgress: INITIAL_QUERY_PROGRESS,
+ queryProgress: QUERY_PROGRESS_INIT,
queryResults: new Map(),
uiState: UI_STATE.UNOPENED,
@@ -97,8 +98,6 @@ const STATE_DEFAULT: Readonly = Object.freeze({
startQuery: () => null,
});
-const INITIAL_QUERY_PROGRESS = 0;
-
interface StateContextProviderProps {
children: React.ReactNode
}
@@ -312,7 +311,7 @@ const StateContextProvider = ({children}: StateContextProviderProps) => {
}
case WORKER_RESP_CODE.QUERY_RESULT:
setQueryProgress(args.progress);
- if (INITIAL_QUERY_PROGRESS === args.progress) {
+ if (QUERY_PROGRESS_INIT === args.progress) {
setQueryResults(STATE_DEFAULT.queryResults);
} else {
setQueryResults((v) => {
diff --git a/src/index.css b/src/index.css
index 0efaef05..b8d1ac44 100644
--- a/src/index.css
+++ b/src/index.css
@@ -27,6 +27,7 @@ html {
* .monaco-editor .minimap { z-index: 5; }
* ```
*/
+ --ylv-panel-title-button-z-index: 0;
--ylv-panel-query-input-z-index: 0;
--ylv-resize-handle-z-index: 1;
--ylv-menu-bar-z-index: 6;
diff --git a/src/services/LogFileManager/index.ts b/src/services/LogFileManager/index.ts
index 94682c45..4b90681f 100644
--- a/src/services/LogFileManager/index.ts
+++ b/src/services/LogFileManager/index.ts
@@ -33,7 +33,7 @@ import {
} from "./utils";
-const MAX_RESULT_COUNT = 1_000;
+const MAX_QUERY_RESULT_COUNT = 1_000;
/**
* Class to manage the retrieval and decoding of a given log file.
@@ -293,6 +293,9 @@ class LogFileManager {
this.#queryId++;
this.#queryCount = 0;
+ // Send an empty query result with 0 progress to the render to init the results variable because there could be results sent by the last task before `startQuery()` runs.
+ this.#onQueryResults(0, new Map());
+
// If the query string is empty, or there are no logs, return
if ("" === queryString || 0 === this.#numEvents) {
return;
@@ -306,8 +309,6 @@ class LogFileManager {
"" :
"i";
const queryRegex = new RegExp(regexPattern, regexFlags);
- // Send an empty query result with 0 progress to the render to init the results variable because there could be results sent by the last task before `startQuery()` runs.
- this.#onQueryResults(0, new Map());
this.#queryChunkAndScheduleNext(this.#queryId, 0, queryRegex);
}
@@ -360,7 +361,7 @@ class LogFileManager {
});
this.#queryCount++;
- if (MAX_RESULT_COUNT <= this.#queryCount) {
+ if (MAX_QUERY_RESULT_COUNT <= this.#queryCount) {
break;
}
}
@@ -368,11 +369,11 @@ class LogFileManager {
// The query progress takes the maximum of the progress based on the number of events
// queried over total log events, and the number of results over the maximum result limit.
this.#onQueryResults(
- Math.max(chunkEndIdx / this.#numEvents, this.#queryCount / MAX_RESULT_COUNT),
+ Math.max(chunkEndIdx / this.#numEvents, this.#queryCount / MAX_QUERY_RESULT_COUNT),
results
);
- if (chunkEndIdx < this.#numEvents && MAX_RESULT_COUNT > this.#queryCount) {
+ if (chunkEndIdx < this.#numEvents && MAX_QUERY_RESULT_COUNT > this.#queryCount) {
defer(() => {
this.#queryChunkAndScheduleNext(queryId, chunkEndIdx, queryRegex);
});
diff --git a/src/typings/worker.ts b/src/typings/worker.ts
index 9a7a654f..d32a4715 100644
--- a/src/typings/worker.ts
+++ b/src/typings/worker.ts
@@ -115,6 +115,9 @@ interface QueryResultsType {
type QueryResults = Map;
+const QUERY_PROGRESS_INIT = 0;
+const QUERY_PROGRESS_DONE = 1;
+
type WorkerRespMap = {
[WORKER_RESP_CODE.CHUNK_DATA]: {
logs: string
@@ -175,6 +178,8 @@ export {
CURSOR_CODE,
EMPTY_PAGE_RESP,
EVENT_POSITION_ON_PAGE,
+ QUERY_PROGRESS_DONE,
+ QUERY_PROGRESS_INIT,
WORKER_REQ_CODE,
WORKER_RESP_CODE,
};
From 30481f99ccbe6e653a654c763f783879169160ef Mon Sep 17 00:00:00 2001
From: Henry <50559854+Henry8192@users.noreply.github.com>
Date: Tue, 12 Nov 2024 16:46:42 -0500
Subject: [PATCH 19/24] fix lint
---
src/services/LogFileManager/index.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/services/LogFileManager/index.ts b/src/services/LogFileManager/index.ts
index 4b90681f..5dc4dbda 100644
--- a/src/services/LogFileManager/index.ts
+++ b/src/services/LogFileManager/index.ts
@@ -293,7 +293,8 @@ class LogFileManager {
this.#queryId++;
this.#queryCount = 0;
- // Send an empty query result with 0 progress to the render to init the results variable because there could be results sent by the last task before `startQuery()` runs.
+ // Send an empty query result with 0 progress to the render to init the results variable
+ // because there could be results sent by previous task before `startQuery()` runs.
this.#onQueryResults(0, new Map());
// If the query string is empty, or there are no logs, return
From 8a81a878d2427fc640497f0fa139d10cee6cb555 Mon Sep 17 00:00:00 2001
From: Henry8192 <50559854+Henry8192@users.noreply.github.com>
Date: Thu, 14 Nov 2024 14:45:44 -0500
Subject: [PATCH 20/24] Apply suggestions from code review
Co-authored-by: Junhao Liao
---
.../Sidebar/SidebarTabs/PanelTitleButton.tsx | 16 ++++++++++------
.../SidebarTabs/SearchTabPanel/Result.tsx | 6 +++---
.../SidebarTabs/SearchTabPanel/ResultsGroup.tsx | 11 +++++------
.../Sidebar/SidebarTabs/SearchTabPanel/index.tsx | 2 ++
src/services/LogFileManager/index.ts | 10 ++++++----
5 files changed, 26 insertions(+), 19 deletions(-)
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/PanelTitleButton.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/PanelTitleButton.tsx
index 2f2bec32..b527a564 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/PanelTitleButton.tsx
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/PanelTitleButton.tsx
@@ -7,15 +7,19 @@ import "./PanelTitleButton.css";
/**
- * Renders an IconButton with an additional CSS class 'sidebar-tab-title-button'.
+ * Renders an IconButton for use in sidebar tab titles.
*
* @param props
* @return
*/
-const PanelTitleButton = (props: IconButtonProps) => (
-
-);
+const PanelTitleButton = (props: IconButtonProps) => {
+ const {className, ...rest} = props;
+ return (
+
+ );
+};
+
export default PanelTitleButton;
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/Result.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/Result.tsx
index 5cc73362..ec45fd09 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/Result.tsx
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/Result.tsx
@@ -17,12 +17,11 @@ interface ResultProps {
const SEARCH_RESULT_PREFIX_MAX_CHARACTERS = 20;
/**
- * Displays a button containing a message, which highlights a specific range of text.
+ * Renders a query result as a button with a message, highlighting the first matching text range.
*
* @param props
* @param props.message
- * @param props.matchRange A two-element array indicating the start and end indices of the substring
- * to be highlighted.
+ * @param props.matchRange A two-element array [begin, end) representing the indices of the matching text range.
* @param props.logEventNum
* @return
*/
@@ -66,4 +65,5 @@ const Result = ({logEventNum, message, matchRange}: ResultProps) => {
);
};
+
export default Result;
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
index af77aee3..d75061f0 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
@@ -2,7 +2,7 @@ import {
useEffect,
useState,
} from "react";
-import * as React from "react";
+import React from "react";
import {
Accordion,
@@ -30,7 +30,7 @@ interface ResultsGroupProps {
}
/**
- * Renders a group of results. Each group contains a list of results from a single page.
+ * Renders a group of results, where each group represents a list of results from a single page.
*
* @param props
* @param props.isAllExpanded
@@ -52,7 +52,7 @@ const ResultsGroup = React.memo(({
setIsExpanded(newValue);
};
- // On `isAllExpanded` updates, sync current results group's expand status.
+ // On `isAllExpanded` update, sync current results group's expand status.
useEffect(() => {
setIsExpanded(isAllExpanded);
}, [isAllExpanded]);
@@ -77,8 +77,7 @@ const ResultsGroup = React.memo(({
fontFamily={"Inter"}
level={"title-sm"}
>
- Page
- {" "}
+ {"Page "}
{pageNum}
@@ -104,7 +103,6 @@ const ResultsGroup = React.memo(({
message={r.message}/>
))}
-
);
@@ -112,4 +110,5 @@ const ResultsGroup = React.memo(({
ResultsGroup.displayName = "ResultsGroup";
+
export default ResultsGroup;
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/index.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/index.tsx
index ef331e59..883ef95f 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/index.tsx
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/index.tsx
@@ -44,6 +44,7 @@ const SearchTabPanel = () => {
const {queryProgress, queryResults, startQuery, uiState} = useContext(StateContext);
const [isAllExpanded, setIsAllExpanded] = useState(true);
const [queryOptions, setQueryOptions] = useState([]);
+
const handleQueryInputChange = (ev: React.ChangeEvent) => {
const isCaseSensitive = queryOptions.includes(QUERY_OPTION.IS_CASE_SENSITIVE);
const isRegex = queryOptions.includes(QUERY_OPTION.IS_REGEX);
@@ -126,4 +127,5 @@ const SearchTabPanel = () => {
);
};
+
export default SearchTabPanel;
diff --git a/src/services/LogFileManager/index.ts b/src/services/LogFileManager/index.ts
index 5dc4dbda..4c614f45 100644
--- a/src/services/LogFileManager/index.ts
+++ b/src/services/LogFileManager/index.ts
@@ -310,6 +310,7 @@ class LogFileManager {
"" :
"i";
const queryRegex = new RegExp(regexPattern, regexFlags);
+
this.#queryChunkAndScheduleNext(this.#queryId, 0, queryRegex);
}
@@ -321,7 +322,6 @@ class LogFileManager {
* @param chunkBeginIdx
* @param queryRegex
*/
- // eslint-disable-next-line max-statements
#queryChunkAndScheduleNext (
queryId: number,
chunkBeginIdx: number,
@@ -369,11 +369,13 @@ class LogFileManager {
// The query progress takes the maximum of the progress based on the number of events
// queried over total log events, and the number of results over the maximum result limit.
- this.#onQueryResults(
- Math.max(chunkEndIdx / this.#numEvents, this.#queryCount / MAX_QUERY_RESULT_COUNT),
- results
+ const progress = Math.max(
+ chunkEndIdx / this.#numEvents,
+ this.#queryCount / MAX_QUERY_RESULT_COUNT
);
+ this.#onQueryResults(progress, results);
+
if (chunkEndIdx < this.#numEvents && MAX_QUERY_RESULT_COUNT > this.#queryCount) {
defer(() => {
this.#queryChunkAndScheduleNext(queryId, chunkEndIdx, queryRegex);
From 2c10ab734231d3d16cfd9fa0d67b6931961837a2 Mon Sep 17 00:00:00 2001
From: Henry8192 <50559854+Henry8192@users.noreply.github.com>
Date: Thu, 14 Nov 2024 15:00:49 -0500
Subject: [PATCH 21/24] resolve rest of suggestions
---
.../Sidebar/SidebarTabs/CustomTabPanel.css | 2 +-
.../Sidebar/SidebarTabs/CustomTabPanel.tsx | 2 +-
.../Sidebar/SidebarTabs/PanelTitleButton.css | 1 -
.../SidebarTabs/SearchTabPanel/Result.tsx | 6 +-
.../SidebarTabs/SearchTabPanel/index.css | 1 -
.../SidebarTabs/SearchTabPanel/index.tsx | 10 ++-
src/components/MenuBar/ExportLogsButton.tsx | 4 +-
src/index.css | 2 -
src/services/LogFileManager/index.ts | 64 ++++++++++++-------
9 files changed, 56 insertions(+), 36 deletions(-)
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/CustomTabPanel.css b/src/components/CentralContainer/Sidebar/SidebarTabs/CustomTabPanel.css
index 1dabeece..f6b1f720 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/CustomTabPanel.css
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/CustomTabPanel.css
@@ -2,7 +2,7 @@
padding: 0.75rem;
}
-.custom-tab-panel-container {
+.sidebar-tab-panel-container {
display: flex;
flex-direction: column;
height: 100%;
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/CustomTabPanel.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/CustomTabPanel.tsx
index d7eea8c3..2b5d5bc2 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/CustomTabPanel.tsx
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/CustomTabPanel.tsx
@@ -40,7 +40,7 @@ const CustomTabPanel = ({
className={"sidebar-tab-panel"}
value={tabName}
>
-
+
{
level={"body-sm"}
>
- {(SEARCH_RESULT_PREFIX_MAX_CHARACTERS < beforeMatch.length) && "..."}
- {beforeMatch.slice(-SEARCH_RESULT_PREFIX_MAX_CHARACTERS)}
+ {(QUERY_RESULT_PREFIX_MAX_CHARACTERS < beforeMatch.length) && "..."}
+ {beforeMatch.slice(-QUERY_RESULT_PREFIX_MAX_CHARACTERS)}
{
const isRegex = queryOptions.includes(QUERY_OPTION.IS_REGEX);
startQuery(ev.target.value, isRegex, isCaseSensitive);
};
+ const handleQueryOptionsChange = (
+ _: React.MouseEvent,
+ newOptions: QUERY_OPTION[]
+ ) => {
+ setQueryOptions(newOptions);
+ };
return (
{
spacing={0.25}
value={queryOptions}
variant={"plain"}
- onChange={(_, newValue) => {
- setQueryOptions(newValue);
- }}
+ onChange={handleQueryOptionsChange}
>
{
"primary"}
>
{EXPORT_LOG_PROGRESS_VALUE_MAX === exportProgress ?
- :
+ :
{Math.ceil(exportProgress * 100)}
}
diff --git a/src/index.css b/src/index.css
index b8d1ac44..815b9bd2 100644
--- a/src/index.css
+++ b/src/index.css
@@ -27,8 +27,6 @@ html {
* .monaco-editor .minimap { z-index: 5; }
* ```
*/
- --ylv-panel-title-button-z-index: 0;
- --ylv-panel-query-input-z-index: 0;
--ylv-resize-handle-z-index: 1;
--ylv-menu-bar-z-index: 6;
--ylv-status-bar-z-index: 6;
diff --git a/src/services/LogFileManager/index.ts b/src/services/LogFileManager/index.ts
index 4c614f45..805fc2a5 100644
--- a/src/services/LogFileManager/index.ts
+++ b/src/services/LogFileManager/index.ts
@@ -1,6 +1,7 @@
/* eslint max-lines: ["error", 450] */
import {
Decoder,
+ DecodeResultType,
DecoderOptionsType,
} from "../../typings/decoders";
import {MAX_V8_STRING_LENGTH} from "../../typings/js";
@@ -314,6 +315,45 @@ class LogFileManager {
this.#queryChunkAndScheduleNext(this.#queryId, 0, queryRegex);
}
+ /**
+ * Processes decoded log events and populates the results map with matched entries.
+ *
+ * @param decodedEvents
+ * @param queryRegex
+ * @param results The map to store query results.
+ */
+ #processQueryDecodedEvents (
+ decodedEvents: DecodeResultType[],
+ queryRegex: RegExp,
+ results: QueryResults
+ ): void {
+ for (const [message, , , logEventNum] of decodedEvents) {
+ const matchResult = message.match(queryRegex);
+ if (null === matchResult || "number" !== typeof matchResult.index) {
+ continue;
+ }
+
+ const pageNum = Math.ceil(logEventNum / this.#pageSize);
+ if (false === results.has(pageNum)) {
+ results.set(pageNum, []);
+ }
+
+ results.get(pageNum)?.push({
+ logEventNum: logEventNum,
+ message: message,
+ matchRange: [
+ matchResult.index,
+ matchResult.index + matchResult[0].length,
+ ],
+ });
+
+ this.#queryCount++;
+ if (this.#queryCount >= MAX_QUERY_RESULT_COUNT) {
+ break;
+ }
+ }
+ }
+
/**
* Queries a chunk of log events, sends the results, and schedules the next chunk query if more
* log events remain.
@@ -343,29 +383,7 @@ class LogFileManager {
return;
}
- for (const [message, , , logEventNum] of decodedEvents) {
- const matchResult = message.match(queryRegex);
- if (null === matchResult || "number" !== typeof matchResult.index) {
- continue;
- }
- const pageNum = Math.ceil(logEventNum / this.#pageSize);
- if (false === results.has(pageNum)) {
- results.set(pageNum, []);
- }
- results.get(pageNum)?.push({
- logEventNum: logEventNum,
- message: message,
- matchRange: [
- matchResult.index,
- (matchResult.index + matchResult[0].length),
- ],
- });
-
- this.#queryCount++;
- if (MAX_QUERY_RESULT_COUNT <= this.#queryCount) {
- break;
- }
- }
+ this.#processQueryDecodedEvents(decodedEvents, queryRegex, results);
// The query progress takes the maximum of the progress based on the number of events
// queried over total log events, and the number of results over the maximum result limit.
From fb1208020840b1e74dc45a373c4ca8b3fd4b4875 Mon Sep 17 00:00:00 2001
From: Henry8192 <50559854+Henry8192@users.noreply.github.com>
Date: Thu, 14 Nov 2024 15:07:15 -0500
Subject: [PATCH 22/24] fix lint
---
.../Sidebar/SidebarTabs/SearchTabPanel/Result.tsx | 3 ++-
.../Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/Result.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/Result.tsx
index e172f437..e3d0576b 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/Result.tsx
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/Result.tsx
@@ -21,7 +21,8 @@ const QUERY_RESULT_PREFIX_MAX_CHARACTERS = 20;
*
* @param props
* @param props.message
- * @param props.matchRange A two-element array [begin, end) representing the indices of the matching text range.
+ * @param props.matchRange A two-element array [begin, end) representing the indices of the matching
+ * text range.
* @param props.logEventNum
* @return
*/
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
index d75061f0..4fe35005 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
@@ -1,8 +1,8 @@
import {
+ memo,
useEffect,
useState,
} from "react";
-import React from "react";
import {
Accordion,
@@ -38,7 +38,7 @@ interface ResultsGroupProps {
* @param props.results
* @return
*/
-const ResultsGroup = React.memo(({
+const ResultsGroup = memo(({
isAllExpanded,
pageNum,
results,
From f71269efc9e98058cd1a767cd500addd9c3b48a8 Mon Sep 17 00:00:00 2001
From: Henry8192 <50559854+Henry8192@users.noreply.github.com>
Date: Fri, 15 Nov 2024 14:12:40 -0500
Subject: [PATCH 23/24] Update
src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---
.../Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
index 4fe35005..28e1ce4a 100644
--- a/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
+++ b/src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/ResultsGroup.tsx
@@ -1,4 +1,4 @@
-import {
+import React, {
memo,
useEffect,
useState,
From 8793d0b656d8d41a6394618d5f37ef52e61c2714 Mon Sep 17 00:00:00 2001
From: Junhao Liao
Date: Fri, 15 Nov 2024 14:44:50 -0500
Subject: [PATCH 24/24] Rename `DecodeResultType` -> `DecodeResult` as a result
of merging from `main`.
---
src/services/LogFileManager/index.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/services/LogFileManager/index.ts b/src/services/LogFileManager/index.ts
index 82c3ffbc..10566999 100644
--- a/src/services/LogFileManager/index.ts
+++ b/src/services/LogFileManager/index.ts
@@ -1,7 +1,7 @@
/* eslint max-lines: ["error", 450] */
import {
Decoder,
- DecodeResultType,
+ DecodeResult,
DecoderOptions,
} from "../../typings/decoders";
import {MAX_V8_STRING_LENGTH} from "../../typings/js";
@@ -323,7 +323,7 @@ class LogFileManager {
* @param results The map to store query results.
*/
#processQueryDecodedEvents (
- decodedEvents: DecodeResultType[],
+ decodedEvents: DecodeResult[],
queryRegex: RegExp,
results: QueryResults
): void {