Commit Graph
1274 Commits
Author SHA1 Message Date
Omkar Kesarkhane 24551266b1 fix: fixed x-axis type for trellis chart (#5641)
#5638 

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

- **Bug Fixes**
	- Improved error handling in dashboard configuration.
	- Enhanced x-axis type configuration for trellis layouts.
- Refined chart configuration to handle scenarios with no series data
more gracefully.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-09 20:12:33 +05:30
Omkar Kesarkhane 4ad642ad99 fix: Bar Chart not rendering as expected when breakdown is present (#5624)
#5597 

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

- **Bug Fixes**
- Improved label retrieval process to handle cases with undefined axis
keys.
  - Enhanced series generation logic for bar and horizontal bar charts.

These updates ensure a more reliable experience when processing chart
configurations in the dashboard.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-09 12:07:56 +05:30
Omkar Kesarkhane 6a114d65ba fix: added notification on cancelling query (#5619)
#5617 

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

## Summary by CodeRabbit

- **Bug Fixes**
- Improved search operation cancellation by adding user notifications
when a search is canceled.

- **User Experience**
- Enhanced feedback mechanisms for search and histogram query
cancellations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-08 15:42:13 +05:30
ktx-vaidehi 472a78e74e fix: dashboard maps data based on map json data (#5596)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Data Updates**
	- Enhanced country list with new entries and abbreviated names
- Refined country name representations for improved clarity and
consistency
	- Updated list of countries with more standardized naming conventions

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-06 18:30:31 +05:30
Sai Nikhil ca3e7b706a fix: only 1 source node is allowed while creating / editing pipeline (#5593) 2025-01-06 19:11:45 +08:00
Sai Nikhil fc79499043 fix: Stream settings page design issues (#5595)
This PR fixes some minor issues related to design of stream settings
page
1. reduced some spacing in add fields popup and also maintained styling
of add fields button same as whole application
2. time at the top to be splitted to start and end time for better
readability

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

## Summary by CodeRabbit

- **UI/UX Improvements**
	- Refined styling for stream field inputs and schema components
	- Updated button and div styling for better visual presentation
	- Added labels for start and end times to improve clarity
	- Adjusted layout and spacing of components for enhanced readability

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-06 16:21:30 +05:30
Sai Nikhil 73663fb0a3 feat: Feat/extended retention days (#5539)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced date-time selection component with new props for visibility
and functionality.
	- Added a tabbed interface for schema settings and extended retention.
- Introduced new date retention management options with improved
validation and user interaction.
- Improved localization with new confirmation and date-related messages.

- **Bug Fixes**
	- Refined date selection logic and validation.
	- Added user confirmation for date deletion.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-06 09:44:47 +05:30
Omkar Kesarkhane a2dd9e8c53 fix: added confirmation before unloading add function page (#5572)
#5514 

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

## Summary by CodeRabbit

- **New Features**
- Added unsaved changes confirmation when navigating away from the
function creation page.
- Implemented route guard to prevent accidental navigation with unsaved
changes.
- Enhanced styling of error message tooltips for SQL query and events
errors.

- **Bug Fixes**
  - Improved error handling during function submission.
  - Enhanced save button functionality in functions toolbar.
  - Prevented function submission with an empty function name.

- **User Experience**
- Added more robust feedback mechanisms for saving and navigating
functions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-03 18:28:27 +05:30
Abhay Padamani 9e10b6fdff fix: tooltip issue for billing page usage chart (#5573)
- Tooltip issue with multiple series.

![image](https://github.com/user-attachments/assets/57560783-cb66-4259-b035-d03e015f224c)
2025-01-03 17:33:01 +05:30
c32c9dac7b feat: functions UI design revamp (#5549)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Added a new function testing capability for VRL (Variable Runtime
Language) functions.
- Introduced interactive UI components for testing and managing
functions, including `FunctionsToolbar`, `TestFunction`, and
`FullViewContainer`.
  - New API endpoint for testing VRL functions against a set of events.
  - Added new localization strings for user interface elements.

- **Improvements**
- Refined UI components for better user experience, including sidebar
management and editor functionalities.
- Enhanced function management with improved error handling and
validation.
- Improved code structure and maintainability across multiple
components.

- **Bug Fixes**
  - Addressed various minor formatting and syntax issues.
  - Improved error handling in function testing and management.

- **Enhancements**
- Updated the `QueryEditor` component for improved formatting and error
diagnostics.
- Enhanced Playwright tests for better targeting and reliability in
function management scenarios.
- Improved layout and responsiveness of several components, including
`AssociateFunction` and `ScheduledAlert`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: udev <uddhavdave1@gmail.com>
Co-authored-by: udev <uddhav@openobserve.ai>
2025-01-03 15:24:59 +05:30
ktx-vaidehi 5f4d541200 fix: dashboard drilldown to logs support histogram issue when passing to url (#5567)
- #5531

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

## Summary by CodeRabbit

- **Bug Fixes**
- Updated log display configuration to modify histogram visibility in
panel schema rendering.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-03 14:12:25 +05:30
Sai Nikhil 7f6cb505ac fix: function image in search bar (#5565)
This PR solves #5551 

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

- **New Features**
	- Enhanced theme-based icon management in the search bar
	- Dynamically updated icons based on application theme

- **Improvements**
	- Improved maintainability of icon path handling
	- Centralized icon selection logic for better code readability
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-03 11:49:49 +05:30
ktx-vaidehi 0877098270 fix: dashboard when changing org it throws error as dashboardID is not found (#5556)
- #5531
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **Bug Fixes**
- Improved dashboard retrieval logic to handle cases with missing or
invalid dashboard identifiers.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-03 10:58:54 +05:30
Omkar KesarkhaneandLoakesh Indiran 4af2162c2e fix: WebSocket search issues (#5547)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
  - Enhanced search functionality with improved WebSocket communication.
  - Added support for managing multiple concurrent search requests.
  - Improved error handling and tracking for search operations.

- **Refactor**
- Restructured log search composable for better modularity and
flexibility.
- Updated search response handling to support pagination and data
refresh.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Loakesh Indiran <66478092+Loaki07@users.noreply.github.com>
2025-01-02 09:23:31 -08:00
ktx-vaidehi 3f2d63b79e fix: dashboard drilldown support to logs page, getting ` and query of unions not getting passed properly (#5525)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
	- Improved SQL query generation logic for drilldown functionality
	- Enhanced query construction to handle table aliases more effectively
	- Sanitized query strings by replacing backticks with double quotes

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-01 18:34:07 +05:30
ktx-vaidehi e75471562e fix: Dashboard panel height resize issue of concurrent changes error message (#5524)
- #5523

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

- **New Features**
- Enhanced error handling with optional chaining in dashboard data
loading.
- Introduced a new function to retrieve and store dashboard data more
efficiently.
	- Improved dashboard data management logic.

- **Refactor**
	- Streamlined dashboard data fetching and storage process.
- Consolidated dashboard data retrieval logic into a single, reusable
function.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-01 16:03:30 +05:30
1a15c45e0e feat: websocket search & result_cache_v2 (#4966)
# Objectives:
1. Stream results to the client using web-socket.
2. Cache results for a query as a single result cache.

## New Endpoint:
```sh
/api/{org_id}/ws/{req_id}
```

## WS Design:
1. The request_id is used to handle the sessions `pub static
WS_SESSIONS: Lazy<RwHashMap<String, WsSession>> =
Lazy::new(DashMap::default);`.
2. The request_id is removed from the session cache and the web-socket
is disconnected once single search is complete. (e.g. for 5 dashboards
in a single page, 5 individual requests are made). The design choice is
discussed [here](https://github.com/openobserve/walmart1/issues/207).
3. The supported events and responses the web-socket are described
below.
4. Auditing for web-socket linked
[here](https://github.com/openobserve/o2-enterprise/pull/248)
5. Org level setting to enable and disable web-socket communication.
(Default: disabled)

![image](https://github.com/user-attachments/assets/885d52d5-0e96-4068-9463-b85a51fd1110)

## New Env:
```sh
ZO_WEBSOCKET_ENABLED=true
```

## Env to be enabled:
```sh
ZO_USE_MULTIPLE_RESULT_CACHE=true
ZO_RESULT_CACHE_ENABLED=true
```
- If `ZO_RESULT_CACHE_ENABLED` is set to `false` which is default.
Results cache will not be written.

## Nginx config:
```yaml
nginx.ingress.kubernetes.io/proxy-http-version: "1.1" # Enable HTTP/1.1 for WebSockets
nginx.ingress.kubernetes.io/enable-websocket: "true"
nginx.ingress.kubernetes.io/proxy-set-headers: |
        Upgrade $http_upgrade;
        Connection "Upgrade";
```
## Note: Disable `keep-alive` settings if present
```yaml
# nginx.ingress.kubernetes.io/connection-proxy-header: keep-alive
```

## Client Behavior before this pr:
1. For a single query, client calls the `_search_partition` api which
returns the list of partitions `Vec<[start_time, end_time]>` -> then
makes a `_search` api call for each of the partition.
2. The client also handles the logic for `max_query_range` for the
stream.
3. Handle the logic for dashboards loading from right to left
irrespective of `order_by` but honors the result by `order_by`

## New Behavior:
1. Client makes a web socket request with a request_id (uuid). This
req_id is stored in-memory cache along with its session object.
2. Server Search
    - STEP 1: Search result cache
    - STEP 1(a): Handle the cache responses & query the deltas
    - STEP 2: Search without cache if no caches found
    - STEP 3: Write to result cache
6. Server will now handle querying the partitions and then calling
search for each.
7. The results are streamed as in when the responses are received.
8. Server will handle the logic for dashboards loading from right to
left irrespective of `order_by` but honors the result by `order_by`

## Modified Code:
1. The `search` service will now use `write_results_v2` when writing to
cache.
2. The main difference between `write_results` and `write_results_v2` is
the strategy for deduplication. In `write_results_v2` we remove all the
hits within the same Date, Hour, Minute and Second; before writing to
cache.
```rust
/// # Caching Strategy
/// 1. **Select Hit for Deduplication**:
///    - Selects either the first or last record based on the `is_descending` flag.
///      - `is_descending = true`: Selects the last record.
///      - `is_descending = false`: Selects the first record.
///
/// 2. **Remove All Hits Within the Same Date, Hour, Minute, and Second for Deduplication**:
///    - Identifies the timestamp of the hit to remove (based on the `is_descending` flag, either
///      the first or the last record is chosen).
///    - Removes all hits that match the exact same date, hour, minute, and second
///      (`YYYY-MM-DDTHH:MM:SS`) as the identified hit.
///      - Example: If the timestamp to remove is `2024-12-06T04:15:30`, only hits with the exact
///        timestamp `2024-12-06T04:15:30` are removed, while others with different seconds (e.g.,
///        `2024-12-06T04:15:29` or `2024-12-06T04:15:31`) are retained.
``` 

## Web-socket Events:
1. Search
```sh
{
    "type": "search",
    "content": {
        "trace_id": "d56755eb02cf47ecb3064ee096735c4a",
        "payload": {
            "query": {
                "sql": "select histogram(_timestamp, '1 hour') AS zo_sql_key, count(*) AS zo_sql_num from \"olympics\"  GROUP BY zo_sql_key ORDER BY zo_sql_key",
                "start_time": 1733499294217000,
                "end_time": 1734708894217000,
                "size": -1,
                "query_fn": "LmFiYywgZXJyID0gZ2V0X2VucmljaG1lbnRfdGFibGVfcmVjb3JkKCJvbHltcGljcyIsCnsKICAicmFuayI6IHRvX3N0cmluZyEoLnJhbmspCn0pCi5yYW5rX2tleXdvcmQgPSAuYWJjLmtleXdvcmQKLg..",
                "sql_mode": "full"
            }
        },
        "stream_type": "enrichment_tables",
        "search_type": "ui",
        "use_cache": true
    }
}
```
2. Cancel
```sh
{
    "type": "cancel",
    "content": {
        "trace_id": "b221bb019f3742e8bd93f817d530ef70"
    }
}
```


Related Issues:  #5173, #5188, #5266, #5320

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

## Release Notes

- **New Features**
	- Introduced WebSocket search functionality with a toggle in settings.
- Added support for real-time data retrieval via WebSocket in various
components.
- Enhanced search operations with new methods for handling WebSocket
queries.
- Added new properties and methods to improve handling of WebSocket
sessions and requests.
- New interface for search request payloads and improvements in query
handling.
- Implemented WebSocket proxy handling for improved connection
management.
- Enhanced caching functionality with new methods for managing cached
responses.
- Introduced optional field for enabling WebSocket search in
organization settings.
- Added a new constant for handling partial error responses in search
operations.
	- Added a new configuration option for enabling WebSocket support.
- Updated package version and various dependency versions to enhance
stability.

- **Bug Fixes**
- Improved error handling and logging for search requests and caching
mechanisms.
	- Enhanced validation and URL construction for alerts.

- **Documentation**
- Updated comments and documentation for clarity on new features and
changes.

- **Style**
- Minor formatting adjustments for consistency across components and
services.

- **Chores**
	- Updated dependency versions to enhance stability and performance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
Co-authored-by: oasisk <ashish.j.kolhe@gmail.com>
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
Co-authored-by: hengfei yang <hengfei.yang@gmail.com>
2024-12-30 10:06:05 +05:30
Abhay Padamani b038efb68b fix: metric chart issue for promql query (#5483)
- #5482 
- for metrics page, default chart type as `line` chart.


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

## Summary by CodeRabbit

- **New Features**
	- Default chart type for the metrics dashboard is now set to "line".
	- Enhanced font size calculations for chart labels and tooltips.
- **Bug Fixes**
- Tooltip configuration updated to reflect the first value of the metric
for improved accuracy.
- **Refactor**
- Consolidation of font size calculation functions for better
performance and functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-27 17:30:02 +05:30
Abhay Padamani 7fa931a1de fix: on edit panel, query reset issue (#5460)
- #5449 

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

## Summary by CodeRabbit

- **New Features**
	- Enhanced type safety for the dashboard panel data handling.
- Improved logic to prevent unintended query resets when switching to
the metrics page.

- **Bug Fixes**
- Adjusted control flow to ensure original queries are preserved in edit
mode under specific conditions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-26 12:19:41 +05:30
Omkar Kesarkhane 33ebc79c35 fix: logs-traces correlation UI issues (#5447)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced trace stream handling with a new "View Trace" button that
appears based on available data.
	- Added functionality to redirect to trace details from search results.

- **Bug Fixes**
	- Improved loading state management for trace streams.

- **Documentation**
- Updated event emissions and method declarations for clarity and
maintainability.

- **Style**
	- Cosmetic changes to improve code readability in various components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-25 10:28:50 +05:30
Bhargav 5641f56b13 fix: changed label (#5444)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Updated terminology in the user interface from "Documents" to
"Records" for improved clarity.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-24 18:25:47 +05:30
Sai Nikhil b8dadbc3ba fix: pipeline play pause issue (#5440)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Improved the logic for toggling the alert state of pipelines, ensuring
correct state updates.
- Enhanced user notifications for success or failure based on service
responses.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-24 09:41:18 +05:30
Bhargav bcee7d419d fix: removed size from aggregation search api call (#5434)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Improved logic for retrieving all records in SQL queries with
aggregation or group by clauses.
	- Enhanced error handling in summary data retrieval.

- **Style**
	- Adjusted width of the `.q-w-sm` CSS class from `300px` to `360px`.
- Reduced width of the `my-card-wide` class from `90vw` to `88.6vw` in
the HomeView component.

- **Documentation**
- Updated comments for better clarity on the pagination logic and
handling of SQL queries.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-23 18:40:51 +05:30
Bhargavandhengfei yang 5e1e781a02 feat: add total document count to home page (#5433)
impl #4281

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

## Release Notes

- **New Features**
- Enhanced organizational metrics with total counts for functions and
dashboards.
  - Added new utility functions for formatting numerical data.

- **Bug Fixes**
- Improved display logic for stream and document counts in the user
interface.

- **Documentation**
  - Updated localization keys for clarity and added new summary labels.

- **Refactor**
- Restructured summary data generation for better clarity and
organization.

- **Style**
  - Increased width of certain layout elements for improved visibility.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: hengfei yang <hengfei.yang@gmail.com>
2024-12-23 16:08:00 +05:30
BhargavandHengfei Yang aaa2db6732 feat: additional values for index size and docs count added (#5423)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added labels for "Index Size", "Docs Count", "Function", "Pipeline",
"Pipelines & Functions", "Alerts", and "Dashboards" in the home section.
- Enhanced the home view to display additional metrics: Index Size,
Document Count, Dashboard Count, and Pipelines alongside existing data.
- Introduced new summaries for pipelines, alerts, and dashboards in
organizational data.

- **Bug Fixes**
- Improved layout and styling for better data presentation in the home
view.
- Updated validation logic for the home page to reflect new label
changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-12-23 13:45:44 +05:30
Omkar Kesarkhane f7c8b4ccb2 fix: series building logic for bar type charts with breakdown field (#5430)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced series data generation for bar and horizontal bar charts,
ensuring more accurate visualizations when breakdown keys are present.

- **Bug Fixes**
- Improved logic for handling series data, ensuring correct series
objects are returned for specified chart types.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-23 12:24:43 +05:30
Bhargav 0cbeebd7fc fix: table refresh issue. (#5414)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced management of enrichment tables with the addition of a method
to reset stream types.
- **Bug Fixes**
- Improved error handling for fetching and deleting lookup tables,
ensuring only relevant errors trigger notifications.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-20 18:07:13 +05:30
ktx-vaidehiandKirtan Thakkar 5c2857ff86 feat: on click of refresh button or apply button only apply variables (#5077)
- #4885 

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

- **New Features**
- Enhanced refresh button functionality in dashboard panels, providing
visual feedback when variable data changes.
- Introduced a new utility function to check if variables are fully
loaded before updates.
- Added computed properties and event emissions to improve user
interaction and responsiveness to variable updates.
- Improved error handling and logging in dashboard components for better
user visibility.
- Introduced new methods for handling user interactions in variable
selection components.

- **Bug Fixes**
- Improved test case flows for dashboard settings and variable settings,
ensuring smoother interactions in automated tests.

- **Documentation**
- Updated tooltips and button states for better user guidance regarding
variable changes.

- **Chores**
- Streamlined test cases by removing redundant steps, enhancing clarity
and efficiency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
2024-12-19 23:57:48 +05:30
ktx-vaidehi 7f301b3acf feat: logs support on dashboard drilldown (#5249)
- #5194

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

- **New Features**
- Introduced new logging options in drilldown functionality, allowing
users to select between "Auto" and "Custom" logs modes.
  - Added a new query editor for custom log queries.
- Enhanced drilldown navigation to logs with improved error handling and
logging.
- Added optional fields for logging configurations in the drilldown data
structure.
- Improved responsiveness of the dashboard component with new computed
properties and watch functions.

- **Bug Fixes**
- Improved validation logic for drilldown forms to accommodate new
logging options.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-19 23:09:10 +05:30
Abhay Padamani e0cc7c0ed6 fix: metrics page changes (#5409)
- #5193 


![image](https://github.com/user-attachments/assets/cd6f4a46-11e7-4e1e-b38a-b1c6bd58286f)



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

## Summary by CodeRabbit

- **New Features**
	- Introduced PromQL mode handling in the dashboard panel.
- Enhanced metrics page layout with new components:
DateTimePickerDashboard, AutoRefreshInterval, ChartSelection,
CustomHTMLEditor, CustomMarkdownEditor, DashboardQueryBuilder,
DashboardErrorsComponent, PanelSchemaRenderer, PanelSidebar,
RelativeTime, and QueryInspector.
	- Added localization support for metrics in the search context.

- **Bug Fixes**
- Improved error handling for loading stream fields and validating panel
configurations.
- Stream type selection visibility now adapts based on dashboard panel
data type.
- Enhanced user interaction by simulating keyboard input for
organization selection.
	- Reduced validation requirements for the metrics page.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-19 18:46:47 +05:30
ktx-vaidehi 7dd3586882 feat: change api call to get dashboard data and listing of data (#5354)
- #5196

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

## Summary by CodeRabbit

- **New Features**
- Enhanced dashboard data fetching and error handling for improved user
experience.
- Introduced a new reactive variable to manage the fetched dashboards
more effectively.
	- Added a new method for retrieving dashboard data by ID.
	- Improved form validation for drilldown operations.
  
- **Bug Fixes**
- Enhanced error handling logic to display appropriate messages based on
dashboard data retrieval conditions.
  
- **Chores**
- Refactored various functions for better maintainability and clarity in
dashboard management.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-19 18:16:41 +05:30
Sai Nikhil 16fb8eb3a4 fix: Duplicate Entries in streams page (#5404)
This PR fixes the #5400 
both sorting issues and duplicate entries being created are solved 

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

- **New Features**
- Enhanced row identification in the LogStream table with a dynamic key
generation method.

- **Bug Fixes**
- Improved handling of row selection and updates in the LogStream
component.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-18 16:23:51 +05:30
Sai Nikhil 4379cd7c56 fix: 403 double popups issue (#5376)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added `data-test` attributes to various components for improved
testability.
- **Bug Fixes**
- Enhanced error handling logic to suppress notifications for 403 status
responses across multiple components, improving user experience during
error scenarios.
- **Chores**
- Minor formatting adjustments and code structure refinements for
clarity in several components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-18 14:45:18 +05:30
Omkar Kesarkhane f57df5e018 feat: trellis chart (#5015)
#4871 
#5127  

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

## Summary by CodeRabbit

- **New Features**
	- Introduced a new "sankey" chart type in the chart selection.
- Added a configuration section for trellis layouts in dashboard panel
settings.
	- Enhanced error handling and data validation for various panel types.
	- New utility function `deepCopy` for creating deep copies of objects.
	- Enhanced grid management capabilities for trellis layouts.
	- Improved rendering logic for charts and dynamic height adjustments.
- Introduced new computed properties for dynamic chart panel height and
trellis configuration.
- New parameter `chartPanelStyle` added for enhanced customization in
data conversion.
- Improved handling of no data scenarios for metric and heatmap panel
types.
	- Added new localization keys for layout and dashboard settings.

- **Bug Fixes**
- Improved error messages for dashboard retrieval and data validation
logic.

- **Documentation**
	- Expanded localization options for layout and dashboard settings.

- **Chores**
	- Minor formatting and consistency improvements across multiple files.
	- Added trailing commas for improved code consistency in various files.
	- Updated import paths to reflect codebase restructuring.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-17 11:42:35 +05:30
Sai Nikhil f62ff31806 fix: create destination button in add alert (#5338)
This PR fixes the #5323 issue that is related to adding create
destination button in add alert page

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

- **New Features**
- Added buttons for refreshing and creating destinations in the alert
creation interface.
- Introduced a new event for refreshing destinations and a method to
navigate to the destination creation page.

- **Improvements**
- Enhanced filtering logic for destinations and refined validation for
the alert form.
- Improved error handling for asynchronous operations in the alert
management system.
	- Streamlined the filtering process in the destination list.
- Implemented lifecycle hook to ensure route updates on component mount.

- **Bug Fixes**
- Adjusted layout and styling for better usability and consistency
across components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-17 11:08:41 +05:30
Bhargav 6ee5a54d0b fix: values api for single stream selection filter context (#5372)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced log display functionality with improved query context
handling for multiple streams.
- Improved error handling for filter validity when selecting multiple
streams.
	- Adjusted pagination logic for accurate total fields display.
- Added new buttons and toggles in the search bar for better control
over query results.
- Introduced confirmation dialog for switching between visualization and
log modes.

- **Bug Fixes**
- Refined logic for updating field values to ensure correct aggregation
and display.
	- Enhanced error handling for download attempts in the search bar.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-16 16:15:48 +05:30
Omkar Kesarkhane f85220fcdd fix: Removed multiple registrations of autocomplete suggestions in Query Editor (#5369)
#5370 
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **Bug Fixes**
- Improved error handling for the Monaco editor's element retrieval
process.
- Ensured proper disposal of auto-completion providers to prevent memory
leaks.

- **New Features**
- Enhanced lifecycle management for the Monaco editor's auto-completion
functionality.
- Added new SQL completion items and improved filtering of suggestions
based on user input.

- **Style**
	- Updated code formatting for consistency in `watch` statements.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-16 15:02:53 +05:30
Omkar Kesarkhane f3d2720fd1 fix: fixed explore enrichment table and overlap of logs table cell content (#5353)
#5330 #5343

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

- **New Features**
- Introduced a new method for handling stream exploration based on the
stream type.
- Added props for error messaging, timestamp highlighting, and default
column settings in the table component.

- **Improvements**
- Enhanced responsiveness and usability of the table component with
better column resizing and row management.
- Improved readability and maintainability of the `schema` component
through formatting adjustments.
- Updated error handling for data retention days in the schema
component.
- Added a new asynchronous method to calculate the time range for stream
exploration.

- **Bug Fixes**
	- Refined error handling in stream deletion methods for consistency.

- **Documentation**
	- Updated method signatures for clarity and improved functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-16 12:06:52 +05:30
Juan Calderon-Perez 7b461a6ab7 fix: Improve English locale (#5364) 2024-12-16 13:37:43 +08:00
Prabhat Sharma 17f24ac21a chore: add k8s cluster name to helm chart instructions (#5361)
Add k8s cluster name to helm chart. This will allow separating data from
multiple k8s clusters in same streams.

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

- **New Features**
- Updated installation commands for the OpenObserve collector to specify
the Kubernetes cluster name.
- **Bug Fixes**
- Enhanced specificity of commands related to the OpenObserve collector
installation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-14 16:33:19 -08:00
Bhargav 35c414386f fix: added fuzzy search function guide & autocomplete (#5301)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Enhanced SQL autocomplete with fuzzy matching suggestions.
- Updated syntax guide to include fuzzy matching instructions for SQL
queries.

- **Bug Fixes**
- Maintained existing logic for other completion items, ensuring
seamless integration of new features.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-13 17:26:31 +05:30
Sai Nikhil 7ae2e36d34 fix: UI fix for stream settings page (#5340)
This PR fixes the issue #5339 

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


- **New Features**
	- Enhanced schema details interface with dynamic theme support.
	- Improved filtering capabilities for schema fields.
- Updated pagination logic for better row display based on user
selections.
	- Validation for data retention days in submission process.

- **Bug Fixes**
- Improved error handling for field deletion operations, providing
clearer feedback to users.

- **Style**
	- Adjusted table scrollbar behavior and hover effects for rows.
	- Enhanced visual differentiation between dark and light themes.
	- Improved rendering of selection checkboxes in the table.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-13 16:25:34 +05:30
Bhargav fe615a409e fix: 5297 subqueries not being parsed in UI (#5341)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced error handling and logic improvements in SQL query parsing
for the `useLogs` composable.
- Improved functionality of the search bar component, including better
handling of SQL queries and user notifications.

- **Bug Fixes**
- Refined logic for managing selected streams and improved feedback for
download attempts in the search bar.

- **Style**
- Adjusted button classes and added scoped styles to improve the visual
layout of the search bar component.

- **Chores**
- Updated GitHub Actions workflow configuration for Playwright UI tests.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-12 18:14:55 +05:30
Juan Calderon-Perez e180100627 fix: Improve Spanish locale (#5291) 2024-12-12 13:35:44 +08:00
c23faaf974 fix: dashboard search across folders (#5318)
This PR fixes #5198 

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

- **New Features**
- Enhanced search functionality with a toggle to search across folders
or within the current folder.
- New methods for fetching search results and debouncing input for
efficient searching.
- Added support for dynamic filtering of dashboards based on the search
context.
- New localization entries for improved user interface text related to
dashboard searches.
- Added methods for managing permissions and fetching dashboards within
role management.
- Enhanced report creation with improved handling of dashboard options
and scheduling.

- **Bug Fixes**
- Improved error handling for dashboard management functions to prevent
runtime errors.

- **Chores**
- Streamlined dashboard state updates after modifications to ensure
consistency.
	- Added `data-test` attributes to components for better testability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
Co-authored-by: ktx-vaidehi <134508096+ktx-vaidehi@users.noreply.github.com>
2024-12-11 20:13:39 +05:30
Sai NikhilandTaiming Liu 953f7bd096 fix: save pipeline warn (#5303)
This PR warns the user when tries to save the pipeline having same input
and output node as that doesnot make any impact

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

- **New Features**
- Introduced a confirmation dialog for saving pipelines to enhance user
experience.
	- Added validation checks for pipeline nodes before saving.

- **Bug Fixes**
- Improved error handling by ensuring users are prompted before saving
invalid configurations.
- Enhanced user experience with appropriate redirection after dialog
cancellation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
2024-12-10 09:51:19 -08:00
0c728df972 feat: service accounts for api access (#5212)
This PR introduces the service accounts with tokens

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

## Release Notes

- **New Features**
- Introduced a new module for managing service accounts, including
functionalities for listing, creating, updating, and deleting service
accounts.
- Added a new tab for "Service Accounts" in the Identity Access
Management interface.
- Enhanced user management interfaces to support service account
operations, including the ability to add and edit service accounts.
- Implemented a new component for managing service accounts within
groups and roles.
- Added new API endpoints for service account management, including
token operations.
- Introduced a comprehensive Vue component for managing service accounts
with enhanced features, including filtering, searching, and token
management.
- Enhanced permission checks and error handling for service accounts
across various functions.
- Added support for external user permissions in service account
operations.
- Enhanced error handling for various components to prevent unnecessary
notifications on permission-related issues.
- Added localization support for service account functionalities,
providing necessary labels for user interface elements.

- **Bug Fixes**
- Improved error handling and validation across user management and
service account functionalities.

- **Documentation**
- Updated localization files to support new service account features and
labels.

- **Style**
- Adjusted styles in various components to enhance usability and
consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: oasisk <ashish.j.kolhe@gmail.com>
Co-authored-by: Subhradeep Chakraborty <chakrabortysubhradeep556@gmail.com>
2024-12-10 21:41:21 +05:30
ktx-vaidehi 113937de24 fix: support for subqueries in dashboard (#5315)
- #5297 

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

- **New Features**
- Enhanced query validation process, allowing queries with subqueries to
pass without error.

- **Bug Fixes**
- Adjusted height calculations for elements in the Add Panel component,
improving layout and user interface.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-10 19:20:25 +05:30
Omkar Kesarkhane 041cbf334b fix: route name updated from "alerts" to "alertList" in multiple components (#5316)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Conditional rendering added for custom logos based on enterprise
configuration.
- Navigation updated from "alerts" to "alertList" in multiple
components.

- **Bug Fixes**
	- Removed unnecessary redirect logic from the AppAlerts component.

- **Style**
- Enhanced code readability through formatting adjustments in button
components and layout attributes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-10 15:57:04 +05:30
Sai Nikhil ea2fff7f43 fix: Stream settings page redesign (#5265)
This PR solves the issue #5216 #5224 

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

## Release Notes

- **New Features**
- Enhanced user interface for the log stream input fields with improved
layout and visibility, including dynamic width adjustments and clearer
labeling.
	- Added a new column to display index size in the log streams table.
- Introduced pagination management for schema fields, allowing for
dynamic updates to the number of rows displayed.
- Added a new prop, `isInSchema`, to enhance component layout based on
schema inclusion.

- **Bug Fixes**
	- Improved error messaging for invalid data retention periods.

- **Documentation**
- Updated language localization for clarity in schema field
descriptions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-09 19:52:27 +05:30