Commit Graph
1341 Commits
Author SHA1 Message Date
dependabot[bot] 709dfd962e chore(deps-dev): bump vite from 5.4.6 to 5.4.14 in /web (#5765) 2025-01-22 11:08:13 +08:00
ktx-vaidehi 55b9b4d9a6 fix: dashboard on tab edit in dark mode input was not visible (#5748)
- #5747 


![image](https://github.com/user-attachments/assets/0bdf7158-c42a-4c6b-ab96-8ac9424318d3)


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

## Summary by CodeRabbit

- **Style**
- Enhanced input field styling to dynamically change background color
based on current theme.
	- Improved visual feedback for dark theme mode in settings tab.
- Updated button text color to black in the multi-select default value
toggle for better visibility.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-20 18:50:47 +05:30
Abhay Padamani 66f8425ff2 fix: dynamic filter issue (#5743)
- #5742 

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

## Summary by CodeRabbit

- **Bug Fixes**
	- Improved handling of dynamic filter variables in data loading process
	- Enhanced loading state management for variable data types

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-20 12:55:44 +05:30
Abhay Padamani db02108d4e fix: dashboard cache issue with websocket (#5725)
- panel response not cached for dashboard panel.

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

## Summary by CodeRabbit

- **New Features**
	- Enhanced state caching mechanism when closing search operations
	- Improved data retrieval efficiency by preserving panel state in cache

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-16 19:47:02 +05:30
Sai Nikhil bb66e051c9 fix: Import dashboard latest revamp (#5546)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Enhanced dashboard import functionality with a tabbed interface for
file and URL imports.
  - Added support for community dashboard navigation.

- **Localization**
- Added "Community Dashboards" translation for English language support.

- **User Experience**
  - Streamlined dashboard import process with dynamic input components.
- Improved input validation and error handling during dashboard imports.
  - More robust error feedback for import-related actions.
  - Updated layout for better user interaction and navigation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-16 19:00:13 +05:30
Omkar Kesarkhane 513c6aaf85 fix: renamed save function to save (#5717)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Documentation**
- Updated English language localization for the "save" action,
simplifying the text from "Save Function" to "Save"

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-16 10:04:08 +05:30
harshiv-7 26d0842cad fix: dashboard search fixes (#5639)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced dashboard search functionality with improved input mechanism.
  - Added dynamic search mode toggle with contextual tooltip.
- Implemented more flexible search query handling across and within
folders.

- **User Experience**
  - Streamlined search interface for better usability.
  - Improved search context preservation when switching modes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-15 11:54:04 +05:30
Omkar Kesarkhane 239395052b fix: fixed exploring enrichment table from pipelines (#5695)
#5691 

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

- **New Features**
  - Added dynamic time range retrieval for stream exploration.
  - Enhanced stream data retrieval capabilities.

- **Bug Fixes**
- Improved error handling and notification formatting for stream
operations.

- **Refactor**
  - Updated route navigation with dynamic timestamp parameters.
- Refined method implementations for better consistency and readability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-15 10:38:05 +05:30
Bhargav 55422d5be1 fix: refresh user list after edit and add and removed icon from button (#5666)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **UI/UX Changes**
- Removed icons from various buttons across multiple components,
including service account, organization, log stream, and ingestion
views.
	- Updated service account list button icon from "add" to "outlinedAdd".

- **Functionality Updates**
- Enhanced user management functions with improved asynchronous
handling.
- Streamlined user update and deletion processes to ensure consistent
state management.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-14 18:22:43 +05:30
Omkar Kesarkhane 28db10e4fe fix: use multi search api for multi stream search when web socket is enabled (#5693)
#5687 

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

## Summary by CodeRabbit

- **Bug Fixes**
	- Improved search communication method selection logic
- Enhanced handling of search requests across different stream
configurations

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-14 16:30:05 +05:30
Sai Nikhil 70db08e257 fix: changing pipeline org in edit mode (#5681)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
  - Enhanced route navigation logic for pipeline editing.
- Added confirmation dialog for unsaved changes when leaving pipeline
edit view.

- **Bug Fixes**
  - Prevented access to pipeline edit view without a valid pipeline ID.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-13 16:34:46 +05:30
Sai Nikhil 4be182a536 fix: pipeine redirection issue resolved (#5678)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

fix for #5677

## Summary by CodeRabbit

- **New Features**
- Enhanced pipeline navigation by including organization identifier when
routing to pipeline editor

- **Improvements**
- Removed hardcoded pipeline names, suggesting a move towards more
dynamic data handling
- Improved routing logic to pass organization context between components

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-13 14:03:22 +05:30
Abhay Padamani 7dbc1e12b2 fix: dashboard move to another folder issue (#5676)
- #5675 

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

- **New Features**
- Enhanced dashboard folder selection by adding active folder context to
the selection dropdown for importing from JSON files, URLs, and JSON
strings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-13 11:57:40 +05:30
Zhao.wei 1a5350f62b feat: improve trace max query range (#5613) 2025-01-12 17:51:18 +08:00
ktx-vaidehi d9e9717435 fix: dashboard stacked chart with variables throwing error (#5657)
- #5658 

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

## Summary by CodeRabbit

- **Bug Fixes**
- Improved error handling in SQL query parsing to prevent unexpected
crashes
    - Updated internal logic for processing dashboard data sources

- **Refactor**
- Enhanced SQL utility functions to provide more robust data conversion
mechanisms

The changes focus on improving the reliability and error management of
dashboard and query-related functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-10 12:31:07 +05:30
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