Commit Graph
1066 Commits
Author SHA1 Message Date
Omkar KesarkhaneandBhargav 304a0f7895 fix: UI fixes in alert list and DateTime selection (#4449)
fix #4427 

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

- **New Features**
- Introduced a new event handler for managing component state when
hiding.
	- Enhanced styling for the alert list component with a new CSS class.
- Added a new reactive variable for handling function error messages in
the TenstackTable component.

- **Improvements**
- Streamlined logic for setting absolute and relative time in the
DateTime component.
- Improved error handling and notifications for alert duplication in the
AlertList component.
	- Adjusted layout and spacing for better user interface consistency.
- Enhanced functionality to dynamically update start and end times based
on relative datetime selection.
- Improved robustness of the QueryEditor and SearchBar components with
optional chaining.
- Simplified loading strategy for the SearchBar and QueryEditor
components to enhance performance.

- **Bug Fixes**
- Refined handling of selected date and time to prevent unnecessary
overwriting of values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2024-09-04 14:43:44 +05:30
01d0582213 feat: AND, OR, group condition for dashboard filter (#3957)
## Feature:
- #4339 

## Fixes:
- #4233 
- #4239 
- #4306
- #4307
- #4311
- `<blank>` was not visible properly in the dropdown when the value is
null converted it to `<blank>`

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

## Summary by CodeRabbit

- **New Features**
- Introduced support for version 5 of the Dashboard, enhancing the
dashboard's extensibility.
- Added a new component for managing filter options, improving user
interaction with dashboard queries.
- Implemented a new user interface for adding conditions to dashboard
panels.

- **Bug Fixes**
	- Improved error handling in SQL query generation to prevent crashes.

- **Documentation**
- Updated localization files to include new entries for adding groups
and conditions.

- **Refactor**
- Streamlined filter management by creating dedicated components,
enhancing code maintainability.

- **Tests**
- Enhanced UI tests for improved interaction with dropdowns and filters.

- **Chores**
- Removed obsolete event listeners and variables to simplify component
logic.

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

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
Co-authored-by: ktx-akshay <akshay.patil@kiara.tech>
2024-09-03 14:15:15 +05:30
Frank Jakop 9afb82d19c style: improved german translations (#4341) 2024-09-02 23:23:21 +08:00
Ikko Eltociear Ashimine 0055b9b9f7 chore: update ChartRenderer.vue (#4369) 2024-09-02 23:02:18 +08:00
Abhay Padamani 7bbe192c01 fix: Dashboard abort partition api call issue (#4430)
- #4428 

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

- **New Features**
- Improved handling of query aborting for enhanced efficiency in
asynchronous operations.
  
- **Bug Fixes**
- Enhanced robustness of data conversion by implementing safer property
access methods, reducing runtime errors related to undefined or null
values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-02 12:20:04 +05:30
Omkar Kesarkhane 2652329baa fix: removed duplicated table columns (#4429)
#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 -->
2024-09-02 11:55:43 +05:30
Abhay Padamani 200bfac7a6 fix: share link issue for dashboard (#4425)
- #4422 

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

## Summary by CodeRabbit

- **New Features**
- Enhanced time-setting functionality by introducing conditional logic
to select between absolute and relative time settings based on user
input.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-02 10:13:39 +05:30
Omkar Kesarkhane c51d60e2e5 fix: table columns reordering issue (#4423)
fix #4424 

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


- **New Features**
- Introduced a new utility for reordering selected fields based on grid
column order, enhancing user experience when managing data fields.
- Improved drag-and-drop functionality for table columns, ensuring the
timestamp column is prioritized in the order.

- **Bug Fixes**
	- Enhanced error handling by streamlining logging processes.

- **Documentation**
- Updated component methods to clarify the use of new field management
logic.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-01 16:01:37 +05:30
Bhargav df0647709f fix: issue# 4408 edit icon replaced on function and enrichment table list page. (#4409)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Updated button icons in the Enrichment Table and Function List
components to reflect editing actions instead of transformation actions,
enhancing clarity for users.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-31 10:32:48 +05:30
Abhay Padamani 5c97f35096 fix: fill missing data for dashboard bar, stacked chart (#4412)
- #4414 
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Enhanced data loading efficiency in the dashboard, ensuring state is
reset before API calls.
- Expanded support for additional panel types, now including "bar" and
"stacked" in data processing.
- Broadened chart type support in the configuration panel, now
accommodating 'bar' and 'stacked' types.

- **Bug Fixes**
- Improved state management during data loading to prevent potential
inconsistencies.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-30 17:34:10 +05:30
Omkar Kesarkhane a24a330c62 fix: Updated table width on updating columns (#4407)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
	- Enhanced column width calculation for improved table layout.
- Conditional rendering of the view trace button based on available
trace options.
	- Dynamic management of default column visibility in search results.

- **Improvements**
	- Optimized data retrieval logic to reduce unnecessary fetching.
- Updated table component to allow dynamic control over column behavior
and sorting.
	- Enhanced responsiveness of the table to dynamic data changes.

- **Bug Fixes**
	- Cleaned up console logs for better maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-30 16:34:15 +05:30
Bhargavandomkark06 81397256a9 fix: table col rezing fix (#4406)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced log search functionality with improved handling of search
results and dynamic column width adjustments.
- Simplified JSON preview experience by removing the tabbed interface
for viewing JSON data.

- **Bug Fixes**
- Improved column size updates by preserving existing sizes during
adjustments in search results.

- **Performance Improvements**
- Optimized column size updates with debouncing to enhance
responsiveness.
- Adjusted row virtualization settings for better rendering performance.

- **Chores**
	- Updated naming conventions for consistency in local storage keys.

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

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
2024-08-30 13:41:35 +05:30
Sai Nikhil b29672f5c3 fix: Alert cloning issues clicking save button multiple times fixed (#4400)
This PR prevents clicking save button multiple times while cloning of
alert
In this also added loader while cloning alerts

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


- **New Features**
- Introduced a notification system to inform users about the form
submission process with a spinner and message.
- Enhanced form submission handling to prevent multiple submissions and
provide better user feedback.

- **Bug Fixes**
- Improved control flow during form submission to ensure users receive
appropriate notifications on success or failure.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-30 10:56:21 +05:30
Omkar Kesarkhane 1a152f61e5 fix: saved views columns not getting restored (#4401)
fix #4396 
1. Saved view columns not getting restored
2. Removed labels from Reset Filters and Syntax Guide buttons
3. Reduced table row height to 20px
4. Table column value getting copied as JSON

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

## Summary by CodeRabbit

- **New Features**
- Added a "Reset Filters" option to enhance user interface
functionality.
- **User Interface Improvements**
- Updated the search bar to use localized titles for better
internationalization.
- Enhanced the syntax guide button's tooltip presentation and improved
readability through formatting adjustments.
- Modified button styles for consistency and layout improvements in the
syntax guide.
- **Styling Changes**
- Adjusted table cell padding and height for a more compact layout in
the logs table.
- **Testing Enhancements**
- Improved UI testing robustness by updating the method for locating the
"Reset Filters" button.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 17:40:07 -07:00
Omkar Kesarkhane 7ae5cdc550 fix: Table does not gets rendered on applying saved view (#4398)
fix #4396 

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

- **New Features**
- Enhanced `SearchResult` component to handle undefined properties,
improving robustness.
- Introduced a new `highlightTimestamp` property in the `TenstackTable`
component for dynamic row highlighting based on timestamps.

- **Improvements**
- Updated column retrieval logic in `SearchResult` to filter out invalid
columns.
- Improved theme handling for the `TenstackTable`, ensuring visual
consistency with light and dark modes.
- Refined row expansion logic in `TenstackTable` for better code
organization and readability.

- **Bug Fixes**
- Implemented optional chaining in several components to prevent runtime
errors from undefined data.

- **Style**
- Adjusted styling for the `TenstackTable` to reflect theme changes in
the background color of resizers and highlighted rows.

- **Chores**
	- Minor formatting changes to improve code readability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 23:49:40 +05:30
Abhay Padamani f71659a318 fix: for dashboard max query range, use result cache ratio instead of cached ratio (#4399)
- #4383 

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


- **Improvements**
- Enhanced control flow for loading panel data, improving clarity and
readability.
- Renamed variables for better semantic understanding, specifically
changing `cacheRatio` to `resultCacheRatio`.
- Updated comments and documentation to reflect changes, aiding user
comprehension.
- Optimized handling of partitions by processing the array in reverse
order.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 18:50:01 +05:30
Abhay Padamani aa2b641b7b fix: wrong timeseries hover issue for dashboard (#4397)
- #4365 

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


- **New Features**
- Improved stability of chart interactions by ensuring the hovered
series name defaults to an empty string when not available.
- Enhanced user experience with updated event handling, renaming the
event listener from "downplay" to "highlight" for clearer interaction
feedback.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 18:12:55 +05:30
Abhay Padamani 81478a3e42 fix: allow to query upto given max_query_range for partition (#4395)
- #4383 

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

## Summary by CodeRabbit

- **New Features**
- Enhanced query handling for improved flexibility and robustness in
managing API responses.
- Added functionality to dynamically adjust query ranges based on API
results, providing clearer feedback to users.

- **Bug Fixes**
- Improved error handling related to query execution, ensuring users are
properly informed of any issues.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 17:20:19 +05:30
Omkar Kesarkhane 4c19bdf78c fix: updated alerts preview and query validation time-range to 2mins (#4392)
fixed #4389 
Make wrap columns false by default #4344 

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


- **New Features**
- Enhanced alert data retrieval to focus on the last 2 minutes instead
of the last 15 minutes.
- Improved refresh behavior for alerts, allowing for more frequent
updates based on a new timing threshold.

- **Bug Fixes**
- Enhanced error handling in log management to prevent runtime
exceptions when accessing potentially undefined properties.
- Improved robustness in local storage handling to ensure reliable value
assignments.

- **Refactor**
- Streamlined logic and data structures in various components for better
clarity and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 15:38:36 +05:30
Subhra264andSai Nikhil 3fb55578ca feat: add last_satisfied_at field in alerts (#4368)
The `last_satisfied_at` field in the alert tracks when the alert
condition last met. This is in UTC microseconds.
This PR fixes the issue in #4379 

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


## Summary by CodeRabbit

- **New Features**
- Introduced a new timestamp field to track when alerts were last
satisfied.
- Enhanced alert handling logic to manage and update satisfaction
timestamps effectively.
- Added a new column in the Alert List to display the last satisfied
timestamp for alerts.
- Improved localization support by adding a label for the last satisfied
timestamp.

- **Bug Fixes**
- Improved accuracy in alert state management by ensuring timestamps are
recorded correctly.

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

---------

Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
2024-08-29 15:06:08 +05:30
BhargavandSai Nikhil fe3111a34d fix: Alert cloning issues (#4386)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Enhanced alert cloning functionality with a structured dialog layout,
including a new back button and dynamic title display.
- Added validation checks for required fields in the alert cloning form
to prevent incomplete submissions.
- Introduced a new localization entry for the "Clone Alert" title,
improving user interface clarity.

- **Bug Fixes**
- Improved handling of the `max_query_range` setting to ensure it always
has a defined value, enhancing configuration robustness.

- **Style**
- Refined button styling and layout adjustments for a more cohesive user
experience in the alert cloning dialog.

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

---------

Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
2024-08-29 13:44:07 +05:30
Omkar Kesarkhane dff6d79aec fix: Restoring tables column ordering in saved views (#4385)
1. Restoring tables column ordering in saved views
2. Added barMinHeight for bar charts #4384 

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

## Summary by CodeRabbit

- **New Features**
- Enhanced the handling of timestamp columns in log data, improving
functionality based on selected fields.
- Introduced a new property for data representation to ensure minimum
height for bar elements in charts.

- **Bug Fixes**
- Streamlined column order management in search results to prevent
issues when saving and loading views.

- **Style**
- Improved layout and formatting of components for better readability
and visual alignment.

- **Chores**
- Minor cosmetic adjustments to code formatting for consistency and
maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 12:45:35 +05:30
Omkar Kesarkhane 3444b5b133 fix: Logs cancel query issue (#4375)
fix #4344 
1. Sometimes user has to click cancel query multiple times for the query
to get cancelled
2. Add Column and expand log, click on column header. Now when we expand
any row, it does not expands at desired
    position

Reverted the previous timestamp column functionality.


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


- **New Features**
- Introduced asynchronous loading for the QueryEditor component to
improve initial load times in the JsonPreview.
- Enhanced column order handling in SearchResult for more dynamic
adjustments based on default columns.

- **Bug Fixes**
- Added error handling in the getNestedJson function to improve
robustness against unexpected input.

- **Style**
- Updated the background color of the table resizer for better visual
consistency.

- **Chores**
- Disabled sorting functionality by default in the table component to
streamline user experience.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 11:18:29 +05:30
Bhargav 89b4b2e07e fix: Issue stream settings partition keys (#4373)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Enhanced array comparison functionality for improved performance and
clarity in the app.
  
- **Bug Fixes**
- Adjusted equality checks to exclude the "disabled" attribute, ensuring
more accurate comparisons.

- **Refactor**
- Streamlined the logic within the `useStreams` composable for better
maintainability and robustness.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 10:29:33 +05:30
Omkar Kesarkhane 795bb28252 fix: logs table timestamp column visibility issue (#4361)
fix #4344 
1. Source appears in wrap by default
2. On switching from saved views source disppears

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

- **New Features**
- Improved handling of log data and column order in various components,
enhancing performance and clarity.
- Added reactivity for column order updates in the TenstackTable
component.
	- Introduced a sidebar mode for the JSON preview, enhancing usability.

- **Bug Fixes**
- Enhanced robustness of state management in the SearchBar component to
prevent errors related to missing properties.

- **Style**
- Streamlined CSS for the IndexList component, improving readability
without altering visual behavior.

- **Refactor**
- Simplified logic in multiple components to improve maintainability and
efficiency by removing unnecessary checks and intermediate steps.
- Increased default column size for better visibility of displayed data.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-28 17:54:19 +05:30
Sai Nikhil 82c5276e80 fix: args of histogram( ) or any function to be added to interesting fields in quick mode (#4364)
This PR fixes #4363 
1. This fix adds the args of any function to interesting fields.
2. This fix also ensures that not only single arg but also able to add
multiple args to the interesting fields.

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

## Summary by CodeRabbit

- **New Features**
- Enhanced the search bar functionality to support a broader range of
expression types, improving the extraction of column names from function
expressions.
  
- **Style**
  - Minor formatting adjustments made for improved code clarity.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-28 15:55:15 +05:30
Sai Nikhil a238e706eb fix: Log related issues (#4348)
This PR fixes the following issues from #4344 
1. On reset, orderby timestamp appears in sql mode.
 2.loading text appears white in dark mode
3.Histogram should partially load when user cancels query mid way if
histogram has partially loaded but sometimes it displayed error message.

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


- **New Features**
- Enhanced search functionality with improved SQL query construction,
streamlining data retrieval.
- Dynamic styling in the table component for better visual adaptability
based on theme (dark/light).

- **Bug Fixes**
- Refined loading state management during histogram data retrieval to
improve user experience during operations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-28 11:50:21 +05:30
Sai Nikhil 010f47421a fix: Type errors issue in logs optimization (#4343)
1. This PR removes @ts-ignore at various places by introducing new
property called colSizes.
2. This PR also fixes the saved views reapplying multiple times issue.
3. This PR also solves the source disappearing after shifting saved
views.

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

## Summary by CodeRabbit

- **New Features**
- Enhanced handling of column sizes in the logs functionality for better
structure and reliability.
- Added conditional checks to improve the robustness of data assignments
in the search component.

- **Bug Fixes**
- Improved stability of the SearchBar component by ensuring that
necessary properties exist before assignments, reducing potential
runtime errors.
- Refined type safety and clarity in accessing column sizes in the
SearchResult component, mitigating risks of type-related issues.
- Introduced nuanced conditions for updating column order, enhancing
functionality and robustness.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-28 11:25:07 +05:30
BhargavandSubhradeep Chakraborty a5af316129 fix: issue #4326 User defined schema settings (#4350)
issue #4326 
  
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced new structures for updating stream settings, allowing for
more granular management of stream configurations.
- Added an asynchronous function for updating stream settings via HTTP
PUT requests.
- Implemented a new service route for handling updates to stream
settings.
  - Enhanced the `AddStream` component to retrieve updated settings.

- **Improvements**
- Improved schema management by tracking previous settings during
updates.
- Enhanced utility functions for comparing and managing stream settings.

- **Documentation**
- Updated documentation to reflect changes in API functionality for
creating and updating stream settings.

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

---------

Co-authored-by: Subhradeep Chakraborty <chakrabortysubhradeep556@gmail.com>
2024-08-27 20:52:26 +05:30
Sai Nikhil 8ef2a5c340 feat: added last triggered , owner , cloning in alerts page (#4336)
1.added last_triggered_at, owner , in both alerts page and reports page
2. cloning of alerts is introduced where user can clone alerts and have
a option to edit alertname , streamname, streamtype

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


- **New Features**
- Introduced a cloning feature for alerts, allowing users to duplicate
alerts directly from the alert list.
- Added new columns in the reports table for "owner" and "last triggered
at," enhancing data visibility.

- **Bug Fixes**
- Improved date formatting for the "last_triggered_at" column to ensure
accurate display.

- **Documentation**
- Updated English localization to include new terms related to alert
cloning and report attributes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-27 17:03:45 +05:30
Abhay Padamani edf8aeac86 chore: remove console logs from Dashboard and Logs page (#4280)
- remove unwanted `console.logs`

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


- **Bug Fixes**
- Removed unnecessary console log statements in various functions to
enhance performance and reduce clutter.

- **Refactor**
- Improved code readability by adding trailing commas in function
parameters and calls.

- **Chores**
- Cleaned up logging in the SearchBar component to streamline production
code.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-27 11:24:09 +05:30
Abhay Padamani 907455777f feat: dashboard partitions api call support (#4263)
- #4301 

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


- **New Features**
- Improved handling of histogram columns in the dashboard for enhanced
robustness.
- Added capabilities for dynamic modification of histogram intervals in
SQL queries.

- **Bug Fixes**
- Enhanced error handling during API calls and data loading processes to
ensure stability and prevent data persistence issues.

- **Refactor**
- Updated the data loading logic to process queries sequentially for
better control and performance.
- Implemented optional chaining in several areas to increase code
resilience against runtime errors.
- Enhanced reactivity of the component to handle updates in nested data
structures.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-27 10:48:55 +05:30
Omkar KesarkhaneandSai Nikhil bafbd205d4 feat: logs tables performance optimization (#4097)
fix #3973 
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Introduced a new dynamic table component for enhanced data display and
interaction.
- Added support for Tailwind CSS, improving styling capabilities across
the application.
- Implemented interactive controls for managing log entries in the data
table.

- **Improvements**
- Enhanced logging functionality with clearer error messaging, improved
content wrapping, and optimized selection of log fields based on user
input.
- Streamlined user interface in the JSON preview and search result
components for better usability and readability.
	- Improved performance and responsiveness of the search results table.
- Refined column visibility management in the search results, enhancing
user experience.

- **Bug Fixes**
- Updated column management logic in the search results for improved
robustness.
- Enhanced reliability of Playwright tests by refining timing and
interaction steps.

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

---------

Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
2024-08-26 16:59:43 +05:30
Omkar Kesarkhane e1172f2653 feat: Show unflattened preview of log in log details (#4324)
fix #4323 

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


- **New Features**
- Enhanced the Query Editor with code folding capabilities for JSON and
HTML languages.
- Introduced a tabbed view in the Json Preview component for better JSON
data representation, allowing users to switch between "flattened" and
"unflattened" views.

- **Improvements**
	- Automatic layout adjustment in the editor for improved usability.
- Enhanced localization support with new terms for better user interface
clarity.

- **Styling**
- Adjusted styles for the new tab component in the Json Preview to
ensure seamless integration with the layout.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-26 15:01:26 +05:30
Sai Nikhil 0c28b2c9bb fix: destination and templates 403 error issue fixed (#4327)
fix #4291 

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

## Summary by CodeRabbit

- **New Features**
- Added notifications to confirm successful deletion of destinations and
templates.
- **Bug Fixes**
- Updated error handling for deletion to check for a 409 error code
instead of 403, improving accuracy in error responses.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-26 13:56:04 +05:30
Omkar Kesarkhane 8d72af70a6 fix: improved query and VRL function validation in alerts (#4308)
fix #4305 #4304 #4315 

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

- **New Features**
- Enhanced error handling for SQL queries with specific error messages
for better user feedback.
- Introduced a section for VRL function errors with a toggle feature for
expanded details, improving clarity.
- Added a `debounceTime` property to optimize input processing in the
query editor.

- **Improvements**
- Streamlined error message display for SQL queries, moving from generic
to context-sensitive messages.
- Adjusted control flow to ensure proper validation before form
submission, preventing invalid entries.
- Improved notification messages for clarity, specifically regarding
search operations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-23 17:12:51 +05:30
ktx-vaidehi f60927f459 feat: Dashboard top N results (#4258)
- #4302
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced new configuration options for dashboard panels, including
settings for "Top Results" and an "Others" series to enhance data
visualization.
- Added an input field in the dashboard configuration panel for users to
specify the number of top values displayed.

- **Improvements**
- Enhanced data processing capabilities for SQL data, allowing better
aggregation and sorting of results.
- Streamlined the dashboard configuration flow for an improved user
experience.
- Improved error handling and logging in data processing to enhance
debugging and visibility.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-23 14:45:39 +05:30
Omkar Kesarkhane 7a8656dfc4 fix: Updated QueryEditor component to support languages (#3988)
fix #4292 
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new custom `QueryEditor` component for a more
customizable and consistent editing experience across various forms and
editors.
- Added support for a new programming language, VRL, including syntax
highlighting and theming.

- **Enhancements**
- Updated multiple components (`AddTemplate.vue`, `AddFunction.vue`,
`EditRole.vue`) to utilize the `QueryEditor` component, improving
editing functionality and user interface.
- Enhanced the `SearchBar.vue` component for better formatting and
language handling.

- **Bug Fixes**
- Adjusted the language attribute in the `SearchBar.vue` component from
"ruby" to "vrl" to ensure correct syntax highlighting.

- **Tests**
- Improved stability of the alerts test suite by adding a timeout after
user input actions.
- Added a timeout in the sanity test cases to enhance the reliability of
template submission.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-22 21:12:55 +05:30
Sai Nikhil 6112a2110d fix: #4226 fixed Select all columns condition failing (#4229)
in the data we get is_real_time as a string so I have compared with the
string so that it passes the check

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


- **Bug Fixes**
- Improved the condition checking for the `is_real_time` property during
alert submission, ensuring more accurate behavior when handling
real-time alerts.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-22 10:19:07 +05:30
Omkar Kesarkhane 609c2f7d55 fix: incorrect time range on refreshing page for time range restricted streams (#4278)
fix #4262 

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

- **New Features**
  - Improved handling of time zones and relative date calculations.
  - Added safeguards against exceeding user-defined date limits.

- **Bug Fixes**
- Enhanced logic for computing relative periods based on user-defined
restrictions.
  - Refined handling of various time periods to prevent invalid options.

- **Style**
- Minor formatting adjustments for improved readability and
maintainability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-21 17:26:54 +05:30
Bhargav 48cca9ce7a fix: issue #4266 histogram bar issue (#4276)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Improved performance and data consistency in histogram data processing
by optimizing the execution of timeout functions based on the number of
partitions.
- **Bug Fixes**
- Ensured that histogram data is generated before pagination is
refreshed for enhanced data accuracy.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-21 16:59:44 +05:30
Sai Nikhil 89baf86709 fix: #4264 pagination and total events disappears when histogram error (#4275)
This PR Fixes the issue #4264 

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


- **Bug Fixes**
- Improved the visual presentation of error messages in the search
results by enhancing spacing.
  
This change enhances user experience by making error messages more
visually distinct and easier to read.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-21 16:35:21 +05:30
Sai Nikhilandktx-vaidehi 3626b98e00 fix: Added currency list in config of dashboard (#4237)
1.added 5 currency list in config 
2.added format for the currency to display  unit and then value


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


- **New Features**
- Added six new currency options (US Dollar, Euro, British Pound,
Japanese Yen, Indian Rupees) to the dashboard configuration panel.
	- Enhanced localization support with new currency labels in English.
- Improved currency formatting capabilities for better usability in
displaying financial data.

- **Bug Fixes**
- Resolved issues with displaying currency symbols correctly, ensuring
accurate representation in the app.

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

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
2024-08-20 17:41:11 +05:30
Omkar Kesarkhaneandktx-abhay 6d07e0cec1 fix: Dashboard panel tooltip improvements (#4223)
- #4257 

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


- **New Features**
- Introduced a `useWorker` function for improved management of web
workers, enhancing performance for heavy computations.

- **Improvements**
- Refactored variable declarations in the `convertSQLData` function to
enhance clarity and immutability.
- Enhanced tooltip handling and sorting logic for a more intuitive user
experience in both `convertSQLData` and `convertPromQLData` functions.
- Improved display of series data in tooltips to highlight the hovered
series effectively.

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

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-08-20 10:36:05 +05:30
Omkar Kesarkhane 904dda4604 fix: Restricted selection of _timestamp and _all fields as defined schema in stream settings (#4252)
fix #4242 

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

## Summary by CodeRabbit

- **Style**
- Improved code readability by adding trailing commas in various array
and function argument lists throughout the `schema.vue` component.
- Enhanced consistency in properties and method calls, reducing diff
noise for future modifications.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-19 15:39:28 +05:30
Abhay PadamaniandKirtan Thakkar 541dfcafb0 fix: dashboard edit panel two times api call issue (#4224)
- #4227 
- #4228 

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

## Summary by CodeRabbit

- **New Features**
- Introduced debounce functionality for panel data loading, improving
performance during rapid updates.
- Enhanced state management in the Add Panel component to ensure
accurate initialization of updated variables.

- **Bug Fixes**
- Fixed the logic in the Add Panel component to correctly handle
variable updates, ensuring proper behavior during user interactions.

- **Documentation**
- Added logging statements for better visibility into execution flow
related to data loading processes.

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

---------

Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
2024-08-16 15:28:14 +05:30
Bhargav 2b458940dd fix: histogram partial loading (#4212)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Bug Fixes**
- Improved error handling for histogram data fetching, providing clearer
feedback when search operations are canceled.
- Streamlined the conditions under which error messages are assigned,
enhancing clarity and preventing unnecessary error notifications.

- **Refactor**
- Optimized the structure of error handling logic for better readability
and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-16 14:55:16 +05:30
Adam Gardner dec66d405a chore: wording change "logs" to "data" (#4187) 2024-08-16 11:50:14 +08:00
Neha Pandomkark06 701e0b640a test: assert timestamp and all displayed in fields when uds enabled (#4208)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Tests**
- Enhanced test coverage for schema functionalities, adding interactions
for log search and schema selection.
- Improved verification of `_timestamp` and `_all` fields to ensure
thorough validation of the schema selection process.
- Streamlined logging process by removing unnecessary console logging
during test execution.

- **Style**
- Improved formatting and readability in the `IndexList` component,
including adjustments to multiline expressions and conditional
renderings.
- Enhanced semantic clarity by restructuring template elements for
better organization and styling.

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

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
2024-08-14 18:19:32 +05:30
Sai Nikhil e8dd2e8961 fix: timestamp not adding to result grid for user defined schema (#4207)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Enhanced flexibility in search data handling by dynamically checking
for the presence of a timestamp field in user-defined schemas. This
improvement allows the system to accurately reflect available data
fields, improving overall functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-14 16:49:20 +05:30