Commit Graph
262 Commits
Author SHA1 Message Date
Bhargav 427ee1baf1 fix: 4021 logs page additional error information (#4029)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced `SanitizedHtmlRenderer` for improved and secure HTML
content rendering in search results.

- **Enhancements**
- Improved error handling in the application, including updated error
messages with "TraceID" for better tracking.
- Enhanced user experience by allowing users to view additional error
details during search failures.
- Simplified error output by removing detailed error information from
user interfaces.

- **Bug Fixes**
- Adjusted handling of notifications to more accurately reflect error
states, especially for rate limiting scenarios.

- **Chores**
- Modified dependency version for `rudder-sdk-js` to a specific version,
potentially impacting update capabilities.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-24 13:46:25 +05:30
Sai Nikhil fdd88944e2 fix: #4008 fixed string selection in sql mode (#4016)
in sql mode whenever user changes a stream name it should reflect in the
below drop down and respective schema.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
	- Enhanced stream handling within the logs search component.
- Improved management of selected streams, ensuring previous selections
do not persist.
	- Added asynchronous processing capabilities for stream data fetching.

- **Bug Fixes**
- Resolved issues with stream selection clarity by resetting selected
streams appropriately.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-22 14:15:43 +05:30
BhargavandNeha P 979f4ea6b6 feat: Npm package upgrade (#3984)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Updated error messaging in the Logs UI to provide clearer feedback to
users when search queries fail.

- **Chores**
- Improved element selection specificity in Playwright tests to ensure
interactions with the correct UI elements.
- Upgraded dependencies to the latest versions for improved performance,
security, and compatibility.
- Excluded unnecessary directories from TypeScript compilation to
enhance project specificity and efficiency.
- Refined time zone handling across components for better accuracy in
date and time displays.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Neha P <neha@openobserve.ai>
2024-07-22 13:54:34 +05:30
Bhargav 8f1af1a7b0 fix: Logs page histogram api duplicate call (#3998)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Bug Fixes**
- Improved reliability of histogram data loading by refining conditional
logic.
- Ensured `loadLogsData()` only runs when necessary, enhancing
performance and preventing unnecessary calls.

- **New Features**
- Enhanced control flow to check for query result hits before proceeding
with certain operations.

- **Tests**
- Introduced a delay in the UI test to improve the reliability of
visibility checks for error messages after refresh actions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-19 15:42:34 +05:30
ktx-abhay fe3c4459c1 fix: visualization css issues (#4002)
- `Add To Dashboard` pop up css issue.

![image](https://github.com/user-attachments/assets/b0a9a618-f501-415e-a09f-125603edd3a7)
- Confirmation dialog issue for logs visualize toggle button.
2024-07-18 12:42:22 +05:30
ktx-abhayandktx-vaidehi e02d476dde fix: visualization stream selection issue (#3993)
- #3980 
- #3843 
- Stream name change issue on chart type change for add panel.
- Validation on `add to dashboard` click.
- CSS issue while showing `errorList` in `addPanel` and `visualization`
page.
- Breakdown reset issue for pie and donut chart.
- Reset old rendered chart on toggle.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Disabled a section of code that previously updated a field stream
under certain conditions.

- **New Features**
- Added validation and error notifications when adding new panels to the
dashboard to enhance user feedback.

- **Style**
- Updated layout and styling attributes in the dashboard panel view for
improved visual consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
2024-07-17 12:12:40 +05:30
25bb19d846 feat: visualization for logs page (#3529)
- Visualize the logs data
- Save these visualizations to the dashboard

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced a new `SelectDashboardDropdown` component for selecting and
adding dashboards from a dropdown list.
- Added a `SelectTabDropdown` component for selecting and managing tabs
within a dashboard.

- **Enhancements**
- Added conditional rendering for folder selection in the `AddDashboard`
component.
- Improved handling and validation for `activeFolderId` and
`showFolderSelection` props.
- Enhanced `PanelSchemaRenderer` to handle null or undefined values more
gracefully.
- Updated various components to use dependency injection for
`dashboardPanelDataPageKey`.

- **Bug Fixes**
- Removed unnecessary `click()` actions in multiple UI test scripts to
streamline test flows.
- Fixed various selector and conditional rendering issues in UI
components for better stability and performance.

- **Refactor**
- Refactored `QueryEditor` to include a nullish check, improving
stability.
- Restructured `DashboardQueryEditor` for better maintainability and
clarity.
- Adjusted import statements and removed unused dependencies across
multiple components.

- **Style**
- Adjusted styles and button functionalities in `SearchBar` for a more
intuitive user experience.

- **Tests**
- Updated and streamlined Playwright tests to remove redundant actions
and improve efficiency.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
Co-authored-by: Neha P <neha@openobserve.ai>
2024-07-15 10:57:45 +05:30
BhargavandTaiming Liu 72aea59198 fix: sql function change with syntax guide (#3643)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced text snippet suggestions in the Query Editor with updated
labels and insert text.
- Introduced new functions for advanced search and matching operations
in the Query Editor.
  
- **Improvements**
- Improved search instructions for 'error' values in the Syntax Guide,
including clarifications on case sensitivity.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
2024-07-12 13:02:03 +05:30
Bhargav 71d6deaa88 fix: dark theme issue on role and group and logs page along with name… (#3914)
… validation on role and group page

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced validation for group names in "Add Group" to restrict
specific characters.
- Improved validation for role names in "Add Role" to allow only
alphanumeric and underscore characters.

- **Style**
- Updated layout and styling in "Add Group" and "Add Role" sections for
a more consistent and user-friendly interface.
  - Conditional styling in logs index to reflect the current theme.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-05 17:34:13 +05:30
Omkar KesarkhaneandBhargav a889569366 fix: logs time period in url was getting changed on refreshing page (#3885)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Improved search functionality with enhanced error handling and updated
date-based search parameters.

- **Style**
- Updated styles for `h5` and `h6` elements to refine font size, weight,
line height, letter spacing, and margins.

- **Tests**
- Enhanced UI tests to include additional timeouts and refined click
actions for improved test reliability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2024-07-03 18:17:48 +05:30
Omkar KesarkhaneandTaiming Liu 7eafb64d71 fix: added traces ids support in search requests (#3872)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced trace ID management with functions for adding, removing,
and generating trace contexts.
  - Added the ability to cancel running queries.

- **Enhancements**
- Integrated tracing functionality into search operations for improved
observability.
  - Updated CORS configuration to allow `traceparent` headers.

- **Debugging**
  - Added console logs for traceparent parameters in search functions.

- **Localization**
  - Added new localization key for "cancel" message in English.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
2024-07-02 07:02:30 -07:00
BhargavandNeha P 8c7f68647d fix: common field issue & search around for multistream (#3839)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Updated logic in log details to ensure specific elements display
correctly based on stream selection.

- **Tests**
- Improved test reliability by checking element disabled status instead
of performing multiple click actions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Neha P <neha@openobserve.ai>
2024-06-27 14:37:08 +05:30
Bhargavandoasisk c0152b82ce fix: less hour selected in absolute time shouldn't change to query range (#3825)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Improvements**
- Enhanced the date/time handling in the log search feature for more
accurate start time calculations.

- **Tests**
- Improved reliability of UI tests by forcefully clicking elements in
specific scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: oasisk <ashish.j.kolhe@gmail.com>
2024-06-25 22:53:51 +05:30
Bhargavandomkark06 d571c5b941 fix: greyed our run query button (#3788)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Implemented query range restrictions in the search functionality,
providing users with clear messages and tooltips on limits.
- Introduced handling for `function_error` responses in the logs,
improving error messaging.

- **Improvements**
- Enhanced date and time selection in the `DateTime` component with
better conditional disabling and tooltips.
- Updated user interface labels for clarity and consistency in the
English language file.

- **Configuration**
- Added a chunk size warning limit of 3000KB in the build configuration
to optimize the build process.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
2024-06-25 16:13:55 +05:30
Bhargav 4727e7bc43 fix: reset field list sequence while switching between UDS and all fi… (#3774)
…elds

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Resolved an issue where the `toggleSchema` function did not initialize
`selectedFieldsName` correctly, preventing unexpected behavior in
handling selected field names.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-20 12:19:26 +05:30
Bhargav 57496ea718 fix: Multi stream debug log (#3770)
- Removed debug log
- Removed duplicate interesting field for multistream

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Improvements**
- Enhanced handling of the `interestingFieldList` for better data
processing.
- Removed unnecessary `console.log` statements for cleaner console
output.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-19 21:54:59 +05:30
0b721732b8 fix: Relase multi stream search (#3709)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced multi-select stream functionality in UI, allowing users to
select and query multiple data streams simultaneously.
- Added new search functions to handle multiple streams of data and
provide aggregated search results.

- **Bug Fixes**
- Corrected UI test cases to improve selection and verification of
stream names.

- **Enhancements**
- Improved search functionalities and error handling within the logs
plugin interface.
  - Enhanced stream handling and validation in the search feature.

- **Tests**
- Added new Playwright test cases for stream multi-select functionality.
- Updated existing test cases to adapt to new multi-select stream logic.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Neha P <neha@openobserve.ai>
Co-authored-by: Neha P <144308844+neha00290@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
Co-authored-by: Subhradeep Chakraborty <chakrabortysubhradeep556@gmail.com>
2024-06-19 18:30:34 +05:30
Hengfei Yang e91634760a fix: inverted index report Offset overflow for BinaryArray (#3768)
it starts report this error after we upgrade to Datafusion 39, so this
PR made some changes about inverted index:

- Removed Datafusion operation and directly using RecordBatch operation
to generate invert index data.
- Removed `DEFAULT_INDEX_TRIM_CHARS` and using `ascii punctuation`.
- Set `ZO_INVERTED_INDEX_SPLIT_CHARS=""` default value to empty, then we
will using `ascii punctuation` to split token.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Added error handling in the trace service to return a `BadRequest`
response for invalid protobuf data.
- Introduced a public constant and type for file type identifier length
to improve clarity.

- **Improvements**
- Updated search functionality to use a more efficient tokenization
method.
- Refactored index generation and data processing logic for better
performance and maintainability.

- **Bug Fixes**
- Corrected error messages for unsupported `group by` operations in SQL
queries.
- Simplified and fixed validation logic in the search bar for custom
download ranges.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-19 13:36:15 +02:00
Bhargav 9116547590 fix: query converted to lowercase issue fix (#3766)
Resolve the issue where adding a search term value to the query filter
from the field list section converts the entire SQL query to lowercase.
This was causing problems with filter values that are not in lowercase.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced search functionality with improved query handling for more
precise results.

- **Refactor**
- Adjusted formatting and spacing for better readability and usability
in the search bar component.

- **Bug Fixes**
- Corrected parameter handling in search function calls to ensure proper
query execution.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-19 14:04:24 +05:30
BhargavandNeha P 3409c8ac73 fix: removed _timestamp and order by restriction from sql mode (#3620)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Improved handling and parsing of SQL queries for better performance
and reliability.
  - Simplified logic for timestamp handling and query parsing.

- **Bug Fixes**
- Fixed issues with error notifications related to SQL orderby and
timestamp requirements.

- **New Features**
- Added dynamic column addition to the result grid based on SQL mode and
selected fields.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Neha P <neha@openobserve.ai>
2024-06-04 11:08:04 +05:30
Ashish Kolheandktx-abhay 79fe002f60 feat: include search type in search calls (#3648)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced `searchType` attribute across various components to enhance
search functionality.
- Added support for different search event types like `UI`,
`Dashboards`, `Reports`, `Alerts`, `Values`, and `RUM`.

- **Bug Fixes**
- Improved search parameter handling in multiple components and API
calls.

- **Enhancements**
- Updated search-related functions to include `searchType` for more
precise search results.
- Enhanced dashboard and RUM views with new `searchType` attributes for
better data filtering.

- **Refactor**
- Standardized search functionality across different modules and
components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-06-03 14:14:54 +05:30
Bhargav 55203a5bd7 fix: removed trackhits from histogram query (#3655)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Temporarily disabled certain logging functionalities to improve
performance.
- Removed the `aggs` property from search results to streamline data
handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-31 22:25:20 +05:30
Bhargav 5b7da0297b fix: removed partition api while aggregation query (#3647)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Enhanced error handling in the log querying process to improve
stability.
- Adjusted height calculations in search results for better display
based on user settings.

- **Improvements**
  - Restructured query logic for better performance and accuracy.
- Improved processing of partitions and pagination for more efficient
data handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-31 18:58:47 +05:30
Bhargav 755c0eb225 fix: NaN issue on pagination message (#3632)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Fixed an issue where `totalCount` and `endCount` could be `NaN` by
setting them to 0 if they are `NaN`.

- **Improvements**
- Enhanced the `DateTime` component to initialize `startTime` and
`endTime` based on provided values or default to the current time with
adjustments.

- **Refactor**
- Simplified the `logs` plugin UI by removing the `<Suspense>` wrapper
around the `<search-bar>` component.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-30 16:37:15 +05:30
Bhargav d502edce96 fix: histogram error sql mode (#3608)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced SQL query manipulation and result processing in the logs
functionality.
  - Improved handling of aggregation flags in the logs.

- **Bug Fixes**
- Adjusted logic for calculating total query results to ensure accurate
data representation.

- **Tests**
- Added UI tests for resetting filters, refreshing the page, and
interacting with elements in SQL mode.

- **Chores**
- Commented out `loadLogsData()` function call in the logs module to
optimize performance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-29 16:23:27 +05:30
Omkar Kesarkhane ba10524050 fix: prefetching monaco editor (#3617)
Prefetched Monao Editor when user hover's over the left side menubar for
first time.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
  - Added functionality to expand the menu on mouseover.
  - Introduced script prefetching for improved performance.

- **Enhancements**
- Wrapped the `<search-bar>` component with `<Suspense>` for better
loading experience.

- **Configuration**
- Updated asset naming strategy to include versioning for specific
assets.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-29 14:29:06 +05:30
Omkar Kesarkhane 402d450321 chore: Frontend Optimization (#3532)
Lazy loaded packages
Lazy loaded Components
2024-05-24 21:02:06 +05:30
Taiming LiuandBhargav 70fde3ac67 fix: _value api missing "clusters" (#3580)
add the missing clusters parameters to _value api calls

---------

Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2024-05-23 12:14:29 -07:00
Bhargav 3ef35277c3 fix: added clusters along with regions on UI (#3566) 2024-05-22 18:50:57 +05:30
Bhargav f8a686ddb0 fix: user defined schema option on logs fields panel (#3519) 2024-05-21 13:58:42 +05:30
Bhargav fbbf30d91b fix: histogram not loading navigating from stream explorer page and a… (#3524)
…pply saved view
2024-05-15 10:43:07 -07:00
Bhargav 02c257e5c2 fix: logs count call split (#3456) 2024-05-11 15:58:12 +05:30
Bhargav 7418caea02 fix: saved view region issue (#3469) 2024-05-10 17:25:08 +05:30
Bhargav 01295c74e5 fix: saved view selection (#3466) 2024-05-10 15:17:29 +05:30
Bhargav 9280301f88 feat: region selection on logs page (#3446) 2024-05-10 13:25:32 +05:30
Bhargav ce0f21b73a fix: bundle split (#3410) 2024-05-09 18:46:48 +05:30
Omkar KesarkhaneandHengfei Yang dcf8eebecc fix: added missing test id's for pipeline UI (#3420)
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-05-08 11:25:01 +05:30
Bhargav 3c150752e4 fix: apply saved view error fix (#3350)
Fix for saved apply directly without navigating stream page.
2024-04-26 11:11:14 +05:30
BhargavandHengfei Yang c51e8bd84f fix: histogram pagination fix (#3339)
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-04-25 19:40:44 +08:00
Omkar KesarkhaneandBhargav 545e0bf6bc fix: Enabled histogram in sql mode for non aggregated queries (#3133)
**Problem**: 
Histogram was disabled in SQL mode.

**Solution**:
Enabled histogram in sql mode for only non aggregated queries

---------

Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2024-04-10 19:11:08 +05:30
Omkar Kesarkhane 6458726196 fix: Sanitized HTML Rendered with v-html (#3167) 2024-04-05 12:20:36 +05:30
Omkar Kesarkhane 5be80450de fix: stream names with hyphen (-) were not getting parsed correctly (#3126)
Stream names with hyphen (-) were not getting parsed correctly
2024-03-29 12:40:05 +05:30
Omkar Kesarkhane 6e47372cfe fix: saved view issues (#3112)
fix #3109
2024-03-27 19:37:07 +05:30
Bhargav 96a08ef31c fix: append condition (#3108) 2024-03-26 22:55:58 +05:30
Bhargav 001ed9b735 fix: Saved views (#3105) 2024-03-26 22:03:14 +05:30
Omkar Kesarkhane aabeb04254 fix: added order by _timestamp desc in logs query (#3103)
In sql mode, if query does not contains  " order by " it throws error.

Solution:
On switching to sql mode, by default added "order by _timestamp desc" in
logs query
2024-03-26 20:34:49 +05:30
Bhargav 8dca74b03e fix: added pagination in logs and stream page for schema field list (#3093) 2024-03-25 15:12:21 +05:30
Bhargav ea9adbb114 fix: deselect all field should replace * (#3085) 2024-03-23 15:20:18 +05:30
Bhargav 41603561c7 fix: Update IndexList.vue (#3083) 2024-03-23 15:00:28 +05:30
Bhargav b42f2708d2 fix: fixed custom logo spacing issue & add remove interesting field (#3082) 2024-03-23 13:23:14 +05:30